radv: Use 16-bits to store push constant indices.

Otherwise things horrible go wrong when we get 256 bytes of push
constants.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14485>
This commit is contained in:
Bas Nieuwenhuizen
2022-01-10 23:16:20 +01:00
committed by Marge Bot
parent 3a36d0b787
commit 43f8e07765
3 changed files with 4 additions and 4 deletions

View File

@@ -155,7 +155,7 @@ allocate_inline_push_consts(const struct radv_shader_info *info,
uint8_t remaining_sgprs = user_sgpr_info->remaining_sgprs;
/* Only supported if shaders use push constants. */
if (info->min_push_constant_used == UINT8_MAX)
if (info->min_push_constant_used == UINT16_MAX)
return;
/* Only supported if shaders don't have indirect push constants. */