diff options
author | Samuel Pitoiset <[email protected]> | 2013-07-25 10:35:35 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-08-06 22:22:49 +0200 |
commit | 9dcd7888e6338f08a6999abfbc2ca1008f741bf8 (patch) | |
tree | c441cee524f6784fb2d2b7467cd5131f008a604d /src/gallium/drivers/nvc0/nvc0_screen.c | |
parent | 981b5891016580a72c2d6a457c6e8ef2dd5a9c95 (diff) |
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.c | 5 |
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 171a30256a4..bc5580bdadc 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: |