summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-09-24 03:47:03 +0200
committerGitHub <noreply@github.com>2019-09-24 03:47:03 +0200
commit376f1a443216196b71d4cf88c3dcdfe2bad57802 (patch)
tree57e88bed1db9390700011cc03c1e1173f105023c /src/video_core/engines
parentMerge pull request #2901 from DarkLordZach/mainline-title-bar (diff)
parentgl_shader_decompiler: Use uint for images and fix SUATOM (diff)
downloadyuzu-376f1a443216196b71d4cf88c3dcdfe2bad57802.tar
yuzu-376f1a443216196b71d4cf88c3dcdfe2bad57802.tar.gz
yuzu-376f1a443216196b71d4cf88c3dcdfe2bad57802.tar.bz2
yuzu-376f1a443216196b71d4cf88c3dcdfe2bad57802.tar.lz
yuzu-376f1a443216196b71d4cf88c3dcdfe2bad57802.tar.xz
yuzu-376f1a443216196b71d4cf88c3dcdfe2bad57802.tar.zst
yuzu-376f1a443216196b71d4cf88c3dcdfe2bad57802.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 28272ef6f..7a6355ce2 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -544,7 +544,7 @@ enum class VoteOperation : u64 {
Eq = 2, // allThreadsEqualNV
};
-enum class ImageAtomicSize : u64 {
+enum class ImageAtomicOperationType : u64 {
U32 = 0,
S32 = 1,
U64 = 2,
@@ -1432,11 +1432,11 @@ union Instruction {
ASSERT(mode == SurfaceDataMode::D_BA);
return store_data_layout;
}
- } sust;
+ } suldst;
union {
BitField<28, 1, u64> is_ba;
- BitField<51, 3, ImageAtomicSize> size;
+ BitField<51, 3, ImageAtomicOperationType> operation_type;
BitField<33, 3, ImageType> image_type;
BitField<29, 4, ImageAtomicOperation> operation;
BitField<49, 2, OutOfBoundsStore> out_of_bounds_store;
@@ -1595,6 +1595,7 @@ public:
TMML_B, // Texture Mip Map Level
TMML, // Texture Mip Map Level
SUST, // Surface Store
+ SULD, // Surface Load
SUATOM, // Surface Atomic Operation
EXIT,
NOP,
@@ -1884,6 +1885,7 @@ private:
INST("110111110110----", Id::TMML_B, Type::Texture, "TMML_B"),
INST("1101111101011---", Id::TMML, Type::Texture, "TMML"),
INST("11101011001-----", Id::SUST, Type::Image, "SUST"),
+ INST("11101011000-----", Id::SULD, Type::Image, "SULD"),
INST("1110101000------", Id::SUATOM, Type::Image, "SUATOM_D"),
INST("0101000010110---", Id::NOP, Type::Trivial, "NOP"),
INST("11100000--------", Id::IPA, Type::Trivial, "IPA"),