Mesa (main): st/mesa: set GL_DYNAMIC_STORAGE_BIT for GL-VK interop buffers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 22 01:26:43 UTC 2022


Module: Mesa
Branch: main
Commit: 10e4bad80347da85a065979384921a2b253fd9bd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=10e4bad80347da85a065979384921a2b253fd9bd

Author: Jiadong Zhu <Jiadong.Zhu at amd.com>
Date:   Tue Jul 30 04:48:53 2019 -0400

st/mesa: set GL_DYNAMIC_STORAGE_BIT for GL-VK interop buffers

GL_DYNAMIC_STORAGE_BIT needs to be set to make glBufferSubData work.

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14750>

---

 src/mesa/main/bufferobj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 0edd2c91482..b3b2dc6c77b 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -401,7 +401,7 @@ bufferobj_data_mem(struct gl_context *ctx,
                    GLenum usage,
                    struct gl_buffer_object *bufObj)
 {
-   return bufferobj_data(ctx, target, size, NULL, memObj, offset, usage, 0, bufObj);
+   return bufferobj_data(ctx, target, size, NULL, memObj, offset, usage, GL_DYNAMIC_STORAGE_BIT, bufObj);
 }
 
 /**



More information about the mesa-commit mailing list