Add missing coversion cases.
Handle converting signed int cases of hipResourceViewFormat to number of channels.
Change-Id: Ica8ae6f644edfaa0d4803d0b8e90e320479118e2
[ROCm/hip commit: 90feaf046f]
This commit is contained in:
@@ -349,6 +349,7 @@ int getNumChannels(const hipResourceViewFormat hipFormat) {
|
||||
case hipResViewFormatUnsignedShort1:
|
||||
case hipResViewFormatSignedShort1:
|
||||
case hipResViewFormatUnsignedInt1:
|
||||
case hipResViewFormatSignedInt1:
|
||||
case hipResViewFormatHalf1:
|
||||
case hipResViewFormatFloat1:
|
||||
return 1;
|
||||
@@ -357,6 +358,7 @@ int getNumChannels(const hipResourceViewFormat hipFormat) {
|
||||
case hipResViewFormatUnsignedShort2:
|
||||
case hipResViewFormatSignedShort2:
|
||||
case hipResViewFormatUnsignedInt2:
|
||||
case hipResViewFormatSignedInt2:
|
||||
case hipResViewFormatHalf2:
|
||||
case hipResViewFormatFloat2:
|
||||
return 2;
|
||||
@@ -365,6 +367,7 @@ int getNumChannels(const hipResourceViewFormat hipFormat) {
|
||||
case hipResViewFormatUnsignedShort4:
|
||||
case hipResViewFormatSignedShort4:
|
||||
case hipResViewFormatUnsignedInt4:
|
||||
case hipResViewFormatSignedInt4:
|
||||
case hipResViewFormatHalf4:
|
||||
case hipResViewFormatFloat4:
|
||||
return 4;
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user