diff options
| author | 2018-10-24 16:28:38 -0400 | |
|---|---|---|
| committer | 2018-10-24 16:28:38 -0400 | |
| commit | 2eff8336f426aa5e41a9f2baa60cc96c9930f7dd (patch) | |
| tree | a576847289e88588d7129f4aff48d7c49b9ab68b /src | |
| parent | Merge pull request #1561 from lioncash/fs (diff) | |
| parent | decoders: Remove unused variable within SwizzledData() (diff) | |
| download | yuzu-2eff8336f426aa5e41a9f2baa60cc96c9930f7dd.tar.gz yuzu-2eff8336f426aa5e41a9f2baa60cc96c9930f7dd.tar.xz yuzu-2eff8336f426aa5e41a9f2baa60cc96c9930f7dd.zip | |
Merge pull request #1560 from lioncash/unused
maxwell_3d/decoders: Remove unused variables
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/textures/decoders.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index bca014a4a..78ba29fc1 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -155,7 +155,6 @@ void Maxwell3D::ProcessQueryGet() { | |||
| 155 | ASSERT_MSG(regs.query.query_get.unit == Regs::QueryUnit::Crop, | 155 | ASSERT_MSG(regs.query.query_get.unit == Regs::QueryUnit::Crop, |
| 156 | "Units other than CROP are unimplemented"); | 156 | "Units other than CROP are unimplemented"); |
| 157 | 157 | ||
| 158 | u32 value = Memory::Read32(*address); | ||
| 159 | u64 result = 0; | 158 | u64 result = 0; |
| 160 | 159 | ||
| 161 | // TODO(Subv): Support the other query variables | 160 | // TODO(Subv): Support the other query variables |
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp index f1b40e7f5..da7989db9 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp | |||
| @@ -142,7 +142,6 @@ void SwizzledData(u8* swizzled_data, u8* unswizzled_data, const bool unswizzle, | |||
| 142 | const u32 blocks_on_x = div_ceil(width, block_x_elements); | 142 | const u32 blocks_on_x = div_ceil(width, block_x_elements); |
| 143 | const u32 blocks_on_y = div_ceil(height, block_y_elements); | 143 | const u32 blocks_on_y = div_ceil(height, block_y_elements); |
| 144 | const u32 blocks_on_z = div_ceil(depth, block_z_elements); | 144 | const u32 blocks_on_z = div_ceil(depth, block_z_elements); |
| 145 | const u32 blocks = blocks_on_x * blocks_on_y * blocks_on_z; | ||
| 146 | const u32 gob_size = gob_x_bytes * gob_elements_y * gob_elements_z; | 145 | const u32 gob_size = gob_x_bytes * gob_elements_y * gob_elements_z; |
| 147 | const u32 xy_block_size = gob_size * block_height; | 146 | const u32 xy_block_size = gob_size * block_height; |
| 148 | const u32 block_size = xy_block_size * block_depth; | 147 | const u32 block_size = xy_block_size * block_depth; |