diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-08 21:46:32 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:30 +0200 |
commit | 3e841f6441903c6e97307dd49a2543ce82654044 (patch) | |
tree | d6fb26667d43589b17aba1c51017c420c5b2696c /src/shader_recompiler/backend/glasm/reg_alloc.h | |
parent | glasm: Remove unused argument in identity instructions on GLASM (diff) | |
download | yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.gz yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.bz2 yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.lz yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.xz yuzu-3e841f6441903c6e97307dd49a2543ce82654044.tar.zst yuzu-3e841f6441903c6e97307dd49a2543ce82654044.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glasm/reg_alloc.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.h b/src/shader_recompiler/backend/glasm/reg_alloc.h index 83d728d20..f73aa3348 100644 --- a/src/shader_recompiler/backend/glasm/reg_alloc.h +++ b/src/shader_recompiler/backend/glasm/reg_alloc.h @@ -6,6 +6,7 @@ #include <bitset> +#include "common/bit_field.h" #include "common/common_types.h" namespace Shader::IR { @@ -18,9 +19,12 @@ namespace Shader::Backend::GLASM { class EmitContext; struct Id { - u32 index : 30; - u32 is_spill : 1; - u32 is_condition_code : 1; + union { + u32 raw; + BitField<0, 30, u32> index; + BitField<30, 1, u32> is_spill; + BitField<31, 1, u32> is_condition_code; + }; }; class RegAlloc { |