anv: Make the framebuffer-renderpass format assert non-fatal
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Mar 2017 17:29:46 +0000 (09:29 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Mar 2017 23:22:16 +0000 (15:22 -0800)
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 <lionel.g.landwerlin@intel.com>
src/intel/vulkan/genX_cmd_buffer.c

index ae153d23f80c17983631c2c9709fab42980d9203..9fdc08be506a0681f458c29b6f9f2eae2499db94 100644 (file)
@@ -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) {