aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/api
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-05-12 19:32:46 +0200
committerFrancisco Jerez <[email protected]>2012-05-12 19:33:48 +0200
commit5c9bccc97e9fb0776f2ca5bb57e55116a7efb43b (patch)
treebeebec9babc18885745c14aa8886e48f2c0a0a04 /src/gallium/state_trackers/clover/api
parentec848d2730afcc8a0c81bf74b7bb27936407c305 (diff)
clover, gallium: add PIPE_COMPUTE_CAP_MAX_THREADS_PER_BLOCK
This is not necessarily the product of MAX_BLOCK_SIZE[i]. Reviewed-by: Tom Stellard <[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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp
index 03767519aaf..1a9127bb3d5 100644
--- a/src/gallium/state_trackers/clover/api/device.cpp
+++ b/src/gallium/state_trackers/clover/api/device.cpp
@@ -87,7 +87,8 @@ clGetDeviceInfo(cl_device_id dev, cl_device_info param,
dev->max_block_size());
case CL_DEVICE_MAX_WORK_GROUP_SIZE:
- return scalar_property<size_t>(buf, size, size_ret, SIZE_MAX);
+ return scalar_property<size_t>(buf, size, size_ret,
+ dev->max_threads_per_block());
case CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR:
return scalar_property<cl_uint>(buf, size, size_ret, 16);