When Use Kaby Lake-g(AMD Vega M GPU) to do the Vulkan CTS test, the case "
dEQP-VK.spirv_assembly.instruction.compute.pointer_parameter.workgroup_memory_variable_pointers" will fail
Following is the environtment
CPU Intel (R) Core (TM) i7-8809G CPU @3.10GHz
GPU AMD(Radeon RX Vega M GH Graphics);
Mesa: mesa 18.3.1 (https://mesa.freedesktop.org/archive/mesa-18.3.1.tar.gz)
VK-GL-CTS version https://github.com/KhronosGroup/VK-GL-CTS
How to reproduce
$ ./deqp-vk -n dEQP-VK.spirv_assembly.instruction.compute.pointer_parameter.workgroup_memory_variable_pointers
Writing test log into TestResults.qpa
dEQP Core git-8e3741675ba9ebfdea5bc98ac2df4e5e6f182e57 (0x8e374167) starting..
target implementation = 'Default'
Test case 'dEQP-VK.spirv_assembly.instruction.compute.pointer_parameter.workgroup_memory_variable_pointers'..
SPIR-V parsing FAILED:
In file spirv/vtn_variables.c:1646
1324 bytes into the SPIR-V binary
Segmentation fault (core dumped)
*** Bug 109146 has been marked as a duplicate of this bug. ***
Created attachment 142897 [details]
Created attachment 142900 [details]
Thanks for your email. I’m OOO. Please expect slow email response.
*** Bug 109157 has been marked as a duplicate of this bug. ***
Can be reproduced with 18.3.1 but has been fixed in master. Still confirming what fixed it, but if my suspicion is right there are some extensive changes and that fix may *not* be backported to 18.3 .
The following commit fixes the crash for me
Author: Dave Airlie <firstname.lastname@example.org>
Date: Wed Jul 4 16:21:49 2018 +1000
spirv/vtn: handle variable pointers without offset lowering
Reviewed-by: Jason Ekstrand <email@example.com>
This is actually a test bug. It doesn't check that variablePointers is enabled. I reported the problem to Khronos, should be fixed and upstreamed soon.