diff options
author | Bruno Jiménez <[email protected]> | 2014-06-13 11:23:14 +0200 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-06-13 10:59:30 -0400 |
commit | 03aab2af16778f3ab8130ec664fd6a6066ca869a (patch) | |
tree | bef90cf2c1e3a872dbacd895c06a2f09e6d4eac5 /src/gallium/drivers/radeon | |
parent | b8d15ca5e8e189921e1290ed9d56484006652a75 (diff) |
radeon/compute: Implement PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS
v2:
Add RADEON_INFO_ACTIVE_CU_COUNT as a define, as suggested by
Tom Stellard
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 4c6cf0e60c1..4b9d31c4da3 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -520,6 +520,13 @@ static int r600_get_compute_param(struct pipe_screen *screen, } return sizeof(uint32_t); + case PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS: + if (ret) { + uint32_t *max_compute_units = ret; + *max_compute_units = rscreen->info.max_compute_units; + } + return sizeof(uint32_t); + default: fprintf(stderr, "unknown PIPE_COMPUTE_CAP %d\n", param); return 0; |