From c5e8d27600edf2f729769369156f6da34e7a81a7 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/clr commit: e746584d2454d47c77351f06113f0b52715d2956] --- projects/clr/hipamd/vdi/hip_conversions.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/clr/hipamd/vdi/hip_conversions.hpp b/projects/clr/hipamd/vdi/hip_conversions.hpp index abaa4d1949..6809765eb0 100644 --- a/projects/clr/hipamd/vdi/hip_conversions.hpp +++ b/projects/clr/hipamd/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;