clover: Fix build on i386.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 12 May 2012 17:33:33 +0000 (19:33 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 12 May 2012 17:43:06 +0000 (19:43 +0200)
src/gallium/state_trackers/clover/core/device.cpp

index 59e43af075dab529e02b94eab8576041ca422257..1f40010b019a4ace383b89c32ee1e242137e1bbd 100644 (file)
@@ -146,7 +146,8 @@ _cl_device_id::max_threads_per_block() const {
 
 std::vector<size_t>
 _cl_device_id::max_block_size() const {
-   return get_compute_param<uint64_t>(pipe, PIPE_COMPUTE_CAP_MAX_BLOCK_SIZE);
+   auto v = get_compute_param<uint64_t>(pipe, PIPE_COMPUTE_CAP_MAX_BLOCK_SIZE);
+   return { v.begin(), v.end() };
 }
 
 std::string