Mesa (main): panfrost: Use u_default_clear_buffer

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 23 23:41:55 UTC 2022


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

Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date:   Thu Apr 14 11:42:21 2022 -0500

panfrost: Use u_default_clear_buffer

[Alyssa: This is required for OpenCL.]

Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16044>

---

 src/gallium/drivers/panfrost/pan_resource.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c
index 65d8be8127b..b673af74370 100644
--- a/src/gallium/drivers/panfrost/pan_resource.c
+++ b/src/gallium/drivers/panfrost/pan_resource.c
@@ -1487,4 +1487,5 @@ panfrost_resource_context_init(struct pipe_context *pctx)
         pctx->transfer_flush_region = u_transfer_helper_transfer_flush_region;
         pctx->buffer_subdata = u_default_buffer_subdata;
         pctx->texture_subdata = u_default_texture_subdata;
+        pctx->clear_buffer = u_default_clear_buffer;
 }



More information about the mesa-commit mailing list