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 */