summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_context.h
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-05-23 08:44:29 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-06-03 14:14:45 -0700
commit79f1529ae03f9f85c0844eaa08e84abe7ba0882f (patch)
tree9aa844d0afd1802e69cdacbefc37b4a8f9ea0089 /src/gallium/drivers/iris/iris_context.h
parent1c8ea8b300984ee25bd81db1e4a954b7f08f7091 (diff)
iris: Create an enum for the surface groups
This will make convenient to handle compacting and printing the binding table. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.h')
-rw-r--r--src/gallium/drivers/iris/iris_context.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h
index d763528e00e..f7dcf8d64ec 100644
--- a/src/gallium/drivers/iris/iris_context.h
+++ b/src/gallium/drivers/iris/iris_context.h
@@ -281,13 +281,21 @@ struct iris_uncompiled_shader {
struct iris_state_ref const_data_state;
};
+enum iris_surface_group {
+ IRIS_SURFACE_GROUP_RENDER_TARGET,
+ IRIS_SURFACE_GROUP_CS_WORK_GROUPS,
+ IRIS_SURFACE_GROUP_TEXTURE,
+ IRIS_SURFACE_GROUP_IMAGE,
+ IRIS_SURFACE_GROUP_UBO,
+ IRIS_SURFACE_GROUP_SSBO,
+
+ IRIS_SURFACE_GROUP_COUNT,
+};
+
struct iris_binding_table {
uint32_t size_bytes;
- uint32_t texture_start;
- uint32_t ubo_start;
- uint32_t ssbo_start;
- uint32_t image_start;
+ uint32_t offsets[IRIS_SURFACE_GROUP_COUNT];
};
/**