Mesa (main): mesa: add _mesa_bufferobj_get_subdata
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 6 19:05:07 UTC 2022
Module: Mesa
Branch: main
Commit: b3ba33b6f15778fcf89372abfe8cb4c685fcc1e6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3ba33b6f15778fcf89372abfe8cb4c685fcc1e6
Author: Qiang Yu <yuq825 at gmail.com>
Date: Wed Mar 9 11:34:57 2022 +0800
mesa: add _mesa_bufferobj_get_subdata
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Signed-off-by: Qiang Yu <yuq825 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15765>
---
src/mesa/main/bufferobj.c | 8 ++++++++
src/mesa/main/bufferobj.h | 6 ++++++
2 files changed, 14 insertions(+)
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index b3b2dc6c77b..67079f4fd86 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -145,6 +145,14 @@ bufferobj_get_subdata(struct gl_context *ctx,
offset, size, data);
}
+void
+_mesa_bufferobj_get_subdata(struct gl_context *ctx,
+ GLintptrARB offset,
+ GLsizeiptrARB size,
+ void *data, struct gl_buffer_object *obj)
+{
+ bufferobj_get_subdata(ctx, offset, size, data, obj);
+}
/**
* Return bitmask of PIPE_BIND_x flags corresponding a GL buffer target.
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index aa02b6298a1..032a4cd376c 100644
--- a/src/mesa/main/bufferobj.h
+++ b/src/mesa/main/bufferobj.h
@@ -79,6 +79,12 @@ GLboolean _mesa_bufferobj_data(struct gl_context *ctx,
GLenum usage,
GLbitfield storageFlags,
struct gl_buffer_object *obj);
+void
+_mesa_bufferobj_get_subdata(struct gl_context *ctx,
+ GLintptrARB offset,
+ GLsizeiptrARB size,
+ void *data, struct gl_buffer_object *obj);
+
void *_mesa_bufferobj_map_range(struct gl_context *ctx,
GLintptr offset, GLsizeiptr length,
GLbitfield access,
More information about the mesa-commit
mailing list