aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_scan.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-10-09 19:26:43 +0200
committerMarek Olšák <[email protected]>2016-10-24 21:41:35 +0200
commit72267a25db6d5abae80f785b8c3742a38d57767a (patch)
tree892119d51881cb9e817d159deb428f9b7de8dd29 /src/gallium/auxiliary/tgsi/tgsi_scan.h
parentd89890d000da36c51484ee170b2d9727d2766a93 (diff)
tgsi/scan: get information about shader buffer usage
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.h')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h
index 16f00348ac2..602a8703d50 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h
@@ -133,6 +133,10 @@ struct tgsi_shader_info
* Bitmask indicating which declared image is a buffer.
*/
unsigned images_buffers;
+ unsigned shader_buffers_declared; /**< bitmask of declared shader buffers */
+ unsigned shader_buffers_load; /**< bitmask of shader buffers using loads */
+ unsigned shader_buffers_store; /**< bitmask of shader buffers using stores */
+ unsigned shader_buffers_atomic; /**< bitmask of shader buffers using atomics */
/**
* Bitmask indicating which register files are accessed with
* indirect addressing. The bits are (1 << TGSI_FILE_x), etc.