summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2018-10-10 04:28:19 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2018-10-10 04:28:19 +0200
commit5f4ee6f0c8c7b2532bc5be841fcee4670495d7f7 (patch)
treec0ed6314f69fa573549604cf52087f31b58c3405 /src/video_core/engines
parentFixed block height settings for RenderTargets and Depth Buffers, and added block width and block depth (diff)
downloadyuzu-5f4ee6f0c8c7b2532bc5be841fcee4670495d7f7.tar
yuzu-5f4ee6f0c8c7b2532bc5be841fcee4670495d7f7.tar.gz
yuzu-5f4ee6f0c8c7b2532bc5be841fcee4670495d7f7.tar.bz2
yuzu-5f4ee6f0c8c7b2532bc5be841fcee4670495d7f7.tar.lz
yuzu-5f4ee6f0c8c7b2532bc5be841fcee4670495d7f7.tar.xz
yuzu-5f4ee6f0c8c7b2532bc5be841fcee4670495d7f7.tar.zst
yuzu-5f4ee6f0c8c7b2532bc5be841fcee4670495d7f7.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 896498b89..68831a1ac 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -347,6 +347,16 @@ public:
DecrWrap = 8,
};
+ enum class MemoryLayout : u32 {
+ Linear = 0,
+ BlockLinear = 1,
+ };
+
+ enum class InvMemoryLayout : u32 {
+ BlockLinear = 0,
+ Linear = 1,
+ };
+
struct Cull {
enum class FrontFace : u32 {
ClockWise = 0x0900,
@@ -436,7 +446,8 @@ public:
BitField<0, 3, u32> block_width;
BitField<4, 3, u32> block_height;
BitField<8, 3, u32> block_depth;
- } block_dimensions;
+ BitField<12, 1, InvMemoryLayout> type;
+ } memory_layout;
u32 array_mode;
u32 layer_stride;
u32 base_layer;
@@ -556,7 +567,8 @@ public:
BitField<0, 4, u32> block_width;
BitField<4, 4, u32> block_height;
BitField<8, 4, u32> block_depth;
- } block_dimensions;
+ BitField<20, 1, InvMemoryLayout> type;
+ } memory_layout;
u32 layer_stride;
GPUVAddr Address() const {