From 8bf13d8d201c9b605d22e28cc870aba3b278574d Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Fri, 6 Mar 2020 14:06:21 -0500 Subject: [PATCH] Add missing coversion cases. Handle converting signed int cases of hipResourceViewFormat to number of channels. Change-Id: Ica8ae6f644edfaa0d4803d0b8e90e320479118e2 [ROCm/hip commit: 90feaf046f740d84d64387f50e3d6813c9382cf5] --- projects/hip/vdi/hip_conversions.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/hip/vdi/hip_conversions.hpp b/projects/hip/vdi/hip_conversions.hpp index abaa4d1949..6809765eb0 100644 --- a/projects/hip/vdi/hip_conversions.hpp +++ b/projects/hip/vdi/hip_conversions.hpp @@ -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;