From 4e362f738f1bcb4ee4d07b7ceaa272a81ecc3932 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 6 Aug 2024 15:38:41 +0200 Subject: [PATCH] gallium/ddebug: implement set_inlinable_constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-By: Mike Blumenkrantz Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/driver_ddebug/dd_context.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/auxiliary/driver_ddebug/dd_context.c b/src/gallium/auxiliary/driver_ddebug/dd_context.c index f22ee870e97..2373c67852b 100644 --- a/src/gallium/auxiliary/driver_ddebug/dd_context.c +++ b/src/gallium/auxiliary/driver_ddebug/dd_context.c @@ -839,6 +839,16 @@ dd_context_set_context_param(struct pipe_context *_pipe, pipe->set_context_param(pipe, param, value); } +static void +dd_context_set_inlinable_constants(struct pipe_context *_pipe, + enum pipe_shader_type shader, + uint num_values, uint32_t *values) +{ + struct pipe_context *pipe = dd_context(_pipe)->pipe; + + pipe->set_inlinable_constants(pipe, shader, num_values, values); +} + struct pipe_context * dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe) { @@ -946,6 +956,7 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe) CTX_INIT(delete_image_handle); CTX_INIT(make_image_handle_resident); CTX_INIT(set_context_param); + CTX_INIT(set_inlinable_constants); dd_init_draw_functions(dctx);