From: Jason Ekstrand Date: Tue, 7 Mar 2017 17:29:46 +0000 (-0800) Subject: anv: Make the framebuffer-renderpass format assert non-fatal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0421813588c8f28581a83b2a004b8801a53d4281;p=mesa.git anv: Make the framebuffer-renderpass format assert non-fatal This should let Dota 2 run on debug builds though it will spew errors like mad. Hopefully, Valve will get this fixed sooner rather than later. Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index ae153d23f80..9fdc08be506 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -504,7 +504,7 @@ genX(cmd_buffer_setup_attachments)(struct anv_cmd_buffer *cmd_buffer, state->attachments[i].clear_value = begin->pClearValues[i]; struct anv_image_view *iview = framebuffer->attachments[i]; - assert(iview->vk_format == att->format); + anv_assert(iview->vk_format == att->format); union isl_color_value clear_color = { .u32 = { 0, } }; if (att_aspects == VK_IMAGE_ASPECT_COLOR_BIT) {