summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2007-02-04 13:10:23 +0100
committerPatrice Mandin <pmandin@caramail.com>2007-02-04 13:10:23 +0100
commit296eeb882fa9fd7528f33ed307f87171dff7ee1c (patch)
treeeca1db8f0e910ef9439822c8ff06eee68981f004 /src
parent63568745863a54308fecc32dbb96397c35b22496 (diff)
nouveau: nv10: add init for unknown 0x120
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv10_state.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state.c b/src/mesa/drivers/dri/nouveau/nv10_state.c
index 88c1d7d9e1..8fbc76c308 100644
--- a/src/mesa/drivers/dri/nouveau/nv10_state.c
+++ b/src/mesa/drivers/dri/nouveau/nv10_state.c
@@ -659,6 +659,14 @@ static GLboolean nv10InitCard(nouveauContextPtr nmesa)
BEGIN_RING_SIZE(NvSub3D, 0x03f4, 1);
OUT_RING(0);
+ /* not for nv10, only for >= nv11 */
+ if ((nmesa->screen->card->id>>4) >= 0x11) {
+ BEGIN_RING_SIZE(NvSub3D, 0x120, 3);
+ OUT_RING(0);
+ OUT_RING(1);
+ OUT_RING(2);
+ }
+
return GL_TRUE;
}