Browse Source
Merge pull request #2449 from lioncash/unused-var
gl_rasterizer: Silence unused variable warnings
pull/15/merge
Rodrigo Locatti
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
3 deletions
-
src/video_core/renderer_opengl/gl_rasterizer.cpp
-
src/video_core/shader/decode/texture.cpp
|
|
|
@ -922,8 +922,8 @@ void RasterizerOpenGL::SyncViewport(OpenGLState& current_state) { |
|
|
|
viewport.y = viewport_rect.bottom; |
|
|
|
viewport.width = viewport_rect.GetWidth(); |
|
|
|
viewport.height = viewport_rect.GetHeight(); |
|
|
|
viewport.depth_range_far = regs.viewports[i].depth_range_far; |
|
|
|
viewport.depth_range_near = regs.viewports[i].depth_range_near; |
|
|
|
viewport.depth_range_far = src.depth_range_far; |
|
|
|
viewport.depth_range_near = src.depth_range_near; |
|
|
|
} |
|
|
|
state.depth_clamp.far_plane = regs.view_volume_clip_control.depth_clamp_far != 0; |
|
|
|
state.depth_clamp.near_plane = regs.view_volume_clip_control.depth_clamp_near != 0; |
|
|
|
|
|
|
|
@ -541,7 +541,6 @@ Node4 ShaderIR::GetTld4Code(Instruction instr, TextureType texture_type, bool de |
|
|
|
bool is_array, bool is_aoffi) { |
|
|
|
const std::size_t coord_count = GetCoordCount(texture_type); |
|
|
|
const std::size_t total_coord_count = coord_count + (is_array ? 1 : 0); |
|
|
|
const std::size_t total_reg_count = total_coord_count + (depth_compare ? 1 : 0); |
|
|
|
|
|
|
|
// If enabled arrays index is always stored in the gpr8 field
|
|
|
|
const u64 array_register = instr.gpr8.Value(); |
|
|
|
|