amd: Remove bitfield sizes from enum values

Fixes negative indexing on MSVC.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7791>
This commit is contained in:
James Park 2020-11-26 20:38:58 -08:00
parent 31b4fdc008
commit ee72cd0757
1 changed files with 3 additions and 3 deletions

View File

@ -391,9 +391,9 @@ enum ac_image_cache_policy
};
struct ac_image_args {
enum ac_image_opcode opcode : 4;
enum ac_atomic_op atomic : 4; /* for the ac_image_atomic opcode */
enum ac_image_dim dim : 3;
enum ac_image_opcode opcode;
enum ac_atomic_op atomic; /* for the ac_image_atomic opcode */
enum ac_image_dim dim;
unsigned dmask : 4;
unsigned cache_policy : 3;
bool unorm : 1;