r300: source register index is always unsigned

This was forgotten when we converted to the NIR lowering of negative
indirect adressing.

Reviewed-by: Filip Gawin <filip.gawin@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24154>
This commit is contained in:
Pavel Ondračka 2023-07-14 12:21:06 +02:00 committed by Marge Bot
parent 953dd9605f
commit beee5c3658

View file

@ -42,7 +42,7 @@ struct rc_src_register {
unsigned int File:4;
/** Negative values may be used for relative addressing. */
signed int Index:(RC_REGISTER_INDEX_BITS+1);
unsigned int Index:RC_REGISTER_INDEX_BITS;
unsigned int RelAddr:1;
unsigned int Swizzle:12;