From: Marek Olšák Date: Tue, 12 Dec 2017 21:21:13 +0000 (+0100) Subject: radeonsi: don't call force_dcc_off for buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35c3cbad3c30ad3d40a6811dd6ca2286e013bfc5;p=mesa.git radeonsi: don't call force_dcc_off for buffers This was undefined yet harmless behavior in LLVM. Not anymore - it causes a hang now. Cc: 17.3 Tested-by: Michel Dänzer --- 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; }