summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2012-12-12 21:00:58 +0100
committerAndreas Boll <andreas.boll.dev@gmail.com>2013-04-17 12:43:58 +0200
commitf341c6c6b0662e5a34dbd80b56690c97348a2347 (patch)
tree70fae9350ead2e1ac07b10e4b150b91218a1ac22
parent4494b85f995d5eca8c7bcf76bac8c5feb9c83cb6 (diff)
llvmpipe: Fix creation of shared and scanout textures.
NOTE: This is a candidate for the stable branches. Signed-off-by: José Fonseca <jfonseca@vmware.com> (cherry picked from commit 65aa1a194d703664d2f68e2e6fd69029298ae25a)
-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 3604143231..9869478b34 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -258,7 +258,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;