summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2018-09-08 01:53:06 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2018-09-09 17:59:01 +0200
commit073a21ac0b9af6871af02aa0096677abb4af117b (patch)
tree6299170e3b7bef89c2d93218243c8cc7a962b3a8 /src/video_core/engines
parentChange name of TEXQ to TXQ, in order to match NVIDIA's naming (diff)
downloadyuzu-073a21ac0b9af6871af02aa0096677abb4af117b.tar
yuzu-073a21ac0b9af6871af02aa0096677abb4af117b.tar.gz
yuzu-073a21ac0b9af6871af02aa0096677abb4af117b.tar.bz2
yuzu-073a21ac0b9af6871af02aa0096677abb4af117b.tar.lz
yuzu-073a21ac0b9af6871af02aa0096677abb4af117b.tar.xz
yuzu-073a21ac0b9af6871af02aa0096677abb4af117b.tar.zst
yuzu-073a21ac0b9af6871af02aa0096677abb4af117b.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 9bfeff5b6..6cfdb6e27 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -244,6 +244,16 @@ enum class TextureType : u64 {
TextureCube = 3,
};
+enum class TextureQueryType : u64 {
+ Dimension = 1,
+ TextureType = 2,
+ SamplePosition = 5,
+ Filter = 16,
+ LevelOfDetail = 18,
+ Wrap = 20,
+ BorderColor = 22,
+};
+
enum class IpaInterpMode : u64 { Linear = 0, Perspective = 1, Flat = 2, Sc = 3 };
enum class IpaSampleMode : u64 { Default = 0, Centroid = 1, Offset = 2 };
@@ -519,6 +529,11 @@ union Instruction {
} tex;
union {
+ BitField<22, 6, TextureQueryType> query_type;
+ BitField<31, 4, u64> component_mask;
+ } txq;
+
+ union {
BitField<28, 1, u64> array;
BitField<29, 2, TextureType> texture_type;
BitField<56, 2, u64> component;
@@ -670,7 +685,7 @@ public:
LDG, // Load from global memory
STG, // Store in global memory
TEX,
- TXQ, // Texture Query
+ TXQ, // Texture Query
TEXS, // Texture Fetch with scalar/non-vec4 source/destinations
TLDS, // Texture Load with scalar/non-vec4 source/destinations
TLD4, // Texture Load 4