mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 14:45:07 +01:00
Fix accidental graphics context member/parameter duplication
This commit is contained in:
parent
7a6f27a19a
commit
3ad640fcbc
@ -1213,7 +1213,7 @@ namespace skyline::gpu::interconnect {
|
|||||||
if (tscIndexLinked)
|
if (tscIndexLinked)
|
||||||
handle.samplerIndex = handle.textureIndex;
|
handle.samplerIndex = handle.textureIndex;
|
||||||
|
|
||||||
auto sampler{GetSampler(handle.samplerIndex, tscIndexLinked)};
|
auto sampler{GetSampler(handle.samplerIndex)};
|
||||||
auto textureView{GetPoolTextureView(handle.textureIndex)};
|
auto textureView{GetPoolTextureView(handle.textureIndex)};
|
||||||
|
|
||||||
std::scoped_lock lock(*textureView);
|
std::scoped_lock lock(*textureView);
|
||||||
@ -2491,7 +2491,7 @@ namespace skyline::gpu::interconnect {
|
|||||||
return vk::BorderColor::eFloatTransparentBlack;
|
return vk::BorderColor::eFloatTransparentBlack;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<Sampler> GetSampler(u32 index, bool tscIndexLinked) {
|
std::shared_ptr<Sampler> GetSampler(u32 index) {
|
||||||
if (!samplerPool.samplerControls.valid()) {
|
if (!samplerPool.samplerControls.valid()) {
|
||||||
auto mappings{channelCtx.asCtx->gmmu.TranslateRange(samplerPool.iova, (tscIndexLinked ? texturePool.maximumIndex : samplerPool.maximumIndex) * sizeof(TextureSamplerControl))};
|
auto mappings{channelCtx.asCtx->gmmu.TranslateRange(samplerPool.iova, (tscIndexLinked ? texturePool.maximumIndex : samplerPool.maximumIndex) * sizeof(TextureSamplerControl))};
|
||||||
if (mappings.size() != 1)
|
if (mappings.size() != 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user