r600/cs: add compute support to caps
authorDave Airlie <airlied@redhat.com>
Fri, 3 Nov 2017 01:30:12 +0000 (11:30 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Dec 2017 04:30:05 +0000 (04:30 +0000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_pipe.c

index 01f9bf620f60fcf985d4dadd9ca82b249915d453..b013d6949cb43cdecd2bab55de66887abfa87758 100644 (file)
@@ -602,7 +602,7 @@ static int r600_get_shader_param(struct pipe_screen* pscreen,
                        return PIPE_SHADER_IR_TGSI;
                }
        case PIPE_SHADER_CAP_SUPPORTED_IRS:
-               return 0;
+               return (1 << PIPE_SHADER_IR_TGSI);
        case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED:
                if (rscreen->b.family == CHIP_ARUBA ||
                    rscreen->b.family == CHIP_CAYMAN ||
@@ -619,7 +619,7 @@ static int r600_get_shader_param(struct pipe_screen* pscreen,
        case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
        case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
                if (rscreen->b.family >= CHIP_CEDAR &&
-                   (shader == PIPE_SHADER_FRAGMENT))
+                   (shader == PIPE_SHADER_FRAGMENT || shader == PIPE_SHADER_COMPUTE))
                    return 8;
                return 0;
        case PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS: