SWDEV-478206 - Fix hipTexRefSetArray
Change-Id: I6bd6ce60163d4f79001fce75e40ef46f1fcb7c3f
[ROCm/clr commit: 224334e1d2]
Ta zmiana jest zawarta w:
%! (template.HTML=
Marko Arandjelovic)złożyło 2024-09-04 03:41:25 -04:00
1 rodzic
2036d66b95
złożenie
9fab61ebe3
Plik 1 zmieniony
+5
@@ -1004,6 +1004,11 @@ hipError_t hipTexRefSetArray(textureReference* texRef,
|
||||
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 = {};
|
||||
resDesc.resType = hipResourceTypeArray;
|
||||
resDesc.res.array.array = const_cast<hipArray_t>(array);
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika