aco: fix signedness of DS_instruction::offset0/1

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13778>
This commit is contained in:
Rhys Perry 2021-11-10 15:02:24 +00:00 committed by Marge Bot
parent 778fc176b1
commit 2135c88d9c
2 changed files with 4 additions and 4 deletions

View File

@ -1515,8 +1515,8 @@ static_assert(sizeof(Interp_instruction) == sizeof(Instruction) + 4, "Unexpected
struct DS_instruction : public Instruction {
memory_sync_info sync;
bool gds;
int16_t offset0;
int8_t offset1;
uint16_t offset0;
uint8_t offset1;
uint8_t padding;
};
static_assert(sizeof(DS_instruction) == sizeof(Instruction) + 8, "Unexpected padding");

View File

@ -90,8 +90,8 @@ class Format(Enum):
('bool', 'dlc', 'false'),
('bool', 'nv', 'false')]
elif self == Format.DS:
return [('int16_t', 'offset0', '0'),
('int8_t', 'offset1', '0'),
return [('uint16_t', 'offset0', '0'),
('uint8_t', 'offset1', '0'),
('bool', 'gds', 'false')]
elif self == Format.MTBUF:
return [('unsigned', 'dfmt', None),