Bug 106090

Summary: Compiling compute shader crashes RADV
Product: Mesa Reporter: maister
Component: Drivers/Vulkan/radeonAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: 18.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Dump

Description maister 2018-04-16 19:00:16 UTC
Created attachment 138871 [details]
Dump

To reproduce on RX470 (or something similar):

git clone git://github.com/Themaister/Fossilize
cd Fossilize
git submodule update --init
mkdir build
cd build
cmake ..
make -j8
./cli/fossilize-replay pipelines.json --enable-validation --filter-compute 2

...

WARNING: radv is not a conformant vulkan implementation, testing use only.
Fossilize INFO: Chose GPU:
Fossilize INFO:   name: AMD RADV POLARIS10 (LLVM 6.0.0)
Fossilize INFO:   apiVersion: 1.0.57
Fossilize INFO:   vendorID: 0x1002
Fossilize INFO:   deviceID: 0x67df
Fossilize INFO: Creating shader module #0
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #1
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #2
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #3
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #4
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #5
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #6
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #7
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #8
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #9
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #10
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #11
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #12
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #13
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #14
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #15
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #16
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #17
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #18
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #19
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #20
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating shader module #21
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #0
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #1
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #2
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #3
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #4
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #5
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #6
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #7
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #8
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #9
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #10
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #11
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #12
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #13
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #14
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating descriptor set layout #15
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #0
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #1
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #2
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #3
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #4
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #5
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #6
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #7
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #8
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #9
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #10
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #11
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #12
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating pipeline layout #13
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating render pass #0
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating render pass #1
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating render pass #2
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating render pass #3
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating render pass #4
Fossilize INFO:  ... Succeeded!
Fossilize INFO: Creating compute pipeline #2
zsh: segmentation fault (core dumped)  ./cli/fossilize-replay ~/git/granite/cmake-build-debug/cache/pipelines.json  

It crashes in vulkan_radeon.so when compiling compute pipeline #2.
Works fine on AMDVLK and other drivers.
Comment 2 maister 2018-05-15 21:44:13 UTC
Yup, works fine now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.