diff options
author | Dave Airlie <[email protected]> | 2017-11-15 09:54:24 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-11-17 11:31:40 +1000 |
commit | c119a1acb33866c72cc1592b9bbf418e82cbab2a (patch) | |
tree | 04404a0b823f45df8e4bc4f3cdf7800358b9dd29 /src/gallium/drivers | |
parent | 894e2deb7edcf8c578b8cbd98cd9a83b8c8a332f (diff) |
r600/shader: add flag to denote if shader uses images
Tested-By: Gert Wollny <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index b1a164e594d..919685ca6a2 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -2971,6 +2971,7 @@ static int r600_shader_from_tgsi(struct r600_context *rctx, shader->uses_atomics = ctx.info.file_mask[TGSI_FILE_HW_ATOMIC]; shader->nsys_inputs = 0; + shader->uses_images = ctx.info.file_count[TGSI_FILE_IMAGE] > 0; indirect_gprs = ctx.info.indirect_files & ~((1 << TGSI_FILE_CONSTANT) | (1 << TGSI_FILE_SAMPLER)); tgsi_parse_init(&ctx.parse, tokens); ctx.type = ctx.info.processor; diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h index 40719d9be5e..c6efbb9852f 100644 --- a/src/gallium/drivers/r600/r600_shader.h +++ b/src/gallium/drivers/r600/r600_shader.h @@ -116,6 +116,7 @@ struct r600_shader { boolean uses_doubles; boolean uses_atomics; + boolean uses_images; uint8_t atomic_base; }; |