summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2006-12-17 03:38:21 +0000
committerBen Skeggs <[email protected]>2006-12-17 03:38:21 +0000
commit53d40646bdac2deb7954794e213154e0a4596278 (patch)
tree6be0ec3bc3a25d93844ee2f68f07fc52b2dcfc08
parentde947e8a5b2f10eb3fd2bdeacc54209e55447e86 (diff)
Don't build passthrough shader on <NV40
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_shader.c b/src/mesa/drivers/dri/nouveau/nouveau_shader.c
index 9a09f43d581..dc366b36c09 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_shader.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_shader.c
@@ -245,7 +245,8 @@ nouveauShaderInitFuncs(GLcontext * ctx)
/* Build a vertex program that simply passes through all attribs.
* Needed to do swtcl on nv40
*/
- nvsBuildPassthroughVP(ctx);
+ if (nmesa->screen->card->type >= NV_40)
+ nvsBuildPassthroughVP(ctx);
ctx->Const.VertexProgram.MaxNativeInstructions = nmesa->VPfunc.MaxInst;
ctx->Const.VertexProgram.MaxNativeAluInstructions = nmesa->VPfunc.MaxInst;