mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
71f327aa21
commit
60e1c6a7fc
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue