Commit 44b7e149 authored by Marek Olšák's avatar Marek Olšák Committed by Marge Bot

st/mesa: don't generate TGSI for the draw VS because it now supports NIR too

Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Part-of: <!7826>
parent df11ceaa
......@@ -531,13 +531,8 @@ st_translate_vertex_program(struct st_context *st,
MESA_SHADER_VERTEX);
stp->Base.info = stp->Base.nir->info;
/* For st_draw_feedback, we need to generate TGSI too if draw doesn't
* use LLVM.
*/
if (draw_has_llvm()) {
st_prepare_vertex_program(stp);
return true;
}
st_prepare_vertex_program(stp);
return true;
}
}
......@@ -713,8 +708,7 @@ st_create_vp_variant(struct st_context *st,
state.stream_output = stvp->state.stream_output;
if (stvp->state.type == PIPE_SHADER_IR_NIR &&
(!key->is_draw_shader || draw_has_llvm())) {
if (stvp->state.type == PIPE_SHADER_IR_NIR) {
bool finalize = false;
state.type = PIPE_SHADER_IR_NIR;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment