Mesa (master): turnip: Fix a compiler warning in release builds of the query code.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Sep 9 17:44:10 UTC 2020


Module: Mesa
Branch: master
Commit: 021523d4aea9ea3801bf64bfb4d7292306b8c107
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=021523d4aea9ea3801bf64bfb4d7292306b8c107

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Sep  3 13:42:17 2020 -0700

turnip: Fix a compiler warning in release builds of the query code.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6592>

---

 src/freedreno/vulkan/tu_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/vulkan/tu_query.c b/src/freedreno/vulkan/tu_query.c
index 2bdc4d3dd30..e8a1a29eff7 100644
--- a/src/freedreno/vulkan/tu_query.c
+++ b/src/freedreno/vulkan/tu_query.c
@@ -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 =



More information about the mesa-commit mailing list