radv: silent a compiler warning in radv_emit_framebuffer_state()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 28 Aug 2017 10:17:11 +0000 (12:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 1 Sep 2017 07:38:52 +0000 (09:38 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index 1c88717551ab323fef4f2d42c552835b69dd1057..9da8f0965844c8b2d7f2cf786e3d130ad3e5e374 100644 (file)
@@ -1242,9 +1242,9 @@ radv_emit_framebuffer_state(struct radv_cmd_buffer *cmd_buffer)
                struct radv_attachment_info *att = &framebuffer->attachments[idx];
                struct radv_image *image = att->attachment->image;
                cmd_buffer->device->ws->cs_add_buffer(cmd_buffer->cs, att->attachment->bo, 8);
-               uint32_t queue_mask = radv_image_queue_family_mask(image,
-                                                                  cmd_buffer->queue_family_index,
-                                                                  cmd_buffer->queue_family_index);
+               MAYBE_UNUSED uint32_t queue_mask = radv_image_queue_family_mask(image,
+                                                                               cmd_buffer->queue_family_index,
+                                                                               cmd_buffer->queue_family_index);
                /* We currently don't support writing decompressed HTILE */
                assert(radv_layout_has_htile(image, layout, queue_mask) ==
                       radv_layout_is_htile_compressed(image, layout, queue_mask));