From b3225be1e983e1b984b3d507f9c26fc71aff5543 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Wed, 2 Jun 2021 12:12:32 -0400 Subject: [PATCH] frontends/va: use pipe buffer map instead of texture map Fixes: eb74f9776 ("gallium: split transfer_(un)map into buffer_(un)map and texture_(un)map") Signed-off-by: Leo Liu Reviewed-by: James Zhu Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/frontends/va/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/va/buffer.c b/src/gallium/frontends/va/buffer.c index f29811e4526..c26e1ebe086 100644 --- a/src/gallium/frontends/va/buffer.c +++ b/src/gallium/frontends/va/buffer.c @@ -132,7 +132,7 @@ vlVaMapBuffer(VADriverContextP ctx, VABufferID buf_id, void **pbuff) box.width = resource->width0; box.height = resource->height0; box.depth = resource->depth0; - *pbuff = drv->pipe->texture_map(drv->pipe, resource, 0, PIPE_MAP_WRITE, + *pbuff = drv->pipe->buffer_map(drv->pipe, resource, 0, PIPE_MAP_WRITE, &box, &buf->derived_surface.transfer); mtx_unlock(&drv->mutex);