Mesa (main): frontends/va: use pipe buffer map instead of texture map
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 3 14:05:41 UTC 2021
Module: Mesa
Branch: main
Commit: b3225be1e983e1b984b3d507f9c26fc71aff5543
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3225be1e983e1b984b3d507f9c26fc71aff5543
Author: Leo Liu <leo.liu at amd.com>
Date: Wed Jun 2 12:12:32 2021 -0400
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 <leo.liu at amd.com>
Reviewed-by: James Zhu <James.Zhu at amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11141>
---
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);
More information about the mesa-commit
mailing list