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

Brian Paul brianp at vmware.com
Tue Oct 27 08:14:22 PDT 2015


Sorry for causing this regression.  Thanks for fixing it.  Question below...

On 10/27/2015 05:31 AM, Marek Olšák wrote:
> 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,
>

It looks like tex->Target is getting set at line 167.  Could you simply 
initialize tex->TargetIndex at that point too?

-Brian



More information about the mesa-dev mailing list