From 6335cc6a5807d41cfbe543237d3c679c127d2c98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 3 Jul 2019 19:04:37 -0400 Subject: [PATCH] radeonsi: cosmetic cleanup in si_shader_io_get_unique_index Acked-by: Pierre-Eric Pelloux-Prayer Acked-by: Dave Airlie --- src/gallium/drivers/radeonsi/si_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 610edcb9a78..0b7c21325ea 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -213,10 +213,10 @@ unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index, return SI_MAX_IO_GENERIC + 10 + index; case TGSI_SEMANTIC_TEXCOORD: assert(index < 8); - STATIC_ASSERT(SI_MAX_IO_GENERIC + 12 + 8 <= 63); return SI_MAX_IO_GENERIC + 12 + index; case TGSI_SEMANTIC_CLIPVERTEX: - return 63; + STATIC_ASSERT(SI_MAX_IO_GENERIC + 12 + 8 <= 63); + return SI_MAX_IO_GENERIC + 12 + 8; default: fprintf(stderr, "invalid semantic name = %u\n", semantic_name); assert(!"invalid semantic name"); -- 2.30.2