summaryrefslogtreecommitdiffstats
path: root/src/vulkan/private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-05-30 10:07:29 -0700
committerJason Ekstrand <[email protected]>2015-05-30 10:07:29 -0700
commit2251305e1ac14417a634e175e53736a6f01dad0f (patch)
treeb08fbdd834b0c43d893a5f1190088b1fe1be438a /src/vulkan/private.h
parent33cccbbb738ee71b4b4827707ebd63c791b39d91 (diff)
vk/cmd_buffer: Track descriptor set dirtying per-stage
Diffstat (limited to 'src/vulkan/private.h')
-rw-r--r--src/vulkan/private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/private.h b/src/vulkan/private.h
index 153cb22d245..4b7c84262d3 100644
--- a/src/vulkan/private.h
+++ b/src/vulkan/private.h
@@ -556,6 +556,7 @@ struct anv_descriptor_set_layout {
uint32_t count;
uint32_t num_dynamic_buffers;
+ uint32_t shader_stages;
struct anv_descriptor_slot entries[0];
};
@@ -597,7 +598,6 @@ struct anv_buffer {
};
#define ANV_CMD_BUFFER_PIPELINE_DIRTY (1 << 0)
-#define ANV_CMD_BUFFER_DESCRIPTOR_SET_DIRTY (1 << 1)
#define ANV_CMD_BUFFER_RS_DIRTY (1 << 2)
#define ANV_CMD_BUFFER_DS_DIRTY (1 << 3)
#define ANV_CMD_BUFFER_CB_DIRTY (1 << 4)
@@ -636,6 +636,7 @@ struct anv_cmd_buffer {
/* State required while building cmd buffer */
uint32_t vb_dirty;
uint32_t dirty;
+ uint32_t descriptors_dirty;
struct anv_pipeline * pipeline;
struct anv_framebuffer * framebuffer;
struct anv_dynamic_rs_state * rs_state;