From 2b8a431d395c5c4953c8288ae7718510009a2c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Wed, 12 Dec 2012 21:00:58 +0100 Subject: [PATCH] llvmpipe: Fix creation of shared and scanout textures. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NOTE: This is a candidate for the stable branches. Signed-off-by: José Fonseca (cherry picked from commit 65aa1a194d703664d2f68e2e6fd69029298ae25a) --- src/gallium/drivers/llvmpipe/lp_texture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index 2e9c6bfe1ca..f17a04af907 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;