aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_shader.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-02 16:57:19 -0600
committerBrian <[email protected]>2007-10-02 16:57:19 -0600
commitca34912bf7e57a01b180a3bb3b6e36331f442558 (patch)
treed2777051ed149d325adc349b0bb9375e7770976e /src/mesa/state_tracker/st_atom_shader.c
parentae28d19bbf527e50be9ff9e52cb69f6afdf1d506 (diff)
assert that program length > 1 (some code, plus END)
Diffstat (limited to 'src/mesa/state_tracker/st_atom_shader.c')
-rw-r--r--src/mesa/state_tracker/st_atom_shader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c
index 8aa977179a2..dc6210cd6c3 100644
--- a/src/mesa/state_tracker/st_atom_shader.c
+++ b/src/mesa/state_tracker/st_atom_shader.c
@@ -172,6 +172,8 @@ find_translated_vp(struct st_context *st,
stfp->num_input_slots = numIn;
+ assert(stfp->Base.Base.NumInstructions > 1);
+
(void) st_translate_fragment_program(st, stfp,
stfp->input_to_slot,
stfp->tokens,
@@ -235,6 +237,7 @@ find_translated_vp(struct st_context *st,
}
}
+ assert(stvp->Base.Base.NumInstructions > 1);
xvp->vs = st_translate_vertex_program(st, stvp,
xvp->output_to_slot,