Logical Render Pipelines and Command Packets
JaCoCo Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 61.06% (17124/28043)
* Branch Coverage: 51.92% (6584/12681)
* Lines of Code: 28043
* Cyclomatic Complexity: 11219
#### Quality Gates Summary
Output truncated.
Test / Build skipped: 15, passed: 594
Intrepid/Prometeu/Studio/pipeline/head This commit looks good
JaCoCo Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 61.06% (17124/28043)
* Branch Coverage: 51.92% (6584/12681)
* Lines of Code: 28043
* Cyclomatic Complexity: 11219
#### Quality Gates Summary
Output truncated.
Test / Build skipped: 15, passed: 594
Intrepid/Prometeu/Studio/pipeline/head This commit looks good
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ class GoldenArtifactsTest {
|
||||
new IRBackendExecutableFunction.Instruction(
|
||||
IRBackendExecutableFunction.InstructionKind.CALL_HOST,
|
||||
"",
|
||||
new IRBackendExecutableFunction.HostCallMetadata("gfx", "draw_pixel", 1, 0, 0),
|
||||
new IRBackendExecutableFunction.HostCallMetadata("gfx2d", "draw_pixel", 1, 0, 0),
|
||||
null,
|
||||
Span.none()),
|
||||
new IRBackendExecutableFunction.Instruction(
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ class BytecodeLinkPrecheckServiceTest {
|
||||
codeHostcall(3),
|
||||
null,
|
||||
ReadOnlyList.empty(),
|
||||
ReadOnlyList.from(new BytecodeModule.SyscallDecl("gfx", "draw_pixel", 1, 0, 0)));
|
||||
ReadOnlyList.from(new BytecodeModule.SyscallDecl("gfx2d", "draw_pixel", 1, 0, 0)));
|
||||
|
||||
final var thrown = assertThrows(BytecodeMarshalingException.class, () -> service.validate(module));
|
||||
assertEquals(BytecodeMarshalingErrorCode.MARSHAL_VERIFY_PRECHECK_HOSTCALL_INDEX_INVALID, thrown.code());
|
||||
|
||||
+1
-1
@@ -226,7 +226,7 @@ class IRVMValidatorTest {
|
||||
1,
|
||||
ReadOnlyList.from(
|
||||
BytecodeEmitter.Operation.hostcall(
|
||||
new BytecodeModule.SyscallDecl("gfx", "draw_pixel", 1, 1, 0),
|
||||
new BytecodeModule.SyscallDecl("gfx2d", "draw_pixel", 1, 1, 0),
|
||||
1,
|
||||
0),
|
||||
BytecodeEmitter.Operation.ret()))));
|
||||
|
||||
+1
-1
@@ -211,7 +211,7 @@ class LowerToIRVMServiceTest {
|
||||
.entryPointModuleId(new ModuleId(0))
|
||||
.executableFunctions(ReadOnlyList.from(
|
||||
fn("main", "app", 10, ReadOnlyList.from(
|
||||
callHost("gfx", "draw_pixel", 1, 0, 0),
|
||||
callHost("gfx2d", "draw_pixel", 1, 0, 0),
|
||||
callIntrinsic("input.pad", 1, 0),
|
||||
ret()))))
|
||||
.intrinsicPool(ReadOnlyList.from(new IntrinsicReference("input.pad", 1)))
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ class OptimizeIRVMEquivalenceHarnessTest {
|
||||
.entryPointModuleId(new p.studio.compiler.source.identifiers.ModuleId(0))
|
||||
.executableFunctions(ReadOnlyList.from(
|
||||
fn("main", 1, ReadOnlyList.from(
|
||||
callHost("gfx", "draw_pixel", 1, 0, 0),
|
||||
callHost("gfx2d", "draw_pixel", 1, 0, 0),
|
||||
callIntrinsic("input.pad", 1, 0, 0, 0),
|
||||
ret()))))
|
||||
.intrinsicPool(ReadOnlyList.from(new IntrinsicReference("input.pad", 1)))
|
||||
|
||||
+6
-6
@@ -45,7 +45,7 @@ class BackendGateIIntegrationTest {
|
||||
void gateI_validHostcallPath() {
|
||||
final var module = emitFromBackend(backendWithSingleFunction(
|
||||
fn("main", ReadOnlyList.from(
|
||||
callHost("gfx", "draw_pixel", 1, 0, 0),
|
||||
callHost("gfx2d", "draw_pixel", 1, 0, 0),
|
||||
ret()))));
|
||||
|
||||
final var check = compatibilityAdapter.check(module);
|
||||
@@ -65,7 +65,7 @@ class BackendGateIIntegrationTest {
|
||||
codeHostcall(1),
|
||||
null,
|
||||
ReadOnlyList.empty(),
|
||||
ReadOnlyList.from(new BytecodeModule.SyscallDecl("gfx", "draw_pixel", 1, 1, 0)));
|
||||
ReadOnlyList.from(new BytecodeModule.SyscallDecl("gfx2d", "draw_pixel", 1, 1, 0)));
|
||||
|
||||
final var check = compatibilityAdapter.check(module);
|
||||
assertEquals(CompatibilityError.HOSTCALL_INDEX_OUT_OF_BOUNDS, check.error());
|
||||
@@ -80,7 +80,7 @@ class BackendGateIIntegrationTest {
|
||||
codeRet(),
|
||||
null,
|
||||
ReadOnlyList.empty(),
|
||||
ReadOnlyList.from(new BytecodeModule.SyscallDecl("gfx", "draw_pixel", 1, 1, 0)));
|
||||
ReadOnlyList.from(new BytecodeModule.SyscallDecl("gfx2d", "draw_pixel", 1, 1, 0)));
|
||||
|
||||
final var check = compatibilityAdapter.check(module);
|
||||
assertEquals(CompatibilityError.UNUSED_SYSC_DECL, check.error());
|
||||
@@ -116,7 +116,7 @@ class BackendGateIIntegrationTest {
|
||||
1,
|
||||
ReadOnlyList.from(
|
||||
BytecodeEmitter.Operation.hostcall(
|
||||
new BytecodeModule.SyscallDecl("gfx", "draw_pixel", 1, 2, 0),
|
||||
new BytecodeModule.SyscallDecl("gfx2d", "draw_pixel", 1, 2, 0),
|
||||
1,
|
||||
0),
|
||||
BytecodeEmitter.Operation.ret()))))));
|
||||
@@ -128,12 +128,12 @@ class BackendGateIIntegrationTest {
|
||||
void gateI_rejectMissingCapability() {
|
||||
final var module = emitFromBackend(backendWithSingleFunction(
|
||||
fn("main", ReadOnlyList.from(
|
||||
callHost("gfx", "draw_pixel", 1, 0, 0),
|
||||
callHost("gfx2d", "draw_pixel", 1, 0, 0),
|
||||
ret()))));
|
||||
|
||||
final var caps = Set.of("input");
|
||||
final var required = new HashMap<String, String>();
|
||||
required.put("gfx::draw_pixel::1", "gfx");
|
||||
required.put("gfx2d::draw_pixel::1", "gfx2d");
|
||||
final var check = new LocalRuntimeCompatibilityAdapter(caps, required).check(module);
|
||||
assertEquals(CompatibilityError.MISSING_CAPABILITY, check.error());
|
||||
}
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ final class LocalRuntimeCompatibilityAdapter implements RuntimeCompatibilityAdap
|
||||
private final String runtimeLine;
|
||||
|
||||
LocalRuntimeCompatibilityAdapter() {
|
||||
this(Set.of("gfx", "input", "audio", "system"), Map.of(), "runtime-local-sim-v1");
|
||||
this(Set.of("gfx2d", "composer", "input", "audio", "system"), Map.of(), "runtime-local-sim-v1");
|
||||
}
|
||||
|
||||
LocalRuntimeCompatibilityAdapter(
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
504253000000000004000000000000000000000000000000000000000000000001000000500000001400000002000000640000000e00000003000000720000004400000005000000b60000001b00000001000000000000000e000000000000000000020071000000000072000020000051000300000000000000010000000000000000000000060000000100000000000000000000000c0000000100000000000000000000000100000000000000040000006d61696e0100000003006766780a00647261775f706978656c010000000000
|
||||
504253000000000004000000000000000000000000000000000000000000000001000000500000001400000002000000640000000e00000003000000720000004400000005000000b60000001d00000001000000000000000e000000000000000000020071000000000072000020000051000300000000000000010000000000000000000000060000000100000000000000000000000c0000000100000000000000000000000100000000000000040000006d61696e01000000050067667832640a00647261775f706978656c010000000000
|
||||
|
||||
Reference in New Issue
Block a user