summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-04-16 10:36:28 -0600
committerBrian <brian@yutani.localnet.net>2007-04-16 10:36:28 -0600
commit64e8088667d000a70beff93e8c300ac0bd261a60 (patch)
treee7433aabf469052dfc47d1daf2c537e4c550bd2d /src/mesa/tnl
parent3dfcd48469b63c601010ea43e0d5e9ea1dc5dfab (diff)
Use generic program limits instead of NV-specific ones to init program constants.
Previously, this limited us to 12 temp regs for vertex programs. Many vertex shaders could exceed that. This forces us to stop using t_vb_arbprogram.c for now because of its particular register indexing scheme. Need to increase bits allocated for register indexing, etc.
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vb_arbprogram.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c
index 2edb1c5ac4..58c82cf715 100644
--- a/src/mesa/tnl/t_vb_arbprogram.c
+++ b/src/mesa/tnl/t_vb_arbprogram.c
@@ -1477,8 +1477,11 @@ validate_vertex_program( GLcontext *ctx, struct tnl_pipeline_stage *stage )
struct arb_vp_machine *m = ARB_VP_MACHINE(stage);
struct gl_vertex_program *program = ctx->VertexProgram._Current;
+ /* don't use this module since it only handles 12 temp regs */
+ /* Need to allocate more bits for register indexes, etc. */
+#define FORCE_OLD 1
#if FORCE_OLD
- if (0 &&program) {
+ if (0) {
#else
if (program) {
#endif