P4 to Git Change 2005731 by vsytchen@vsytchen-hip-win10 on 2019/09/27 16:34:38
SWDEV-192384 - [HIP CQE][HIPonPAL][19.40] hipBindTexRef1DFetch, hipTextureRef2D are failed on all ASICs for both Win/Lnx
1. Correctly set the image type for textures created from arrays.
2. Allow creating any kind of image from a buffer.
ReviewBoardURL = http://ocltc.amd.com/reviews/r/18051/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#166 edit
[ROCm/clr commit: bf668d922c]
This commit is contained in:
@@ -1659,9 +1659,8 @@ pal::Memory* Device::createImage(amd::Memory& owner, bool directAccess) const {
|
||||
// Create resource
|
||||
if (nullptr != gpuImage) {
|
||||
const bool imageBuffer =
|
||||
((owner.getType() == CL_MEM_OBJECT_IMAGE1D_BUFFER) ||
|
||||
((owner.getType() == CL_MEM_OBJECT_IMAGE2D) && (owner.parent() != nullptr) &&
|
||||
(owner.parent()->asBuffer() != nullptr)));
|
||||
((owner.parent() != nullptr) &&
|
||||
(owner.parent()->asBuffer() != nullptr));
|
||||
bool result = false;
|
||||
|
||||
// Check if owner is interop memory
|
||||
|
||||
مرجع در شماره جدید
Block a user