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:
parent
778fc176b1
commit
2135c88d9c
|
@ -1515,8 +1515,8 @@ static_assert(sizeof(Interp_instruction) == sizeof(Instruction) + 4, "Unexpected
|
||||||
struct DS_instruction : public Instruction {
|
struct DS_instruction : public Instruction {
|
||||||
memory_sync_info sync;
|
memory_sync_info sync;
|
||||||
bool gds;
|
bool gds;
|
||||||
int16_t offset0;
|
uint16_t offset0;
|
||||||
int8_t offset1;
|
uint8_t offset1;
|
||||||
uint8_t padding;
|
uint8_t padding;
|
||||||
};
|
};
|
||||||
static_assert(sizeof(DS_instruction) == sizeof(Instruction) + 8, "Unexpected padding");
|
static_assert(sizeof(DS_instruction) == sizeof(Instruction) + 8, "Unexpected padding");
|
||||||
|
|
|
@ -90,8 +90,8 @@ class Format(Enum):
|
||||||
('bool', 'dlc', 'false'),
|
('bool', 'dlc', 'false'),
|
||||||
('bool', 'nv', 'false')]
|
('bool', 'nv', 'false')]
|
||||||
elif self == Format.DS:
|
elif self == Format.DS:
|
||||||
return [('int16_t', 'offset0', '0'),
|
return [('uint16_t', 'offset0', '0'),
|
||||||
('int8_t', 'offset1', '0'),
|
('uint8_t', 'offset1', '0'),
|
||||||
('bool', 'gds', 'false')]
|
('bool', 'gds', 'false')]
|
||||||
elif self == Format.MTBUF:
|
elif self == Format.MTBUF:
|
||||||
return [('unsigned', 'dfmt', None),
|
return [('unsigned', 'dfmt', None),
|
||||||
|
|
Loading…
Reference in New Issue