File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1874,7 +1874,7 @@ void GSState::CheckWriteOverlap(bool req_write, bool req_read)
1874
1874
// Tex rect could be invalid showing 1024x1024 when it isn't. If the frame is only 1 page wide, it's either a big strip or a single page draw.
1875
1875
// This large texture causes misdetection of overlapping writes, causing our heuristics in the hardware renderer for future draws to be missing.
1876
1876
// Either way if we check the queued up coordinates, it should give us a fair idea. (Cabela's Trophy Bucks)
1877
- if (prev_ctx.FRAME .FBW == 1 && tex_rect.width () > (prev_ctx.TEX0 .TBW * 64 ))
1877
+ if (prev_ctx.FRAME .FBW == 1 && static_cast < u32 >( tex_rect.width () ) > (prev_ctx.TEX0 .TBW * 64 ))
1878
1878
{
1879
1879
GSVector4i tex_draw_rect = GSVector4i::zero ();
1880
1880
for (u32 i = 0 ; i < m_index.tail ; i++)
Original file line number Diff line number Diff line change @@ -2712,20 +2712,20 @@ void GSDevice11::RenderHW(GSHWDrawConfig& config)
2712
2712
// Make sure no tex is bound as both rtv and srv at the same time.
2713
2713
// All conflicts should've been taken care of by PSUnbindConflictingSRVs.
2714
2714
// It is fine to do the optimiation when on slot 0 tex is fb, tex is ds, and slot 2 sw blend as they are copies bound to srv.
2715
- if (!draw_rt && draw_ds && m_state.rt_view && m_state.cached_rt_view && m_state.rt_view == *( GSTexture11*) m_state.cached_rt_view &&
2715
+ if (!draw_rt && draw_ds && m_state.rt_view && m_state.cached_rt_view && m_state.rt_view == *static_cast < GSTexture11*>( m_state.cached_rt_view ) &&
2716
2716
m_state.cached_dsv == draw_ds && config.tex != m_state.cached_rt_view && m_state.cached_rt_view ->GetSize () == draw_ds->GetSize ())
2717
2717
{
2718
2718
draw_rt = m_state.cached_rt_view ;
2719
2719
}
2720
- else if (!draw_ds && draw_rt && m_state.dsv && m_state.cached_dsv && m_state.dsv == *( GSTexture11*) m_state.cached_dsv &&
2720
+ else if (!draw_ds && draw_rt && m_state.dsv && m_state.cached_dsv && m_state.dsv == *static_cast < GSTexture11*>( m_state.cached_dsv ) &&
2721
2721
m_state.cached_rt_view == draw_rt && config.tex != m_state.cached_dsv && m_state.cached_dsv ->GetSize () == draw_rt->GetSize ())
2722
2722
{
2723
2723
draw_ds = m_state.cached_dsv ;
2724
2724
}
2725
2725
2726
2726
GSTexture* draw_rt_clone = nullptr ;
2727
2727
2728
- if (config.require_one_barrier || (config.require_full_barrier && m_features.multidraw_fb_copy ) || (config.tex && config.tex == config.rt ))
2728
+ if (draw_rt && ( config.require_one_barrier || (config.require_full_barrier && m_features.multidraw_fb_copy ) || (config.tex && config.tex == config.rt ) ))
2729
2729
{
2730
2730
// Requires a copy of the RT.
2731
2731
// Used as "bind rt" flag when texture barrier is unsupported for tex is fb.
You can’t perform that action at this time.
0 commit comments