summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/r200_vertprog.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2006-06-10 00:51:54 +0000
committerRoland Scheidegger <[email protected]>2006-06-10 00:51:54 +0000
commit5b90cf2f2f3dcda0d674c01859847149b4054608 (patch)
tree5918bb84fd2704a24f8b1122646e5e8a6c297e93 /src/mesa/drivers/dri/r200/r200_vertprog.c
parentda4b01211bb47648f47e04c9600c4bff0783c2ab (diff)
enable arb_vertex_program by default if drm is new enough. Do a fallback when it's a nv_vp as there could be issues.
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_vertprog.c')
-rw-r--r--src/mesa/drivers/dri/r200/r200_vertprog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_vertprog.c b/src/mesa/drivers/dri/r200/r200_vertprog.c
index dfacdc88cc4..615953b6100 100644
--- a/src/mesa/drivers/dri/r200/r200_vertprog.c
+++ b/src/mesa/drivers/dri/r200/r200_vertprog.c
@@ -414,6 +414,11 @@ static GLboolean r200_translate_vertex_program(struct r200_vertex_program *vp)
return GL_FALSE;
}
+ if (mesa_vp->IsNVProgram) {
+ /* subtle differences in spec like guaranteed initialized regs could cause
+ headaches. Might want to remove the driconf option to enable it completely */
+ return GL_FALSE;
+ }
/* Initial value should be last tmp reg that hw supports.
Strangely enough r300 doesnt mind even though these would be out of range.
Smart enough to realize that it doesnt need it? */