diff options
author | Brian Paul <[email protected]> | 2010-01-18 11:26:55 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-18 11:26:57 -0700 |
commit | 28576c9ac5a3b6459d94822f333d2e3fbefe5003 (patch) | |
tree | c841c502f8e4ca65b3d1579471e73137e9b34b96 /src | |
parent | e978b24c87be6d7572ed3272e6b186d5c54fb414 (diff) |
st/mesa: change instruction count assertion to > 0
Shaders should at least have an END instruction.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_atom_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |