Mesa (master): st/dri: make sure software color-buffers are linear
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 16 10:17:10 UTC 2020
Module: Mesa
Branch: master
Commit: 040a2643c08dd0accee6942bc05836b99417ee49
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=040a2643c08dd0accee6942bc05836b99417ee49
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Mon Sep 23 21:56:36 2019 +0200
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 at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2678>
---
src/gallium/state_trackers/dri/drisw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c
index df364c47391..1c0f56e042d 100644
--- a/src/gallium/state_trackers/dri/drisw.c
+++ b/src/gallium/state_trackers/dri/drisw.c
@@ -351,7 +351,7 @@ drisw_allocate_textures(struct dri_context *stctx,
/* if we don't do any present, no need for display targets */
if (statts[i] != ST_ATTACHMENT_DEPTH_STENCIL && !screen->swrast_no_present)
- bind |= PIPE_BIND_DISPLAY_TARGET;
+ bind |= PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_LINEAR;
if (format == PIPE_FORMAT_NONE)
continue;
More information about the mesa-commit
mailing list