From 35c3cbad3c30ad3d40a6811dd6ca2286e013bfc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 12 Dec 2017 22:21:13 +0100 Subject: [PATCH] radeonsi: don't call force_dcc_off for buffers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This was undefined yet harmless behavior in LLVM. Not anymore - it causes a hang now. Cc: 17.3 Tested-by: Michel Dänzer --- src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c index 099f86bd222..fe0cfcef997 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c @@ -146,7 +146,7 @@ LLVMValueRef si_load_image_desc(struct si_shader_context *ctx, } rsrc = ac_build_load_to_sgpr(&ctx->ac, list, index); - if (dcc_off) + if (desc_type == AC_DESC_IMAGE && dcc_off) rsrc = force_dcc_off(ctx, rsrc); return rsrc; } -- 2.30.2