Browse Source

st/dri: don't set PIPE_BIND_SHARED for privately-allocated renderbuffers

which are MSAA and depth/stencil buffers.

Reviewed-by: Eric Anholt <eric@anholt.net>
tags/17.3-branchpoint
Marek Olšák 8 years ago
parent
commit
39608761cd
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/gallium/state_trackers/dri/dri2.c

+ 3
- 2
src/gallium/state_trackers/dri/dri2.c View File

@@ -732,7 +732,8 @@ dri2_allocate_textures(struct dri_context *ctx,

if (drawable->textures[statt]) {
templ.format = drawable->textures[statt]->format;
templ.bind = drawable->textures[statt]->bind & ~PIPE_BIND_SCANOUT;
templ.bind = drawable->textures[statt]->bind &
~(PIPE_BIND_SCANOUT | PIPE_BIND_SHARED);
templ.nr_samples = drawable->stvis.samples;

/* Try to reuse the resource.
@@ -781,7 +782,7 @@ dri2_allocate_textures(struct dri_context *ctx,

if (format) {
templ.format = format;
templ.bind = bind;
templ.bind = bind & ~PIPE_BIND_SHARED;

if (drawable->stvis.samples > 1) {
templ.nr_samples = drawable->stvis.samples;

Loading…
Cancel
Save