radv: add some asserts for operations on general queue
authorDave Airlie <airlied@redhat.com>
Tue, 27 Dec 2016 03:26:11 +0000 (03:26 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 27 Dec 2016 03:27:14 +0000 (03:27 +0000)
These might be useful in the future, or not.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_decompress.c
src/amd/vulkan/radv_meta_fast_clear.c

index 47ef64dbbcb84c695c6038fc99d07b3aaf973ca8..490747511c30d17ad2cc83989acf19ddc239df68 100644 (file)
@@ -450,6 +450,7 @@ void radv_decompress_depth_image_inplace(struct radv_cmd_buffer *cmd_buffer,
                                         struct radv_image *image,
                                         VkImageSubresourceRange *subresourceRange)
 {
+       assert(cmd_buffer->queue_family_index == RADV_QUEUE_GENERAL);
        radv_process_depth_image_inplace(cmd_buffer, image, subresourceRange,
                                         cmd_buffer->device->meta_state.depth_decomp.decompress_pipeline);
 }
@@ -458,6 +459,7 @@ void radv_resummarize_depth_image_inplace(struct radv_cmd_buffer *cmd_buffer,
                                         struct radv_image *image,
                                         VkImageSubresourceRange *subresourceRange)
 {
+       assert(cmd_buffer->queue_family_index == RADV_QUEUE_GENERAL);
        radv_process_depth_image_inplace(cmd_buffer, image, subresourceRange,
                                         cmd_buffer->device->meta_state.depth_decomp.resummarize_pipeline);
 }
index f79c634a33ba47c0aebbd22c80d00ce55e549473..950b438df7c40779529b8bb83e55ccdacc8bfe78 100644 (file)
@@ -419,6 +419,7 @@ radv_fast_clear_flush_image_inplace(struct radv_cmd_buffer *cmd_buffer,
        VkDevice device_h = radv_device_to_handle(cmd_buffer->device);
        VkCommandBuffer cmd_buffer_h = radv_cmd_buffer_to_handle(cmd_buffer);
 
+       assert(cmd_buffer->queue_family_index == RADV_QUEUE_GENERAL);
        radv_meta_save_pass(&saved_pass_state, cmd_buffer);
        radv_meta_save_graphics_reset_vport_scissor(&saved_state, cmd_buffer);