Mesa (gallium-0.2): nv50: change some magic reg, makes more things work

Ben Skeggs darktama at kemper.freedesktop.org
Tue Jan 13 03:57:18 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 8337c78d91612d615a1368ee8ee188d80574fad4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8337c78d91612d615a1368ee8ee188d80574fad4

Author: Ben Skeggs <skeggsb at gmail.com>
Date:   Tue Jan 13 12:49:53 2009 +1000

nv50: change some magic reg, makes more things work

No real idea what this does.. but a lot of things that misrendered and
made the GPU throw a DATA_ERROR now work..  I'm wondering what side-effects
we'll see from this :)

---

 src/gallium/drivers/nv50/nv50_program.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 5537a47..7686f74 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -1739,7 +1739,7 @@ nv50_fragprog_validate(struct nv50_context *nv50)
 	so_reloc (so, p->buffer, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_RD |
 		  NOUVEAU_BO_LOW, 0, 0);
 	so_method(so, tesla, 0x1904, 4);
-	so_data  (so, 0x01040404); /* p: 0x01000404 */
+	so_data  (so, 0x00040404); /* p: 0x01000404 */
 	so_data  (so, 0x00000004);
 	so_data  (so, 0x00000000);
 	so_data  (so, 0x00000000);




More information about the mesa-commit mailing list