Module: Mesa Branch: main Commit: 301f57a17ce73ba82e49b55837bbe7422265a113 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=301f57a17ce73ba82e49b55837bbe7422265a113
Author: Alyssa Rosenzweig <aly...@rosenzweig.io> Date: Sun Nov 19 12:23:56 2023 -0400 gallium: drop pipe_shader_state_from_nir It is a bad api and now unused. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Eric Engestrom <e...@igalia.com> Reviewed-by: Marek Olšák <marek.ol...@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26272> --- 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 */