Mesa (master): nvc0: enable compute shaders on GK104 and GM107+
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Fri Apr 1 20:27:43 UTC 2016
Module: Mesa
Branch: master
Commit: 60e1c6a7fce82e48a36e3a5605222009c47f59bb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=60e1c6a7fce82e48a36e3a5605222009c47f59bb
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Mon Feb 8 18:19:47 2016 +0100
nvc0: enable compute shaders on GK104 and GM107+
Compute support on GK110 is still unstable for weird reasons, but
this can be fixed later as the NVF0_COMPUTE envvar prevent using
compute.
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_screen.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index ac7f57b..590dac9 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -291,7 +291,8 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
case PIPE_SHADER_CAP_PREFERRED_IR:
return PIPE_SHADER_IR_TGSI;
case PIPE_SHADER_CAP_SUPPORTED_IRS:
- if (class_3d >= NVE4_3D_CLASS)
+ if (class_3d == NVF0_3D_CLASS &&
+ !debug_get_bool_option("NVF0_COMPUTE", false))
return 0;
return 1 << PIPE_SHADER_IR_TGSI;
case PIPE_SHADER_CAP_MAX_INSTRUCTIONS:
More information about the mesa-commit
mailing list