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_context.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_context.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c index 8cd5fc5a646..69e1970b64e 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nvc0/nvc0_context.c @@ -258,8 +258,8 @@ nvc0_create(struct pipe_screen *pscreen, void *priv) pipe->draw_vbo = nvc0_draw_vbo; pipe->clear = nvc0_clear; - if (nvc0->screen->base.class_3d >= NVE4_3D_CLASS) - pipe->launch_grid = nve4_launch_grid; + pipe->launch_grid = (nvc0->screen->base.class_3d >= NVE4_3D_CLASS) ? + nve4_launch_grid : nvc0_launch_grid; pipe->flush = nvc0_flush; pipe->texture_barrier = nvc0_texture_barrier; |