summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-04-24 00:06:57 +0200
committerSubv <subv2112@gmail.com>2018-04-24 00:06:57 +0200
commitf20895358525f3a8abaefe3a5c2ebe7d30eadc78 (patch)
tree0164985533865c4eb65e21c4f646ee893dc7b48a /src/video_core/engines/maxwell_3d.h
parentMerge pull request #377 from adityaruplaha/sdl2-fullscreen (diff)
downloadyuzu-f20895358525f3a8abaefe3a5c2ebe7d30eadc78.tar
yuzu-f20895358525f3a8abaefe3a5c2ebe7d30eadc78.tar.gz
yuzu-f20895358525f3a8abaefe3a5c2ebe7d30eadc78.tar.bz2
yuzu-f20895358525f3a8abaefe3a5c2ebe7d30eadc78.tar.lz
yuzu-f20895358525f3a8abaefe3a5c2ebe7d30eadc78.tar.xz
yuzu-f20895358525f3a8abaefe3a5c2ebe7d30eadc78.tar.zst
yuzu-f20895358525f3a8abaefe3a5c2ebe7d30eadc78.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r--src/video_core/engines/maxwell_3d.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index d4fcedace..5ee581acf 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -46,6 +46,29 @@ public:
enum class QueryMode : u32 {
Write = 0,
Sync = 1,
+ // TODO(Subv): It is currently unknown what the difference between method 2 and method 0
+ // is.
+ Write2 = 2,
+ };
+
+ enum class QueryUnit : u32 {
+ VFetch = 1,
+ VP = 2,
+ Rast = 4,
+ StrmOut = 5,
+ GP = 6,
+ ZCull = 7,
+ Prop = 10,
+ Crop = 15,
+ };
+
+ enum class QuerySelect : u32 {
+ Zero = 0,
+ };
+
+ enum class QuerySyncCondition : u32 {
+ NotEqual = 0,
+ GreaterThan = 1,
};
enum class ShaderProgram : u32 {
@@ -476,7 +499,10 @@ public:
u32 raw;
BitField<0, 2, QueryMode> mode;
BitField<4, 1, u32> fence;
- BitField<12, 4, u32> unit;
+ BitField<12, 4, QueryUnit> unit;
+ BitField<16, 1, QuerySyncCondition> sync_cond;
+ BitField<23, 5, QuerySelect> select;
+ BitField<28, 1, u32> short_query;
} query_get;
GPUVAddr QueryAddress() const {