[Mesa-dev] [PATCH 2/3] clover: Use correct query for CL_MAX_CONSTANT_BUFFER_SIZE

Tom Stellard thomas.stellard at amd.com
Wed Jul 23 18:05:40 PDT 2014


---
 src/gallium/state_trackers/clover/core/device.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/clover/core/device.cpp b/src/gallium/state_trackers/clover/core/device.cpp
index 63aa193..ada5267 100644
--- a/src/gallium/state_trackers/clover/core/device.cpp
+++ b/src/gallium/state_trackers/clover/core/device.cpp
@@ -135,8 +135,8 @@ device::max_mem_input() const {
 
 cl_ulong
 device::max_const_buffer_size() const {
-   return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE,
-                                 PIPE_SHADER_CAP_MAX_CONSTS) * 16;
+   return get_compute_param<uint64_t>(pipe,
+                                  PIPE_COMPUTE_CAP_MAX_CONSTANT_BUFFER_SIZE)[0];
 }
 
 cl_uint
-- 
1.8.1.5



More information about the mesa-dev mailing list