diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-04-18 16:28:40 +0200 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-04-29 15:25:50 -0700 |
commit | 0a41054b7faa9df4e4b8802f646a7e078389eb89 (patch) | |
tree | e5a382ee779972b3a1f327f000c400b0569de400 /src/gallium/drivers/radeon | |
parent | 5fe1a0ebadea1dbcdbd1b7a92969a283dcbb3362 (diff) | |
download | external_mesa3d-0a41054b7faa9df4e4b8802f646a7e078389eb89.zip external_mesa3d-0a41054b7faa9df4e4b8802f646a7e078389eb89.tar.gz external_mesa3d-0a41054b7faa9df4e4b8802f646a7e078389eb89.tar.bz2 |
radeon/compute: Implement PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY
Igor Gnatenko:
v2: in define RADEON_INFO_MAX_SCLK use 0x1a instead of 0x19 (upstream changes)
Bruno Jiménez:
v3: Convert the frequency to MHz from kHz after getting it in
'do_winsys_init'
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
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 7508865..957186a 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -505,6 +505,13 @@ static int r600_get_compute_param(struct pipe_screen *screen, } return sizeof(uint64_t); + case PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY: + if (ret) { + uint32_t *max_clock_frequency = ret; + *max_clock_frequency = rscreen->info.max_sclk; + } + return sizeof(uint32_t); + default: fprintf(stderr, "unknown PIPE_COMPUTE_CAP %d\n", param); return 0; |