mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
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 65aa1a194d)
This commit is contained in:
parent
ab883bb8a4
commit
2b8a431d39
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue