mesa: use check_resources() to check program against limits
authorBrian Paul <brianp@vmware.com>
Fri, 11 Mar 2011 16:25:22 +0000 (09:25 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 11 Mar 2011 16:25:22 +0000 (09:25 -0700)
commit8cc84b3e454cf03c71282322e988f03bc4a1baa3
tree24776b266f98b8ef7aa8fb3c3fcd8153ed170a69
parentdecc6e2a32ef49e673c081f30e19b8970155d887
mesa: use check_resources() to check program against limits

Without these checks we could create shaders with more samplers,
constants than the driver could handle.  Fail linking rather than
dying later.
src/mesa/program/ir_to_mesa.cpp