From: Brian Paul Date: Mon, 18 Jan 2010 18:26:55 +0000 (-0700) Subject: st/mesa: change instruction count assertion to > 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28576c9ac5a3b6459d94822f333d2e3fbefe5003;p=mesa.git st/mesa: change instruction count assertion to > 0 Shaders should at least have an END instruction. --- diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c index 9fad58a489c..4c106eb89b0 100644 --- a/src/mesa/state_tracker/st_atom_shader.c +++ b/src/mesa/state_tracker/st_atom_shader.c @@ -146,7 +146,7 @@ find_translated_vp(struct st_context *st, stfp->num_input_slots = numIn; - assert(stfp->Base.Base.NumInstructions > 1); + assert(stfp->Base.Base.NumInstructions > 0); st_translate_fragment_program(st, stfp, stfp->input_to_slot); }