summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_screen.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2013-07-25 10:35:35 +0200
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2013-08-06 22:22:49 +0200
commit9dcd7888e6338f08a6999abfbc2ca1008f741bf8 (patch)
treec441cee524f6784fb2d2b7467cd5131f008a604d /src/gallium/drivers/nvc0/nvc0_screen.c
parent981b5891016580a72c2d6a457c6e8ef2dd5a9c95 (diff)
downloadexternal_mesa3d-9dcd7888e6338f08a6999abfbc2ca1008f741bf8.zip
external_mesa3d-9dcd7888e6338f08a6999abfbc2ca1008f741bf8.tar.gz
external_mesa3d-9dcd7888e6338f08a6999abfbc2ca1008f741bf8.tar.bz2
nvc0: implement compute support for nvc0
Tested on nvc0, nvc1, nvcf and nvd9.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_screen.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c
index 171a302..bc5580b 100644
--- a/src/gallium/drivers/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nvc0/nvc0_screen.c
@@ -489,6 +489,11 @@ nvc0_screen_init_compute(struct nvc0_screen *screen)
switch (screen->base.device->chipset & 0xf0) {
case 0xc0:
case 0xd0:
+ /* Using COMPUTE has weird effects on 3D state, we need to
+ * investigate this further before enabling it by default.
+ */
+ if (debug_get_bool_option("NVC0_COMPUTE", FALSE))
+ return nvc0_screen_compute_setup(screen, screen->base.pushbuf);
return 0;
case 0xe0:
case 0xf0: