zink: force display-targets to be linear
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 15 Dec 2020 18:51:29 +0000 (19:51 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 16 Dec 2020 09:25:59 +0000 (09:25 +0000)
commit1fd5e7b14eb9130d22f0a6ff219af1680734415a
tree67050a2ab7a59161f56361fafa2e2f6d2df6470b
parent87d7568d69199d1fa16858b45521764d31815aa9
zink: force display-targets to be linear

This is close to a revert of commit
b5b25ee0327f65d837ff84f59b497232d52ec25d, but it limits the scope a bit
to avoid needless performance degregation.

In the long run, we should really allow using tiled resources here, and
instead detile while presenting.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8115>
src/gallium/drivers/zink/zink_resource.c