radv: fix compute pipeline keys when optimizations are disabled
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 1 Nov 2019 08:34:12 +0000 (09:34 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Nov 2019 07:50:00 +0000 (08:50 +0100)
commit9ab27647ff5379e8095a70c23dd16792f074c8c7
tree880545a7929d5591cd3bc23bf196ad0cc4cb837b
parent538d2c33b86dd9e66a6e900ac8e1cda10a5bfc4d
radv: fix compute pipeline keys when optimizations are disabled

If an app first creates a compute pipeline with
VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT set, then re-compile it
without that flag, the driver should re-compile the compute shader.
Otherwise, it will return the unoptimized one.

Fixes: ce188813bfe ("radv: add initial support for VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c