[Mesa-dev] [PATCH] radv: silent a compiler warning in radv_emit_framebuffer_state()
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Thu Aug 31 21:20:30 UTC 2017
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Mon, Aug 28, 2017, at 12:17, Samuel Pitoiset wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_cmd_buffer.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_cmd_buffer.c
> b/src/amd/vulkan/radv_cmd_buffer.c
> index fcc14dd936..b567bee329 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -1240,9 +1240,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));
> --
> 2.14.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list