This fixes the tiled-linear conversion optimisation.
Fixes:
56f9cc99487 ("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>
* 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;