mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
crocus: disable Y tiling for render targets properly.
The old code would disallow linear targets as well which would confuse
things with reimporting dma-bufs.
Fixes: 32728dc66e ("crocus: introduce main resource configuration helper.")
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21209>
This commit is contained in:
parent
db6c374919
commit
6043f66dd3
1 changed files with 1 additions and 3 deletions
|
|
@ -190,9 +190,7 @@ crocus_resource_configure_main(const struct crocus_screen *screen,
|
||||||
tiling_flags = 1 << res->mod_info->tiling;
|
tiling_flags = 1 << res->mod_info->tiling;
|
||||||
} else {
|
} else {
|
||||||
if (templ->bind & PIPE_BIND_RENDER_TARGET && devinfo->ver < 6) {
|
if (templ->bind & PIPE_BIND_RENDER_TARGET && devinfo->ver < 6) {
|
||||||
modifier = I915_FORMAT_MOD_X_TILED;
|
tiling_flags &= ~ISL_TILING_Y0_BIT;
|
||||||
res->mod_info = isl_drm_modifier_get_info(modifier);
|
|
||||||
tiling_flags = 1 << res->mod_info->tiling;
|
|
||||||
}
|
}
|
||||||
/* Use linear for staging buffers */
|
/* Use linear for staging buffers */
|
||||||
if (templ->usage == PIPE_USAGE_STAGING ||
|
if (templ->usage == PIPE_USAGE_STAGING ||
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue