From 6d3c79fa4c8d539b5ad133996632cbe6c1137477 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 14 Feb 2023 10:58:45 +1000 Subject: [PATCH] crocus: switch gen4/5 tiling flags to follow suggestions. Fixes: 6043f66dd332 ("crocus: disable Y tiling for render targets properly.") Part-of: --- src/gallium/drivers/crocus/crocus_resource.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/crocus/crocus_resource.c b/src/gallium/drivers/crocus/crocus_resource.c index 4f548eb7364..789a04db1b7 100644 --- a/src/gallium/drivers/crocus/crocus_resource.c +++ b/src/gallium/drivers/crocus/crocus_resource.c @@ -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) )