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

Author: Thomas Debesse <[email protected]>
Date:   Wed Oct  5 10:33:34 2022 +0200

crocus: set clear_buffer = u_default_clear_buffer

This is required when crocus is enabled in rusticl,
the lack of it contributes to this error:

thread '<unnamed>' panicked at 'Context missing features. This should never 
happen!', ../src/gallium/frontends/rusticl/mesa/pipe/context.rs:44:13

Signed-off-by: Thomas Debesse <[email protected]>
Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19001>

---

 src/gallium/drivers/crocus/crocus_resource.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/crocus/crocus_resource.c 
b/src/gallium/drivers/crocus/crocus_resource.c
index 8effdb20777..7b4d50a6648 100644
--- a/src/gallium/drivers/crocus/crocus_resource.c
+++ b/src/gallium/drivers/crocus/crocus_resource.c
@@ -2029,6 +2029,7 @@ void
 crocus_init_resource_functions(struct pipe_context *ctx)
 {
    ctx->flush_resource = crocus_flush_resource;
+   ctx->clear_buffer = u_default_clear_buffer;
    ctx->invalidate_resource = crocus_invalidate_resource;
    ctx->buffer_map = u_transfer_helper_transfer_map;
    ctx->texture_map = u_transfer_helper_transfer_map;

Reply via email to