diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-10 09:55:36 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-12 10:46:04 +0200 |
commit | 7091fe887b3b676fe70c44ff10e5027f4b44513d (patch) | |
tree | d5c03044fa766cdadfae168e0660605b8d797207 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | 4aa4e17f4e8ee0ed3bef7f1bea253781a2e5eb90 (diff) |
radeonsi: use SI_MAX_IO_GENERIC instead of magic values
Tested-by: Dieter Nützel <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index b969376e9d2..bdc9cc10fab 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -142,7 +142,7 @@ unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index) assert(index <= 1); return 2 + index; case TGSI_SEMANTIC_GENERIC: - if (index <= 63-4) + if (index < SI_MAX_IO_GENERIC) return 4 + index; assert(!"invalid generic index"); |