r600: add PIPE_SHADER_IR_NATIVE to supported shaders for cs
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 00:59:54 +0000 (11:59 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 23:59:10 +0000 (10:59 +1100)
Acked-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_pipe.c

index cc35d867092df7f849a21aa82a962efdc2b2359d..fd8edcc9fbfeeb9b34701edcb69d54649ef777fd 100644 (file)
@@ -603,10 +603,14 @@ static int r600_get_shader_param(struct pipe_screen* pscreen,
                } else {
                        return PIPE_SHADER_IR_TGSI;
                }
-       case PIPE_SHADER_CAP_SUPPORTED_IRS:
+       case PIPE_SHADER_CAP_SUPPORTED_IRS: {
+               int ir = 0;
+               if (shader == PIPE_SHADER_COMPUTE)
+                       ir = 1 << PIPE_SHADER_IR_NATIVE;
                if (rscreen->b.family >= CHIP_CEDAR)
-                       return (1 << PIPE_SHADER_IR_TGSI);
-               return 0;
+                       ir |= 1 << PIPE_SHADER_IR_TGSI;
+               return ir;
+       }
        case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED:
                if (rscreen->b.family == CHIP_ARUBA ||
                    rscreen->b.family == CHIP_CAYMAN ||