From 301f57a17ce73ba82e49b55837bbe7422265a113 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 19 Nov 2023 12:23:56 -0400 Subject: [PATCH] gallium: drop pipe_shader_state_from_nir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is a bad api and now unused. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- src/gallium/include/pipe/p_state.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index cd55ee04afa..069c32b1fa0 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -314,17 +314,6 @@ pipe_shader_state_from_tgsi(struct pipe_shader_state *state, memset(&state->stream_output, 0, sizeof(state->stream_output)); } -static inline void -pipe_shader_state_from_nir(struct pipe_shader_state *state, - void *nir) -{ - state->type = PIPE_SHADER_IR_NIR; - state->ir.nir = nir; - state->tokens = NULL; - memset(&state->stream_output, 0, sizeof(state->stream_output)); -} - - struct pipe_stencil_state { unsigned enabled:1; /**< stencil[0]: stencil enabled, stencil[1]: two-side enabled */