diff options
author | Marek Olšák <[email protected]> | 2017-12-12 22:21:13 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-12-16 01:22:01 +0100 |
commit | 35c3cbad3c30ad3d40a6811dd6ca2286e013bfc5 (patch) | |
tree | a03296a75a5ad234edc1dc627d469dfc672c3a86 | |
parent | 02720f8d249a65d952888b6028a0b8ff0f9a42e4 (diff) |
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 <[email protected]>
Tested-by: Michel Dänzer <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |