Hey, I have this vertex shader on a Quadro 5600 (Max uniforms 4096).

```
#version 120
uniform float uInstanceTx[1200];
uniform float uInstanceTy[1200];
#extension GL_EXT_gpu_shader4 : enable
vec4 instanceXForm(vec4 pos) {
pos.x += uInstanceTx[gl_InstanceID];
pos.y += uInstanceTy[gl_InstanceID];
return pos;
}
vec3 instanceXForm(vec3 vec) { return vec; }
vec4 deform(vec4 pos) {
pos = instanceXForm(pos);
return pos;
}
vec3 deform(vec3 vec) {
vec = instanceXForm(vec);
return vec;
}
/*********TOUCHDEFORMPOSTFIX*********/
uniform vec4 uAmbientColor;
uniform vec4 uDiffuseColor;
uniform vec3 uSpecularColor;
uniform float uShininess;
varying vec4 vLightVec[1];
varying vec4 vCameraVector;
varying vec4 vNorm;
void main()
{
// First deform the vertex and normal
// if we arn't using deforms the deform() function won't do anything.
vec4 objSpaceVert = deform(gl_Vertex);
vec3 objSpaceNorm = deform(gl_Normal);
vec4 camSpaceVert = gl_ModelViewMatrix * objSpaceVert;
gl_FrontColor = gl_Color;
gl_BackColor = gl_Color;
gl_FrontSecondaryColor.rgb = gl_SecondaryColor.rgb;
gl_BackSecondaryColor.rgb = gl_SecondaryColor.rgb;
// This is trick to avoid using gl_FrontFacing, which isn't supported on some
cards
// In the pixel shader, gl_SecondaryColor.a will be 1.0 if we are on a front
face
// and 0.0 if we are on a backface
gl_FrontSecondaryColor.a = 1.0;
gl_BackSecondaryColor.a = 0.0;
vec3 camSpaceNorm = normalize(gl_NormalMatrix * objSpaceNorm);
vNorm.stp = camSpaceNorm.stp;
vec3 cameraVec = -camSpaceVert.xyz;
vCameraVector.stp = cameraVec.stp;
vec3 lightVec;
lightVec = vec3(gl_LightSource[0].position - camSpaceVert);
vLightVec[0].xyz = lightVec;
gl_Position = gl_ModelViewProjectionMatrix * objSpaceVert;
}
```

I get the compile error:

(0) : error C6007: Constant register limit exceeded; more than 1024 constant registers needed to compiled program

It seems like 507 is the longest array length I can use for my 2 uniform float arrays for it to compile correctly.

Am I running into a uniform limit, or some other hardware limit here? It seems like I should have enough uniforms, no?

Thanks for any insight