From 58bf9ff90ee774b5f7654cc99a628c86f6460821 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:54 -0600 Subject: [PATCH] nvk: Depth bounds need fui() Part-of: --- src/nouveau/vulkan/nvk_cmd_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nouveau/vulkan/nvk_cmd_draw.c b/src/nouveau/vulkan/nvk_cmd_draw.c index bd95a0b..3eafe2e 100644 --- a/src/nouveau/vulkan/nvk_cmd_draw.c +++ b/src/nouveau/vulkan/nvk_cmd_draw.c @@ -890,8 +890,8 @@ nvk_flush_ds_state(struct nvk_cmd_buffer *cmd) if (BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_DEPTH_BOUNDS_TEST_BOUNDS)) { P_MTHD(p, NV9097, SET_DEPTH_BOUNDS_MIN); - P_NV9097_SET_DEPTH_BOUNDS_MIN(p, dyn->ds.depth.bounds_test.min); - P_NV9097_SET_DEPTH_BOUNDS_MAX(p, dyn->ds.depth.bounds_test.max); + P_NV9097_SET_DEPTH_BOUNDS_MIN(p, fui(dyn->ds.depth.bounds_test.min)); + P_NV9097_SET_DEPTH_BOUNDS_MAX(p, fui(dyn->ds.depth.bounds_test.max)); } if (BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_STENCIL_TEST_ENABLE)) -- 2.7.4