summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-04-23 01:27:36 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2019-04-23 01:27:36 +0200
commit701ce1c9d03c6c6a70965cbba3e961ab06abf49c (patch)
treec7c50f939d9f79aa29900c62e8a42d224778c354 /src/video_core/engines/maxwell_3d.h
parentIntroduce skeleton of the GPU Compute Engine. (diff)
downloadyuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.gz
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.bz2
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.lz
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.xz
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.zst
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r--src/video_core/engines/maxwell_3d.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index cc2424d38..47fe1f137 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -14,6 +14,7 @@
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "common/math_util.h"
+#include "video_core/engines/engine_upload.h"
#include "video_core/gpu.h"
#include "video_core/macro_interpreter.h"
#include "video_core/textures/texture.h"
@@ -579,7 +580,18 @@ public:
u32 bind;
} macros;
- INSERT_PADDING_WORDS(0x69);
+ INSERT_PADDING_WORDS(0x17);
+
+ Upload::Data upload;
+ struct {
+ union {
+ BitField<0, 1, u32> linear;
+ };
+ } exec_upload;
+
+ u32 data_upload;
+
+ INSERT_PADDING_WORDS(0x44);
struct {
union {
@@ -1175,6 +1187,8 @@ private:
/// Interpreter for the macro codes uploaded to the GPU.
MacroInterpreter macro_interpreter;
+ Upload::State upload_state;
+
/// Retrieves information about a specific TIC entry from the TIC buffer.
Texture::TICEntry GetTICEntry(u32 tic_index) const;
@@ -1218,6 +1232,9 @@ private:
"Field " #field_name " has invalid position")
ASSERT_REG_POSITION(macros, 0x45);
+ASSERT_REG_POSITION(upload, 0x60);
+ASSERT_REG_POSITION(exec_upload, 0x6C);
+ASSERT_REG_POSITION(data_upload, 0x6D);
ASSERT_REG_POSITION(sync_info, 0xB2);
ASSERT_REG_POSITION(tfb_enabled, 0x1D1);
ASSERT_REG_POSITION(rt, 0x200);