diff options
author | Icecream95 <ixn@keemail.me> | 2020-09-05 10:11:41 +1200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-09-09 11:54:01 +0000 |
commit | 23ad95227a8b2c8ee390665c71a70685f82f0ef9 (patch) | |
tree | df43f26ea977aa3b15df359d9a7ca81e28cbd28a | |
parent | 361396c86682eec03a067141a3dafd4629b36a45 (diff) |
panfrost: Correctly set modifier_constant
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>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index cb2e30ccf2c..aa8277f8cb5 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -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; |