summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-09 19:40:44 +0200
committerMarek Olšák <[email protected]>2017-06-12 18:24:37 +0200
commit29bf2530d8c003488c32c54f0d4c7c70cdb534e2 (patch)
tree0e3e62f8e976b656e4213bb720df649eba77cea0 /src
parentcf5ce61148559a870254c8b3d8ccac5e728de5af (diff)
radeonsi: pack si_buffer_resources better
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index b616757c0af..d8bf13e794a 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -267,12 +267,13 @@ struct si_sampler_views {
};
struct si_buffer_resources {
- enum radeon_bo_usage shader_usage; /* READ, WRITE, or READWRITE */
- enum radeon_bo_usage shader_usage_constbuf;
- enum radeon_bo_priority priority;
- enum radeon_bo_priority priority_constbuf;
struct pipe_resource **buffers; /* this has num_buffers elements */
+ enum radeon_bo_usage shader_usage:4; /* READ, WRITE, or READWRITE */
+ enum radeon_bo_usage shader_usage_constbuf:4;
+ enum radeon_bo_priority priority:6;
+ enum radeon_bo_priority priority_constbuf:6;
+
/* The i-th bit is set if that element is enabled (non-NULL resource). */
unsigned enabled_mask;
};