Skip to content

Commit 4f3f8ed

Browse files
authored
Arm backend: Support SNORM RGBA runtime format (#20964)
Arm backend: Support SNORM RGBA runtime format This format was missing from runtime tables for some sampler support paths. Signed-off-by: Rob Elliott <Robert.Elliott@arm.com> Change-Id: Iefb9a232aa432a143fb695b5b5cf4efafe508061 cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @rascani Signed-off-by: Rob Elliott <Robert.Elliott@arm.com>
1 parent 266e0dc commit 4f3f8ed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backends/arm/runtime/VGFSetup.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ static uint32_t get_format_component_count(VkFormat format) {
174174
case VK_FORMAT_R32G32_SFLOAT:
175175
return 2;
176176
case VK_FORMAT_R8G8B8A8_UINT:
177+
case VK_FORMAT_R8G8B8A8_SNORM:
177178
case VK_FORMAT_R8G8B8A8_SINT:
178179
case VK_FORMAT_R16G16B16A16_UINT:
179180
case VK_FORMAT_R16G16B16A16_SINT:
@@ -253,6 +254,7 @@ static bool get_format_info(VkFormat format, FormatInfo* info) {
253254
case VK_FORMAT_R8G8B8A8_UINT:
254255
*info = FormatInfo{4, 1, FormatScalarKind::Uint};
255256
return true;
257+
case VK_FORMAT_R8G8B8A8_SNORM:
256258
case VK_FORMAT_R8G8B8A8_SINT:
257259
*info = FormatInfo{4, 1, FormatScalarKind::Sint};
258260
return true;
@@ -3823,6 +3825,7 @@ static uint32_t get_format_size(VkFormat format) {
38233825
case VK_FORMAT_R32_SINT:
38243826
case VK_FORMAT_R32_SFLOAT:
38253827
case VK_FORMAT_R8G8B8A8_UINT:
3828+
case VK_FORMAT_R8G8B8A8_SNORM:
38263829
case VK_FORMAT_R8G8B8A8_SINT:
38273830
return 4;
38283831
case VK_FORMAT_R32G32_UINT:

0 commit comments

Comments
 (0)