aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_info.h
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2020-02-19 08:33:04 +0200
committerMarge Bot <[email protected]>2020-03-16 10:34:21 +0000
commit5910c938a293c03337911ca3c067b4ecf4b406ee (patch)
tree5b98278386212836a29eccd3f4615a20e2f70f04 /src/compiler/shader_info.h
parent51b1b102bd619b6a802807bde5f5228c1dabd1d7 (diff)
nir/glsl: gather bitmask of images used by program
In a similar fashion as commit f5c7df4dc95 does for textures. Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4080>
Diffstat (limited to 'src/compiler/shader_info.h')
-rw-r--r--src/compiler/shader_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index 4510ce33fb6..19a963d62f3 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -140,6 +140,9 @@ typedef struct shader_info {
/** Bitfield of which textures are used by texelFetch() */
uint32_t textures_used_by_txf;
+ /** Bitfield of which images are used */
+ uint32_t images_used;
+
/* SPV_KHR_float_controls: execution mode for floating point ops */
uint16_t float_controls_execution_mode;