summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-11-16 00:47:35 +0100
committerMarek Olšák <[email protected]>2017-03-03 15:29:30 +0100
commit455c79b24f91fbceaed57d49718fa198e2a6b0ff (patch)
treee15fdd51cef17e6e18e6def4b7bb38555dc60139 /src/gallium/drivers/radeonsi/si_shader.c
parent3958c0176267315132a83b26b9c98f93a16c6994 (diff)
tgsi/scan: record load/store/atomic image usage
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 212a9bee800..f84eefc3ddc 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -3328,10 +3328,12 @@ image_fetch_rsrc(
if (!image->Register.Indirect) {
const struct tgsi_shader_info *info = bld_base->info;
+ unsigned images_writemask = info->images_store |
+ info->images_atomic;
index = LLVMConstInt(ctx->i32, image->Register.Index, 0);
- if (info->images_writemask & (1 << image->Register.Index) &&
+ if (images_writemask & (1 << image->Register.Index) &&
target != TGSI_TEXTURE_BUFFER)
dcc_off = true;
} else {