zink: invalid spirv when VK_EXT_shader_object is enabled
Tested on RADV/Polaris10 with my ESO MR.
$ RADV_PERFTEST=shader_object MESA_LOADER_DRIVER_OVERRIDE=zink ./glcts -n dEQP-GLES31.functional.program_interface_query.program_input.resource_list.interface_blocks.patch_in.named_block.var_struct
Writing test log into TestResults.qpa
dEQP Core vulkan-cts-1.3.7.3-235-gdc089d39d5572430c9efc17ebe0a617be3b1d49a (0xdc089d39) starting..
target implementation = 'Default'
Test case 'dEQP-GLES31.functional.program_interface_query.program_input.resource_list.interface_blocks.patch_in.named_block.var_struct'..
SPIR-V parsing FAILED:
In file ../src/compiler/spirv/vtn_variables.c:2026
data[i].location < VARYING_SLOT_PATCH0
840 bytes into the SPIR-V binary
Trace/breakpoint trap (core dumped)