From d375a0ff8a5a75b7370d22bad34293cb7bb226a5 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Wed, 5 Oct 2022 10:33:34 +0200 Subject: [PATCH] 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 '' panicked at 'Context missing features. This should never happen!', ../src/gallium/frontends/rusticl/mesa/pipe/context.rs:44:13 Signed-off-by: Thomas Debesse Reviewed-by: Emma Anholt Part-of: --- 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;