st/dri: make sure software color-buffers are linear
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 23 Sep 2019 19:56:36 +0000 (21:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 09:57:25 +0000 (09:57 +0000)
commit040a2643c08dd0accee6942bc05836b99417ee49
tree6a48f19b2cf40744fe16d93bf70533d41ff83bbe
parent1c4f68b089b26918fff55196122309ac43e78e1b
st/dri: make sure software color-buffers are linear

Otherwise, we might end up with a tiling-capable driver creating a
tiled resource here instead of linear. This is currently possible with
Zink, although we currently force all display-targets to be linear.

But that doesn't seem like a good idea in the long run, so let's loosen
this restriction.

Acked-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2678>
src/gallium/state_trackers/dri/drisw.c