Skip to content

Commit

Permalink
GS:MTL: Only bind rt if needed
Browse files Browse the repository at this point in the history
Reduces barriers making AMD gpus happy
  • Loading branch information
TellowKrinkle committed Jan 25, 2022
1 parent 1bf9a71 commit 4709aea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pcsx2/GS/Renderers/Metal/GSDeviceMTL.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,8 @@ static API_AVAILABLE(macos(10.13)) id<MTLTexture> getTexture(GSTexture* tex)
SetTexture(enc, config.tex, GSMTLTextureIndexTex);
SetTexture(enc, config.pal, GSMTLTextureIndexPalette);
SetTexture(enc, config.raw_tex, GSMTLTextureIndexRawTex);
SetTexture(enc, config.rt, GSMTLTextureIndexRenderTarget);
if (config.require_one_barrier || config.require_full_barrier)
SetTexture(enc, config.rt, GSMTLTextureIndexRenderTarget);
SetSampler(enc, config.sampler);
if (config.blend.index && config.blend.is_constant)
enc.SetBlendColor(config.blend.factor);
Expand Down

0 comments on commit 4709aea

Please sign in to comment.