Mesa (master): nvc0: disable calling of sw methods we don't implement

Ben Skeggs darktama at kemper.freedesktop.org
Thu Jan 13 05:24:41 UTC 2011


Module: Mesa
Branch: master
Commit: bd2b72359ed504434692d7464602c780a322c61e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd2b72359ed504434692d7464602c780a322c61e

Author: Ben Skeggs <bskeggs at redhat.com>
Date:   Thu Jan 13 15:25:37 2011 +1000

nvc0: disable calling of sw methods we don't implement

Left in the code as a marker of what NVIDIA do, just in case we need
to do this some day.

Signed-off-by: Ben Skeggs <bskeggs at redhat.com>

---

 src/gallium/drivers/nvc0/nvc0_screen.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c
index 928ea7e..2300af5 100644
--- a/src/gallium/drivers/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nvc0/nvc0_screen.c
@@ -292,8 +292,10 @@ nvc0_magic_3d_init(struct nouveau_channel *chan)
    BEGIN_RING(chan, RING_3D_(0x165c), 1);
    OUT_RING  (chan, 0);
 
+#if 0 /* software method */
    BEGIN_RING(chan, RING_3D_(0x1528), 1); /* MP poke */
    OUT_RING  (chan, 0);
+#endif
 
    BEGIN_RING(chan, RING_3D_(0x12ac), 1);
    OUT_RING  (chan, 0);
@@ -323,8 +325,10 @@ nvc0_magic_3d_init(struct nouveau_channel *chan)
    OUT_RING  (chan, 0);
    BEGIN_RING(chan, RING_3D_(0x0300), 1);
    OUT_RING  (chan, 3);
+#if 0 /* software method */
    BEGIN_RING(chan, RING_3D_(0x1280), 1); /* PGRAPH poke */
    OUT_RING  (chan, 0);
+#endif
    BEGIN_RING(chan, RING_3D_(0x02d0), 1);
    OUT_RING  (chan, 0x1f40);
    BEGIN_RING(chan, RING_3D_(0x00fdc), 1);




More information about the mesa-commit mailing list