SWDEV-297215 - Set image descriptor as per the HSA specification for hsa_ext_image_descriptor_t
Change-Id: I0af0f09120f15a42349ec4de491df8aee7bfd46d
[ROCm/clr commit: 1884e4ca77]
Este cometimento está contido em:
cometido por
Maneesh Gupta
ascendente
09660203c3
cometimento
8af8d5bdc1
@@ -1005,28 +1005,28 @@ void Image::populateImageDescriptor() {
|
||||
switch (image->getType()) {
|
||||
case CL_MEM_OBJECT_IMAGE1D:
|
||||
imageDescriptor_.geometry = HSA_EXT_IMAGE_GEOMETRY_1D;
|
||||
imageDescriptor_.height = 1;
|
||||
imageDescriptor_.depth = 1;
|
||||
imageDescriptor_.height = 0;
|
||||
imageDescriptor_.depth = 0;
|
||||
break;
|
||||
case CL_MEM_OBJECT_IMAGE1D_BUFFER:
|
||||
imageDescriptor_.geometry = HSA_EXT_IMAGE_GEOMETRY_1DB;
|
||||
imageDescriptor_.height = 1;
|
||||
imageDescriptor_.depth = 1;
|
||||
imageDescriptor_.height = 0;
|
||||
imageDescriptor_.depth = 0;
|
||||
break;
|
||||
case CL_MEM_OBJECT_IMAGE1D_ARRAY:
|
||||
//@todo - arraySize = height ?!
|
||||
imageDescriptor_.geometry = HSA_EXT_IMAGE_GEOMETRY_1DA;
|
||||
imageDescriptor_.height = 1;
|
||||
imageDescriptor_.height = 0;
|
||||
imageDescriptor_.array_size = image->getHeight();
|
||||
break;
|
||||
case CL_MEM_OBJECT_IMAGE2D:
|
||||
imageDescriptor_.geometry = HSA_EXT_IMAGE_GEOMETRY_2D;
|
||||
imageDescriptor_.depth = 1;
|
||||
imageDescriptor_.depth = 0;
|
||||
break;
|
||||
case CL_MEM_OBJECT_IMAGE2D_ARRAY:
|
||||
//@todo - arraySize = depth ?!
|
||||
imageDescriptor_.geometry = HSA_EXT_IMAGE_GEOMETRY_2DA;
|
||||
imageDescriptor_.depth = 1;
|
||||
imageDescriptor_.depth = 0;
|
||||
imageDescriptor_.array_size = image->getDepth();
|
||||
break;
|
||||
case CL_MEM_OBJECT_IMAGE3D:
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador