Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97513
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
break;
case CL_DEVICE_ADDRESS_BITS:
- buf.as_scalar<cl_uint>() = 32;
+ buf.as_scalar<cl_uint>() = dev.address_bits();
break;
case CL_DEVICE_MAX_READ_IMAGE_ARGS:
PIPE_COMPUTE_CAP_SUBGROUP_SIZE)[0];
}
+cl_uint
+device::address_bits() const {
+ return get_compute_param<uint32_t>(pipe, ir_format(),
+ PIPE_COMPUTE_CAP_ADDRESS_BITS)[0];
+}
+
std::string
device::device_name() const {
return pipe->get_name(pipe);
std::vector<size_t> max_block_size() const;
cl_uint subgroup_size() const;
+ cl_uint address_bits() const;
std::string device_name() const;
std::string vendor_name() const;
enum pipe_shader_ir ir_format() const;