crocus/gen8: add back z16 support for gen8

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11646>
This commit is contained in:
Dave Airlie 2021-06-30 10:42:43 +10:00 committed by Marge Bot
parent 140ce4f8ed
commit 783dcd0634
1 changed files with 8 additions and 4 deletions

View File

@ -467,11 +467,15 @@ crocus_is_format_supported(struct pipe_screen *pscreen,
supported &= isl_format_supports_multisampling(devinfo, format);
if (usage & PIPE_BIND_DEPTH_STENCIL) {
supported &= format == ISL_FORMAT_R32_FLOAT_X8X24_TYPELESS ||
format == ISL_FORMAT_R32_FLOAT ||
format == ISL_FORMAT_R24_UNORM_X8_TYPELESS ||
format == ISL_FORMAT_R8_UINT;
bool depth_fmts = format == ISL_FORMAT_R32_FLOAT_X8X24_TYPELESS ||
format == ISL_FORMAT_R32_FLOAT ||
format == ISL_FORMAT_R24_UNORM_X8_TYPELESS ||
format == ISL_FORMAT_R8_UINT;
/* Z16 is disabled here as on pre-GEN8 it's slower. */
if (devinfo->ver == 8)
depth_fmts |= format == ISL_FORMAT_R16_UNORM;
supported &= depth_fmts;
}
if (usage & PIPE_BIND_RENDER_TARGET) {