SWDEV-478206 - Fix hipTexRefSetArray
Change-Id: I6bd6ce60163d4f79001fce75e40ef46f1fcb7c3f
This commit is contained in:
@@ -1004,6 +1004,11 @@ hipError_t hipTexRefSetArray(textureReference* texRef,
|
|||||||
HIP_RETURN(err);
|
HIP_RETURN(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If flag = HIP_TRSA_OVERRIDE_FORMAT,
|
||||||
|
// Override the texref format with a format inferred from the array
|
||||||
|
texRef->format = array->Format;
|
||||||
|
texRef->numChannels = array->NumChannels;
|
||||||
|
|
||||||
hipResourceDesc resDesc = {};
|
hipResourceDesc resDesc = {};
|
||||||
resDesc.resType = hipResourceTypeArray;
|
resDesc.resType = hipResourceTypeArray;
|
||||||
resDesc.res.array.array = const_cast<hipArray_t>(array);
|
resDesc.res.array.array = const_cast<hipArray_t>(array);
|
||||||
|
|||||||
Reference in New Issue
Block a user