Mesa (master): nvc0: make use of NVC0_COMPUTE_CLASS for GF110

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Sat Oct 10 20:33:39 UTC 2015


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Sat Oct 10 21:59:27 2015 +0200

nvc0: make use of NVC0_COMPUTE_CLASS for GF110

In theory, GF110+ should also support NVC8_COMPUTE_CLASS but, in practice,
a ILLEGAL_CLASS dmesg fail appears when using it.

This fixes compute support and MP performance counters on GF110.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nvc0/nvc0_compute.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c b/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
index 47bd123..96d753c 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
@@ -37,12 +37,9 @@ nvc0_screen_compute_setup(struct nvc0_screen *screen,
 
    switch (dev->chipset & ~0xf) {
    case 0xc0:
-      if (dev->chipset == 0xc8)
-         obj_class = NVC8_COMPUTE_CLASS;
-      else
-         obj_class = NVC0_COMPUTE_CLASS;
-      break;
    case 0xd0:
+      /* In theory, GF110+ should also support NVC8_COMPUTE_CLASS but,
+       * in practice, a ILLEGAL_CLASS dmesg fail appears when using it. */
       obj_class = NVC0_COMPUTE_CLASS;
       break;
    default:




More information about the mesa-commit mailing list