From a97cdb5eb42ffe417b79910e3ba022dc6e58e251 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 23 Oct 2018 23:50:16 -0400 Subject: [PATCH 1/2] maxwell_3d: Remove unused variable within ProcessQueryGet() --- src/video_core/engines/maxwell_3d.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index bca014a4ac..78ba29fc1a 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -155,7 +155,6 @@ void Maxwell3D::ProcessQueryGet() { ASSERT_MSG(regs.query.query_get.unit == Regs::QueryUnit::Crop, "Units other than CROP are unimplemented"); - u32 value = Memory::Read32(*address); u64 result = 0; // TODO(Subv): Support the other query variables From 257b7bbfee47b0d2dab058593774d1caeb56f22b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 23 Oct 2018 23:51:13 -0400 Subject: [PATCH 2/2] decoders: Remove unused variable within SwizzledData() --- src/video_core/textures/decoders.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp index f1b40e7f55..da7989db9f 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, const u32 blocks_on_x = div_ceil(width, block_x_elements); const u32 blocks_on_y = div_ceil(height, block_y_elements); const u32 blocks_on_z = div_ceil(depth, block_z_elements); - const u32 blocks = blocks_on_x * blocks_on_y * blocks_on_z; const u32 gob_size = gob_x_bytes * gob_elements_y * gob_elements_z; const u32 xy_block_size = gob_size * block_height; const u32 block_size = xy_block_size * block_depth;