Mesa (master): radv: enable conditional discard optimisation on radv.

Dave Airlie airlied at kemper.freedesktop.org
Wed Nov 9 19:47:20 UTC 2016


Module: Mesa
Branch: master
Commit: 3c9af7578fcd62fc55e0443733f56b2aaa50ba9c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c9af7578fcd62fc55e0443733f56b2aaa50ba9c

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Nov  2 01:23:11 2016 +0000

radv: enable conditional discard optimisation on radv.

This fixes a bunch of GPU hangs introduced in some CTS
tests like
dEQP-VK.memory.pipeline_barrier.host_write_uniform_buffer.65536

It works around an issue seen in the LLVM backend, but
also makes the radv code work more like the radeonsi stack.

Cc: "13.0" <mesa-stable at lists.freedesktop.org>

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/amd/vulkan/radv_pipeline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index fe1eac8..bb97531 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -144,6 +144,7 @@ radv_optimize_nir(struct nir_shader *shader)
                 NIR_PASS(progress, shader, nir_opt_algebraic);
                 NIR_PASS(progress, shader, nir_opt_constant_folding);
                 NIR_PASS(progress, shader, nir_opt_undef);
+                NIR_PASS(progress, shader, nir_opt_conditional_discard);
         } while (progress);
 }
 




More information about the mesa-commit mailing list