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@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100>
This commit is contained in:
Mike Blumenkrantz
2022-04-21 11:47:01 -04:00
committed by Marge Bot
parent 9a412c10b7
commit 0e49ef5c9f
+1 -1
View File
@@ -1872,7 +1872,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);