|
| 1 | +OpCapability Shader |
| 2 | +OpMemoryModel Logical Simple |
| 3 | +OpEntryPoint GLCompute %1 "entry_1" %2 %3 |
| 4 | +OpEntryPoint GLCompute %4 "entry_2" %2 %3 |
| 5 | +OpExecutionMode %1 LocalSize 1 1 1 |
| 6 | +OpExecutionMode %4 LocalSize 1 1 1 |
| 7 | +OpName %6 "builtin_duplicates::entry_1" |
| 8 | +OpName %7 "builtin_duplicates::sub_1" |
| 9 | +OpName %8 "builtin_duplicates::sub_2" |
| 10 | +OpName %9 "builtin_duplicates::entry_2" |
| 11 | +OpDecorate %2 BuiltIn LocalInvocationIndex |
| 12 | +OpDecorate %3 BuiltIn LocalInvocationIndex |
| 13 | +%10 = OpTypeInt 32 0 |
| 14 | +%11 = OpTypePointer Input %10 |
| 15 | +%12 = OpTypeVoid |
| 16 | +%13 = OpTypeFunction %12 |
| 17 | +%2 = OpVariable %11 Input |
| 18 | +%14 = OpTypeFunction %12 %10 |
| 19 | +%3 = OpVariable %11 Input |
| 20 | +%15 = OpTypeFunction %10 |
| 21 | +%1 = OpFunction %12 None %13 |
| 22 | +%16 = OpLabel |
| 23 | +%17 = OpLoad %10 %2 |
| 24 | +%18 = OpFunctionCall %12 %6 %17 |
| 25 | +OpNoLine |
| 26 | +OpReturn |
| 27 | +OpFunctionEnd |
| 28 | +%6 = OpFunction %12 None %14 |
| 29 | +%19 = OpFunctionParameter %10 |
| 30 | +%20 = OpLabel |
| 31 | +%21 = OpLoad %10 %3 |
| 32 | +%22 = OpLoad %10 %3 |
| 33 | +%23 = OpFunctionCall %10 %7 |
| 34 | +%24 = OpFunctionCall %10 %8 |
| 35 | +OpNoLine |
| 36 | +OpReturn |
| 37 | +OpFunctionEnd |
| 38 | +%7 = OpFunction %10 DontInline %15 |
| 39 | +%25 = OpLabel |
| 40 | +%26 = OpLoad %10 %3 |
| 41 | +OpNoLine |
| 42 | +OpReturnValue %26 |
| 43 | +OpFunctionEnd |
| 44 | +%8 = OpFunction %10 DontInline %15 |
| 45 | +%27 = OpLabel |
| 46 | +%28 = OpLoad %10 %3 |
| 47 | +OpNoLine |
| 48 | +OpReturnValue %28 |
| 49 | +OpFunctionEnd |
| 50 | +%4 = OpFunction %12 None %13 |
| 51 | +%29 = OpLabel |
| 52 | +%30 = OpLoad %10 %2 |
| 53 | +%31 = OpFunctionCall %12 %9 %30 |
| 54 | +OpNoLine |
| 55 | +OpReturn |
| 56 | +OpFunctionEnd |
| 57 | +%9 = OpFunction %12 None %14 |
| 58 | +%32 = OpFunctionParameter %10 |
| 59 | +%33 = OpLabel |
| 60 | +%34 = OpLoad %10 %3 |
| 61 | +%35 = OpFunctionCall %10 %7 |
| 62 | +%36 = OpFunctionCall %10 %8 |
| 63 | +OpNoLine |
| 64 | +OpReturn |
| 65 | +OpFunctionEnd |
| 66 | +error: error:0:0 - [VUID-StandaloneSpirv-OpEntryPoint-09658] OpEntryPoint contains duplicate input variables with LocalInvocationIndex builtin |
| 67 | + %gl_LocalInvocationIndex = OpVariable %_ptr_Input_uint Input |
| 68 | + | |
| 69 | + = note: spirv-val failed |
| 70 | + = note: module `$TEST_BUILD_DIR/entry/builtin_duplicates.vulkan1.2` |
| 71 | + |
| 72 | +error: aborting due to 1 previous error |
| 73 | + |
0 commit comments