Skip to content

svga: fix shader IR type passed to draw create shader function

Charmaine Lee requested to merge charmainel/mesa:fix-svga-draw into main

In the SVGA create shader functions, the original shader IR could have been deleted after pipe_shader_state_to_tgsi_tokens() if it is to be converted from NIR to TGSI. So to avoid accessing the deleted NIR IR, set the shader state type to TGSI before passing the shader state to the draw function.

/cc @bhenden

Merge request reports