SWDEV-306642 - [ABI Break] Add texture/surface/device capabilities device struct entries
- alias hipGetDeviceProperties to hipGetDevicePropertiesR0600 - alias hipDeviceProp_t to hipDeviceProp_tR0600 - remove gcnArch from new device property struct - add new requested struct members Change-Id: If3f5dbef3d608487d9f6f419285f4bf577ea9bf0
This commit is contained in:
committed by
Rakesh Roy
parent
813907c29d
commit
2989840511
@@ -1521,6 +1521,27 @@ bool Device::populateOCLDeviceConstants() {
|
||||
|
||||
info_.imageMaxArraySize_ = max_array_size;
|
||||
|
||||
uint32_t max_image1da_width = 0;
|
||||
if (HSA_STATUS_SUCCESS !=
|
||||
hsa_agent_get_info(bkendDevice_,
|
||||
static_cast<hsa_agent_info_t>(HSA_EXT_AGENT_INFO_IMAGE_1DA_MAX_ELEMENTS),
|
||||
&max_image1da_width)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
info_.image1DAMaxWidth_ = max_image1da_width;
|
||||
|
||||
uint32_t max_image2da_width[2] = {0, 0};
|
||||
if (HSA_STATUS_SUCCESS !=
|
||||
hsa_agent_get_info(bkendDevice_,
|
||||
static_cast<hsa_agent_info_t>(HSA_EXT_AGENT_INFO_IMAGE_2DA_MAX_ELEMENTS),
|
||||
&max_image2da_width)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
info_.image2DAMaxWidth_[0] = max_image2da_width[0];
|
||||
info_.image2DAMaxWidth_[1] = max_image2da_width[1];
|
||||
|
||||
uint32_t max_image1d_width = 0;
|
||||
if (HSA_STATUS_SUCCESS !=
|
||||
hsa_agent_get_info(bkendDevice_,
|
||||
|
||||
Reference in New Issue
Block a user