summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <[email protected]>2012-12-12 21:00:58 +0100
committerJosé Fonseca <[email protected]>2013-02-23 18:36:58 +0000
commit65aa1a194d703664d2f68e2e6fd69029298ae25a (patch)
tree3d27598ee0620310453251e124ca69d4dab39e98 /src/gallium/drivers
parentfdb88967e3a1d559fa522afa8336446e92330ff2 (diff)
llvmpipe: Fix creation of shared and scanout textures.
NOTE: This is a candidate for the stable branches. Signed-off-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_texture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index d55985ba170..f34882808a4 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -295,7 +295,9 @@ llvmpipe_resource_create(struct pipe_screen *_screen,
/* assert(lpr->base.bind); */
if (resource_is_texture(&lpr->base)) {
- if (lpr->base.bind & PIPE_BIND_DISPLAY_TARGET) {
+ if (lpr->base.bind & (PIPE_BIND_DISPLAY_TARGET |
+ PIPE_BIND_SCANOUT |
+ PIPE_BIND_SHARED)) {
/* displayable surface */
if (!llvmpipe_displaytarget_layout(screen, lpr))
goto fail;