[Mesa-dev] [PATCH] r300g: add pipe number overrides

Tormod Volden lists.tormod at gmail.com
Thu Apr 22 13:40:56 PDT 2010


From: Tormod Volden <debian.tormod at gmail.com>

These should also be in the newest linux kernels.

Signed-off-by: Tormod Volden <debian.tormod at gmail.com>
---
 src/gallium/drivers/r300/r300_chipset.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_chipset.c b/src/gallium/drivers/r300/r300_chipset.c
index 9b2163e..56b8a9d 100644
--- a/src/gallium/drivers/r300/r300_chipset.c
+++ b/src/gallium/drivers/r300/r300_chipset.c
@@ -370,4 +370,13 @@ void r300_parse_chipset(struct r300_capabilities* caps)
             fprintf(stderr, "r300: Warning: Unknown chipset 0x%x\n",
                     caps->pci_id);
     }
+
+    /* pipe overrides */
+    switch (caps->pci_id) {
+       case 0x4144: /* R300 AD */
+       case 0x4148: /* R350 AH */
+       case 0x5e4c: /* RV410 SE */
+       case 0x5e4f: /* RV410 SE */
+           caps->num_frag_pipes = 1; /* only have 1 quadpipe */
+    }
 }
-- 
1.7.0.4



More information about the mesa-dev mailing list