diff options
author | Qiang Yu <yuq825@gmail.com> | 2017-10-27 17:34:08 +0800 |
---|---|---|
committer | Qiang Yu <yuq825@gmail.com> | 2017-10-27 17:34:08 +0800 |
commit | c244f101b735364f880825e89f1681b48d39267e (patch) | |
tree | 49f3e2e7f6f76b111cd06ac9a539414d5d77fc54 | |
parent | e64050848004137e360f61ee50db5e1b3592911a (diff) |
lima: for glBufferSubData
Signed-off-by: Qiang Yu <yuq825@gmail.com>
-rw-r--r-- | src/gallium/drivers/lima/lima_resource.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/lima_resource.c b/src/gallium/drivers/lima/lima_resource.c index 32eac0b9ec..8835df7c0c 100644 --- a/src/gallium/drivers/lima/lima_resource.c +++ b/src/gallium/drivers/lima/lima_resource.c @@ -27,6 +27,7 @@ #include "util/u_inlines.h" #include "util/u_math.h" #include "util/u_debug.h" +#include "util/u_transfer.h" #include "state_tracker/drm_driver.h" @@ -323,6 +324,8 @@ lima_resource_context_init(struct lima_context *ctx) ctx->base.create_surface = lima_surface_create; ctx->base.surface_destroy = lima_surface_destroy; + ctx->base.buffer_subdata = u_default_buffer_subdata; + ctx->base.transfer_map = lima_transfer_map; ctx->base.transfer_flush_region = lima_transfer_flush_region; ctx->base.transfer_unmap = lima_transfer_unmap; |