diff options
author | Dave Airlie <[email protected]> | 2017-11-03 11:30:12 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-12-18 04:30:05 +0000 |
commit | 91dd4e44c244d1abd18314995e129a47790d5604 (patch) | |
tree | 7360f2fb5a748007f2452810b285195689433f0c /src/gallium/drivers/r600/r600_pipe.c | |
parent | 4388bbbf2990df86a447a55de450d262c777be45 (diff) |
r600/cs: add compute support to caps
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 01f9bf620f6..b013d6949cb 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -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: |