projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e978b24
)
st/mesa: change instruction count assertion to > 0
author
Brian Paul
<brianp@vmware.com>
Mon, 18 Jan 2010 18:26:55 +0000
(11:26 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 18 Jan 2010 18:26:57 +0000
(11:26 -0700)
Shaders should at least have an END instruction.
src/mesa/state_tracker/st_atom_shader.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_atom_shader.c
b/src/mesa/state_tracker/st_atom_shader.c
index 9fad58a489c9e5ac38c822b649a13a9e268f79fe..4c106eb89b0bff180014946737c36bc34559ed82 100644
(file)
--- 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);
}