Merge pull request #2449 from lioncash/unused-var
gl_rasterizer: Silence unused variable warnings
This commit is contained in:
commit
a206418846
@ -922,8 +922,8 @@ void RasterizerOpenGL::SyncViewport(OpenGLState& current_state) {
|
|||||||
viewport.y = viewport_rect.bottom;
|
viewport.y = viewport_rect.bottom;
|
||||||
viewport.width = viewport_rect.GetWidth();
|
viewport.width = viewport_rect.GetWidth();
|
||||||
viewport.height = viewport_rect.GetHeight();
|
viewport.height = viewport_rect.GetHeight();
|
||||||
viewport.depth_range_far = regs.viewports[i].depth_range_far;
|
viewport.depth_range_far = src.depth_range_far;
|
||||||
viewport.depth_range_near = regs.viewports[i].depth_range_near;
|
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.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;
|
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) {
|
bool is_array, bool is_aoffi) {
|
||||||
const std::size_t coord_count = GetCoordCount(texture_type);
|
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_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
|
// If enabled arrays index is always stored in the gpr8 field
|
||||||
const u64 array_register = instr.gpr8.Value();
|
const u64 array_register = instr.gpr8.Value();
|
||||||
|
Loading…
Reference in New Issue
Block a user