[Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV

Marek Olšák maraeo at gmail.com
Tue Oct 27 04:31:19 PDT 2015


From: Marek Olšák <marek.olsak at amd.com>

This is required since 7d7dd1871174905dfdd3ca874a09d9.
---
 src/mesa/main/vdpau.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/main/vdpau.c b/src/mesa/main/vdpau.c
index 0efa56e..0c000c4 100644
--- a/src/mesa/main/vdpau.c
+++ b/src/mesa/main/vdpau.c
@@ -375,6 +375,9 @@ _mesa_VDPAUMapSurfacesNV(GLsizei numSurfaces, const GLintptr *surfaces)
             return;
          }
 
+         tex->Target = surf->target;
+         tex->TargetIndex = _mesa_tex_target_to_index(ctx, surf->target);
+
          ctx->Driver.FreeTextureImageBuffer(ctx, image);
 
          ctx->Driver.VDPAUMapSurface(ctx, surf->target, surf->access,
-- 
2.1.4



More information about the mesa-dev mailing list