radv: fix use of unreachable() in the meta blit path
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Sep 2018 09:18:06 +0000 (11:18 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Sep 2018 09:29:25 +0000 (11:29 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/amd/vulkan/radv_meta_blit.c

index a205686e55392f5f7940dcd004dc55b4e3a7b609..e796291120804ed6c687416b0ef817f65d99b470 100644 (file)
@@ -384,7 +384,7 @@ meta_emit_blit(struct radv_cmd_buffer *cmd_buffer,
                        pipeline = &device->meta_state.blit.pipeline_3d_src[fs_key];
                        break;
                default:
-                       unreachable(!"bad VkImageType");
+                       unreachable("bad VkImageType");
                }
                break;
        }
@@ -413,7 +413,7 @@ meta_emit_blit(struct radv_cmd_buffer *cmd_buffer,
                        pipeline = &device->meta_state.blit.depth_only_3d_pipeline;
                        break;
                default:
-                       unreachable(!"bad VkImageType");
+                       unreachable("bad VkImageType");
                }
                break;
        }
@@ -442,12 +442,12 @@ meta_emit_blit(struct radv_cmd_buffer *cmd_buffer,
                        pipeline = &device->meta_state.blit.stencil_only_3d_pipeline;
                        break;
                default:
-                       unreachable(!"bad VkImageType");
+                       unreachable("bad VkImageType");
                }
                break;
        }
        default:
-               unreachable(!"bad VkImageType");
+               unreachable("bad VkImageType");
        }
 
        if (!*pipeline) {