summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-10-01 22:16:59 -0500
committerKenneth Graunke <[email protected]>2018-10-23 02:36:24 -0700
commit8b626a22b24089edf90cb1b06e5b1895bb36c61b (patch)
tree7e81c79266e1c21a35c7ac8134fa6e9de055e157 /src/gallium/include/pipe
parentbf441d22a7917f38cb10b66c0a680190f636ee4e (diff)
st/mesa: Record shader access qualifiers for images
They're not required to be the same as the access flag on the image unit. For hardware that does shader image lowering based on the qualifier (Intel), it may be required for state setup. v2: (by Kenneth Graunke, incorporating feedback from Marek Olšák) - Reduce both access and shader_access to uint16_t to avoid making the pipe_image_view structure larger. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r--src/gallium/include/pipe/p_state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 95a18a72b5c..fd670345aad 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -484,7 +484,8 @@ struct pipe_image_view
{
struct pipe_resource *resource; /**< resource into which this is a view */
enum pipe_format format; /**< typed PIPE_FORMAT_x */
- unsigned access; /**< PIPE_IMAGE_ACCESS_x */
+ uint16_t access; /**< PIPE_IMAGE_ACCESS_x */
+ uint16_t shader_access; /**< PIPE_IMAGE_ACCESS_x */
union {
struct {