mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 12:30:19 +01:00
tgsi: bump tgsi_opcode_info::output_mode size to 4 bits
To avoid problems with MSVC. And verify size with ASSERT_BITFIELD_SIZE(). Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
a01ba366e0
commit
fdee3e1d82
2 changed files with 3 additions and 1 deletions
|
|
@ -56,6 +56,8 @@ tgsi_get_opcode_info( uint opcode )
|
|||
static boolean firsttime = 1;
|
||||
|
||||
ASSERT_BITFIELD_SIZE(struct tgsi_opcode_info, opcode, TGSI_OPCODE_LAST - 1);
|
||||
ASSERT_BITFIELD_SIZE(struct tgsi_opcode_info, output_mode,
|
||||
TGSI_OUTPUT_OTHER);
|
||||
|
||||
if (firsttime) {
|
||||
unsigned i;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ struct tgsi_opcode_info
|
|||
unsigned is_branch:1;
|
||||
unsigned pre_dedent:1;
|
||||
unsigned post_indent:1;
|
||||
enum tgsi_output_mode output_mode:3;
|
||||
enum tgsi_output_mode output_mode:4;
|
||||
unsigned opcode:8;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue