diff options
author | Tom Stellard <[email protected]> | 2014-04-18 16:28:41 +0200 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-04-29 15:28:17 -0700 |
commit | ca848e8bee7683e296e40a7870750d8a156850ca (patch) | |
tree | 47a0e4aef9c6899630b8bf7a72e09ed77b179047 /src/gallium/state_trackers/clover/api | |
parent | 0a41054b7faa9df4e4b8802f646a7e078389eb89 (diff) |
clover: Query drivers for max clock frequency
Igor Gnatenko:
v2: PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY instead of
PIPE_COMPUTE_MAX_CLOCK_FREQUENCY
Bruno Jiménez:
v3: Drivers report clock in Mhz
Signed-off-by: Igor Gnatenko <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r-- | src/gallium/state_trackers/clover/api/device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp index b77a50dafea..1bc2692fa31 100644 --- a/src/gallium/state_trackers/clover/api/device.cpp +++ b/src/gallium/state_trackers/clover/api/device.cpp @@ -153,7 +153,7 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param, break; case CL_DEVICE_MAX_CLOCK_FREQUENCY: - buf.as_scalar<cl_uint>() = 0; + buf.as_scalar<cl_uint>() = dev.max_clock_frequency(); break; case CL_DEVICE_ADDRESS_BITS: |