Lines Matching refs:ctx

61 st_vdpau_video_surface_gallium(struct gl_context *ctx, const void *vdpSurface,
65 uint32_t device = (uintptr_t)ctx->vdpDevice;
73 getProcAddr = (void *)ctx->vdpGetProcAddress;
94 st_vdpau_output_surface_gallium(struct gl_context *ctx, const void *vdpSurface)
97 uint32_t device = (uintptr_t)ctx->vdpDevice;
101 getProcAddr = (void *)ctx->vdpGetProcAddress;
110 st_vdpau_resource_from_description(struct gl_context *ctx,
113 struct st_context *st = st_context(ctx);
147 st_vdpau_output_surface_dma_buf(struct gl_context *ctx, const void *vdpSurface)
150 uint32_t device = (uintptr_t)ctx->vdpDevice;
155 getProcAddr = (void *)ctx->vdpGetProcAddress;
162 return st_vdpau_resource_from_description(ctx, &desc);
166 st_vdpau_video_surface_dma_buf(struct gl_context *ctx, const void *vdpSurface,
170 uint32_t device = (uintptr_t)ctx->vdpDevice;
175 getProcAddr = (void *)ctx->vdpGetProcAddress;
182 return st_vdpau_resource_from_description(ctx, &desc);
186 st_vdpau_map_surface(struct gl_context *ctx, GLenum target, GLenum access,
191 struct st_context *st = st_context(ctx);
199 res = st_vdpau_output_surface_dma_buf(ctx, vdpSurface);
202 res = st_vdpau_output_surface_gallium(ctx, vdpSurface);
205 res = st_vdpau_video_surface_dma_buf(ctx, vdpSurface, index);
208 res = st_vdpau_video_surface_gallium(ctx, vdpSurface, index);
233 _mesa_error(ctx, GL_INVALID_OPERATION, "VDPAUMapSurfacesNV");
239 _mesa_clear_texture_object(ctx, texObj, NULL);
245 _mesa_init_teximage_fields(ctx, texImage,
257 _mesa_dirty_texobj(ctx, texObj);
262 st_vdpau_unmap_surface(struct gl_context *ctx, GLenum target, GLenum access,
267 struct st_context *st = st_context(ctx);
276 _mesa_dirty_texobj(ctx, texObj);