turnip: Fix a compiler warning in release builds of the query code.
authorEric Anholt <eric@anholt.net>
Thu, 3 Sep 2020 20:42:17 +0000 (13:42 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Sep 2020 17:25:38 +0000 (17:25 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6592>

src/freedreno/vulkan/tu_query.c

index 2bdc4d3..e8a1a29 100644 (file)
@@ -158,7 +158,7 @@ tu_CreateQueryPool(VkDevice _device,
       slot_size = sizeof(struct pipeline_stat_query_slot);
       break;
    default:
-      assert(!"Invalid query type");
+      unreachable("Invalid query type");
    }
 
    struct tu_query_pool *pool =