Mesa (master): amd: Remove bitfield sizes from enum values
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Nov 28 05:32:02 UTC 2020
Module: Mesa
Branch: master
Commit: ee72cd0757d77ade1e942c778c363249c72df82e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee72cd0757d77ade1e942c778c363249c72df82e
Author: James Park <jpark37 at lagfreegames.com>
Date: Thu Nov 26 20:38:58 2020 -0800
amd: Remove bitfield sizes from enum values
Fixes negative indexing on MSVC.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7791>
---
src/amd/llvm/ac_llvm_build.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/amd/llvm/ac_llvm_build.h b/src/amd/llvm/ac_llvm_build.h
index 9d345cd7753..2a5d1159587 100644
--- a/src/amd/llvm/ac_llvm_build.h
+++ b/src/amd/llvm/ac_llvm_build.h
@@ -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;
More information about the mesa-commit
mailing list