Mesa (staging/22.1): zink: fix multisample conditional in sparse image query

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 11 01:25:28 UTC 2022


Module: Mesa
Branch: staging/22.1
Commit: 0727b1a9bfe98f439c59e032088ef98c74b1da27
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0727b1a9bfe98f439c59e032088ef98c74b1da27

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Apr 21 11:47:01 2022 -0400

zink: fix multisample conditional in sparse image query

you stare at the code for so long without truly seeing it

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100>

---

 src/gallium/drivers/zink/zink_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index dac4f9dc8a4..0be8e2df164 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -1970,7 +1970,7 @@ zink_get_sparse_texture_virtual_page_size(struct pipe_screen *pscreen,
    VkSparseImageFormatProperties props[4]; //planar?
    unsigned prop_count = ARRAY_SIZE(props);
    VKSCR(GetPhysicalDeviceSparseImageFormatProperties)(screen->pdev, format, type,
-                                                       multi_sample ? VK_SAMPLE_COUNT_1_BIT : VK_SAMPLE_COUNT_2_BIT,
+                                                       multi_sample ? VK_SAMPLE_COUNT_2_BIT : VK_SAMPLE_COUNT_1_BIT,
                                                        flags,
                                                        VK_IMAGE_TILING_OPTIMAL,
                                                        &prop_count, props);



More information about the mesa-commit mailing list