From: David Neto Date: Mon, 19 Sep 2016 14:13:04 +0000 (-0400) Subject: Provide friendly names for shader ballot BuiltIns X-Git-Tag: upstream/2018.6~1043 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12b57779127a84ec0c9e55dcde0ff732d6fe0c30;p=platform%2Fupstream%2FSPIRV-Tools.git Provide friendly names for shader ballot BuiltIns --- diff --git a/source/name_mapper.cpp b/source/name_mapper.cpp index 666b9ac..df632e1 100644 --- a/source/name_mapper.cpp +++ b/source/name_mapper.cpp @@ -152,6 +152,11 @@ void FriendlyNameMapper::SaveBuiltInName(uint32_t target_id, CASE(SubgroupLocalInvocationId) GLCASE(VertexIndex) GLCASE(InstanceIndex) + CASE(SubgroupEqMaskKHR) + CASE(SubgroupGeMaskKHR) + CASE(SubgroupGtMaskKHR) + CASE(SubgroupLeMaskKHR) + CASE(SubgroupLtMaskKHR) default: break; } diff --git a/test/NameMapper.cpp b/test/NameMapper.cpp index bd6ab2a..7a470f3 100644 --- a/test/NameMapper.cpp +++ b/test/NameMapper.cpp @@ -269,6 +269,11 @@ INSTANTIATE_TEST_CASE_P( BuiltInCase("SubgroupLocalInvocationId"), BuiltInGLCase("VertexIndex"), BuiltInGLCase("InstanceIndex"), + BuiltInCase("SubgroupEqMaskKHR"), + BuiltInCase("SubgroupGeMaskKHR"), + BuiltInCase("SubgroupGtMaskKHR"), + BuiltInCase("SubgroupLeMaskKHR"), + BuiltInCase("SubgroupLtMaskKHR"), }), ); INSTANTIATE_TEST_CASE_P(DebugNameOverridesBuiltin, FriendlyNameTest,