[Mesa-dev] [PATCH] radv: add an assertion when pushing meta descriptor sets

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Sep 7 13:30:38 UTC 2017


Just to make sure we are using the set 0, because it's the
only one which is saved/restored when doing meta operations.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_cmd_buffer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 903b7729df..efd3280699 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -2192,6 +2192,7 @@ void radv_meta_push_descriptor_set(
 	struct radv_descriptor_set *push_set = &cmd_buffer->meta_push_descriptors;
 	unsigned bo_offset;
 
+	assert(set == 0);
 	assert(layout->set[set].layout->flags & VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR);
 
 	push_set->size = layout->set[set].layout->size;
-- 
2.14.1



More information about the mesa-dev mailing list