summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/api
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-09-17 14:29:49 +0000
committerTom Stellard <[email protected]>2012-09-25 14:36:50 +0000
commit71682cf65bd31aca96f0c84434fc57bcfdec89fc (patch)
tree7e31a7c6a02d52a7cd47202da1e79df17334ed7e /src/gallium/state_trackers/clover/api
parent0e3c30cd6f90db72044bb2d3311aa13a245cbcaf (diff)
clover: Query device for CL_DEVICE_MAX_MEM_ALLOC_SIZE v2
v2: - Use driver reported values and don't correct them to the OpenCL required minimum. 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 1a9127bb3d5..d99aed8f564 100644
--- a/src/gallium/state_trackers/clover/api/device.cpp
+++ b/src/gallium/state_trackers/clover/api/device.cpp
@@ -126,7 +126,8 @@ clGetDeviceInfo(cl_device_id dev, cl_device_info param,
dev->max_images_write());
case CL_DEVICE_MAX_MEM_ALLOC_SIZE:
- return scalar_property<cl_ulong>(buf, size, size_ret, 0);
+ return scalar_property<cl_ulong>(buf, size, size_ret,
+ dev->max_mem_alloc_size());
case CL_DEVICE_IMAGE2D_MAX_WIDTH:
case CL_DEVICE_IMAGE2D_MAX_HEIGHT: