zink: add have_D32_SFLOAT_S8_UINT boolean
This will be reused in the following commit. Cc: mesa-stable Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17953>
This commit is contained in:
committed by
Marge Bot
parent
37dfa4e3f3
commit
71c1ca3c67
@@ -1533,8 +1533,7 @@ zink_get_format(struct zink_screen *screen, enum pipe_format format)
|
||||
|
||||
if (ret == VK_FORMAT_D24_UNORM_S8_UINT &&
|
||||
!screen->have_D24_UNORM_S8_UINT) {
|
||||
assert(zink_is_depth_format_supported(screen,
|
||||
VK_FORMAT_D32_SFLOAT_S8_UINT));
|
||||
assert(screen->have_D32_SFLOAT_S8_UINT);
|
||||
return VK_FORMAT_D32_SFLOAT_S8_UINT;
|
||||
}
|
||||
|
||||
@@ -2207,6 +2206,8 @@ zink_internal_create_screen(const struct pipe_screen_config *config)
|
||||
VK_FORMAT_X8_D24_UNORM_PACK32);
|
||||
screen->have_D24_UNORM_S8_UINT = zink_is_depth_format_supported(screen,
|
||||
VK_FORMAT_D24_UNORM_S8_UINT);
|
||||
screen->have_D32_SFLOAT_S8_UINT = zink_is_depth_format_supported(screen,
|
||||
VK_FORMAT_D32_SFLOAT_S8_UINT);
|
||||
|
||||
if (!zink_get_physical_device_info(screen)) {
|
||||
debug_printf("ZINK: failed to detect features\n");
|
||||
|
||||
@@ -158,6 +158,7 @@ struct zink_screen {
|
||||
|
||||
bool have_X8_D24_UNORM_PACK32;
|
||||
bool have_D24_UNORM_S8_UINT;
|
||||
bool have_D32_SFLOAT_S8_UINT;
|
||||
bool have_triangle_fans;
|
||||
bool need_2D_zs;
|
||||
bool need_2D_sparse;
|
||||
|
||||
Reference in New Issue
Block a user