d7437eec2e
SPIR-V code generation synthesizes some extra variables that don't actually exist in the Program. Checking the ProgramUsage of these variables would fail; ProgramUsage::get doesn't know about these variables, so it asserts (and would consider them as dead even if it didn't assert). We now track our SPIR-V bonus variables in a separate set, and always report them as live. Change-Id: If2f681470654025abf7ca4b3ec8126de2eb01297 Bug: oss-fuzz:36770 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/435625 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
37 lines
993 B
JavaScript
37 lines
993 B
JavaScript
### Compilation failed:
|
|
|
|
error: SPIR-V validation error: Member index 0 is missing a location assignment
|
|
%T = OpTypeStruct %int %v2float
|
|
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %4 %sk_Clockwise
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %T "T"
|
|
OpMemberName %T 0 "x"
|
|
OpMemberName %T 1 "u_skRTFlip"
|
|
OpName %sk_Clockwise "sk_Clockwise"
|
|
OpName %main "main"
|
|
OpMemberDecorate %T 0 Offset 0
|
|
OpMemberDecorate %T 1 Offset 32
|
|
OpDecorate %T Block
|
|
OpDecorate %sk_Clockwise BuiltIn FrontFacing
|
|
%int = OpTypeInt 32 1
|
|
%float = OpTypeFloat 32
|
|
%v2float = OpTypeVector %float 2
|
|
%T = OpTypeStruct %int %v2float
|
|
%_ptr_Input_T = OpTypePointer Input %T
|
|
%4 = OpVariable %_ptr_Input_T Input
|
|
%bool = OpTypeBool
|
|
%_ptr_Input_bool = OpTypePointer Input %bool
|
|
%sk_Clockwise = OpVariable %_ptr_Input_bool Input
|
|
%void = OpTypeVoid
|
|
%14 = OpTypeFunction %void
|
|
%main = OpFunction %void None %14
|
|
%15 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
|
|
1 error
|