st/mesa: move assert on nr vs insns until after pos_invarient expansion
It is possible to have a 1-instruction vertex shader before expanding pos_invarient. Not sure what this assert achieved, but at least move it where it is correct.
This commit is contained in:
@@ -287,8 +287,6 @@ find_translated_vp(struct st_context *st,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(stvp->Base.Base.NumInstructions > 1);
|
|
||||||
|
|
||||||
st_translate_vertex_program(st, stvp, xvp->output_to_slot,
|
st_translate_vertex_program(st, stvp, xvp->output_to_slot,
|
||||||
xvp->output_to_semantic_name,
|
xvp->output_to_semantic_name,
|
||||||
xvp->output_to_semantic_index);
|
xvp->output_to_semantic_index);
|
||||||
|
@@ -87,6 +87,8 @@ st_translate_vertex_program(struct st_context *st,
|
|||||||
if (stvp->Base.IsPositionInvariant)
|
if (stvp->Base.IsPositionInvariant)
|
||||||
_mesa_insert_mvp_code(st->ctx, &stvp->Base);
|
_mesa_insert_mvp_code(st->ctx, &stvp->Base);
|
||||||
|
|
||||||
|
assert(stvp->Base.Base.NumInstructions > 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Determine number of inputs, the mappings between VERT_ATTRIB_x
|
* Determine number of inputs, the mappings between VERT_ATTRIB_x
|
||||||
* and TGSI generic input indexes, plus input attrib semantic info.
|
* and TGSI generic input indexes, plus input attrib semantic info.
|
||||||
|
Reference in New Issue
Block a user