amd: Remove bitfield sizes from enum values
authorJames Park <jpark37@lagfreegames.com>
Fri, 27 Nov 2020 04:38:58 +0000 (20:38 -0800)
committerJames Park <jpark37@lagfreegames.com>
Sat, 28 Nov 2020 04:49:00 +0000 (20:49 -0800)
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>

src/amd/llvm/ac_llvm_build.h

index 9d345cd..2a5d115 100644 (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;