summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-01-18 11:26:55 -0700
committerBrian Paul <brianp@vmware.com>2010-01-18 11:26:57 -0700
commit28576c9ac5a3b6459d94822f333d2e3fbefe5003 (patch)
treec841c502f8e4ca65b3d1579471e73137e9b34b96 /src/mesa/state_tracker
parente978b24c87be6d7572ed3272e6b186d5c54fb414 (diff)
st/mesa: change instruction count assertion to > 0
Shaders should at least have an END instruction.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_atom_shader.c2
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 9fad58a489..4c106eb89b 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);
}