panfrost: Set modifier_constant to true for exported resources
authorIcecream95 <ixn@keemail.me>
Thu, 10 Sep 2020 09:08:25 +0000 (21:08 +1200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 20 Sep 2020 01:28:50 +0000 (01:28 +0000)
commit7acf364131f59e201eddcc46492401ae0424b081
treed665863c8bd109118d8528c61db54ac41bc60f03
parent95ee0ba41f0c53fe651b9fc12d57b1eb62eea539
panfrost: Set modifier_constant to true for exported resources

Not actually seen in the wild but could theoretically be a problem for
applications that explicitly import/export resources.

v2: Set it on exporting as well as importing (Daniel Stone)

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6717>
src/gallium/drivers/panfrost/pan_resource.c