mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
panfrost: Correctly set modifier_constant
This fixes the tiled-linear conversion optimisation.
Fixes: 56f9cc9948 ("panfrost: Account for modifiers when creating BO")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6608>
This commit is contained in:
parent
361396c866
commit
23ad95227a
1 changed files with 1 additions and 1 deletions
|
|
@ -537,7 +537,7 @@ panfrost_resource_create_bo(struct panfrost_device *dev, struct panfrost_resourc
|
|||
* linear, and if we control the modifier, and if the resource can be
|
||||
* linear. */
|
||||
pres->modifier_constant = !((pres->modifier != DRM_FORMAT_MOD_LINEAR)
|
||||
&& (modifier == DRM_FORMAT_INVALID)
|
||||
&& (modifier == DRM_FORMAT_MOD_INVALID)
|
||||
&& panfrost_can_linear(dev, pres));
|
||||
|
||||
size_t bo_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue