crocus: switch gen4/5 tiling flags to follow suggestions.

Fixes: 6043f66dd3 ("crocus: disable Y tiling for render targets properly.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21300>
This commit is contained in:
Dave Airlie 2023-02-14 10:58:45 +10:00 committed by Marge Bot
parent 723569d71e
commit 6d3c79fa4c

View file

@ -189,9 +189,8 @@ crocus_resource_configure_main(const struct crocus_screen *screen,
tiling_flags = 1 << res->mod_info->tiling;
} else {
if (templ->bind & PIPE_BIND_RENDER_TARGET && devinfo->ver < 6) {
tiling_flags &= ~ISL_TILING_Y0_BIT;
}
if (templ->bind & PIPE_BIND_RENDER_TARGET && devinfo->ver < 6)
tiling_flags &= ISL_TILING_LINEAR_BIT | ISL_TILING_X_BIT;
/* Use linear for staging buffers */
if (templ->usage == PIPE_USAGE_STAGING ||
templ->bind & (PIPE_BIND_LINEAR | PIPE_BIND_CURSOR) )