From ee72cd0757d77ade1e942c778c363249c72df82e Mon Sep 17 00:00:00 2001 From: James Park Date: Thu, 26 Nov 2020 20:38:58 -0800 Subject: [PATCH] amd: Remove bitfield sizes from enum values MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes negative indexing on MSVC. Reviewed-by: Marek Olšák Part-of: --- 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 9d345cd..2a5d115 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; -- 2.7.4