summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2016-03-10 16:30:07 -0500
committerNicolai Hähnle <nicolai.haehnle@amd.com>2016-03-14 17:24:02 -0500
commit3243b6fc97dc73555f72ce8c01f643d707b26610 (patch)
tree9959afd93846f7d666cf466ff0f8a3be603c383e /src/gallium/include
parent9b68bdf6f8a06986340efa0c94afeeeb5580f9fd (diff)
downloadexternal_mesa3d-3243b6fc97dc73555f72ce8c01f643d707b26610.zip
external_mesa3d-3243b6fc97dc73555f72ce8c01f643d707b26610.tar.gz
external_mesa3d-3243b6fc97dc73555f72ce8c01f643d707b26610.tar.bz2
tgsi: add Texture and Format to tgsi_instruction_memory
Frontends should have this information readily available, and it simplifies image LOAD/STORE/ATOM* handling especially with indirect image access. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_shader_tokens.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
index 9d4a96a..34e491e 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -743,7 +743,9 @@ struct tgsi_dst_register
struct tgsi_instruction_memory
{
unsigned Qualifier : 3; /* TGSI_MEMORY_ */
- unsigned Padding : 29;
+ unsigned Texture : 8; /* only for images: TGSI_TEXTURE_ */
+ unsigned Format : 10; /* only for images: PIPE_FORMAT_ */
+ unsigned Padding : 11;
};
#define TGSI_MEMBAR_SHADER_BUFFER (1 << 0)