diff --git a/.pick_status.json b/.pick_status.json index 37ecee0a0af..842de7b272a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -40,7 +40,7 @@ "description": "freedreno: Disallow tiled if SHARED and not QCOM_COMPRESSED", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 17543842ca0..9c2f900502b 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -933,8 +933,12 @@ fd_resource_create_with_modifiers(struct pipe_screen *pscreen, * should.) */ bool allow_ubwc = drm_find_modifier(DRM_FORMAT_MOD_INVALID, modifiers, count); - if (tmpl->bind & PIPE_BIND_SHARED) + if (tmpl->bind & PIPE_BIND_SHARED) { allow_ubwc = drm_find_modifier(DRM_FORMAT_MOD_QCOM_COMPRESSED, modifiers, count); + if (!allow_ubwc) { + linear = true; + } + } allow_ubwc &= !(fd_mesa_debug & FD_DBG_NOUBWC);