summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-07-07 18:28:31 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2015-07-08 16:09:26 +0100
commit57a6f5208d2affe33bfef4bc1d632e4c63af7b1e (patch)
tree2087ebebf0dabf23ac3794a3274b49362bf61f84
parentf3abea1577f8d5c17dacab17aeafb0c1fc1092cc (diff)
st/dri: don't set PIPE_BIND_SCANOUT for MSAA surfaces
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91231 Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 6611f65047575054a38ce83ebfe0331e39e1774f) Nominated-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r--src/gallium/state_trackers/dri/dri2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c
index 8d93f786433..1eda036750e 100644
--- a/src/gallium/state_trackers/dri/dri2.c
+++ b/src/gallium/state_trackers/dri/dri2.c
@@ -554,7 +554,7 @@ dri2_allocate_textures(struct dri_context *ctx,
if (drawable->textures[statt]) {
templ.format = drawable->textures[statt]->format;
- templ.bind = drawable->textures[statt]->bind;
+ templ.bind = drawable->textures[statt]->bind & ~PIPE_BIND_SCANOUT;
templ.nr_samples = drawable->stvis.samples;
/* Try to reuse the resource.