diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-07 15:30:38 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-08 09:42:23 +0200 |
commit | b33b85cdd4cb54b3a95d14f170ec6792e554cdb1 (patch) | |
tree | 01b2e2ba70872c96429255c914bde2fb230868a3 /src/amd/vulkan | |
parent | 6e2b87c7e92b090dc2a08735f6ac96a95266730b (diff) |
radv: add an assertion when pushing meta descriptor sets
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 90b97c8a377..4de24c96e65 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2169,6 +2169,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; |