diff options
author | Jason Ekstrand <[email protected]> | 2015-05-28 10:00:38 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-05-28 10:00:38 -0700 |
commit | 6eefeb1f8430bfa3f6f141dd563f2a4f82caede8 (patch) | |
tree | 0bcfaae17606e0dd853742e3f05af30ef314fa7c /src/vulkan/private.h | |
parent | 5a317ef4cba1fbd04fe2ec446a3556de2f384e63 (diff) |
vk/meta: Share the dummy RS and CB state between clear and blit
Diffstat (limited to 'src/vulkan/private.h')
-rw-r--r-- | src/vulkan/private.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/vulkan/private.h b/src/vulkan/private.h index 9a56c1949b8..f2835ba660e 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -298,17 +298,20 @@ struct anv_instance { struct anv_physical_device physicalDevice; }; -struct anv_clear_state { - VkPipeline pipeline; - VkDynamicRsState rs_state; - VkDynamicCbState cb_state; -}; +struct anv_meta_state { + struct { + VkPipeline pipeline; + } clear; -struct anv_blit_state { - VkPipeline pipeline; - VkDynamicRsState rs_state; - VkDescriptorSetLayout ds_layout; - VkDynamicCbState cb_state; + struct { + VkPipeline pipeline; + VkDescriptorSetLayout ds_layout; + } blit; + + struct { + VkDynamicRsState rs_state; + VkDynamicCbState cb_state; + } shared; }; struct anv_device { @@ -330,8 +333,7 @@ struct anv_device { struct anv_block_pool binding_table_block_pool; struct anv_state_pool surface_state_pool; - struct anv_clear_state clear_state; - struct anv_blit_state blit_state; + struct anv_meta_state meta_state; struct anv_compiler * compiler; struct anv_aub_writer * aub_writer; |