mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
gpu: cache: fix image offset
This commit is contained in:
parent
2dbbabedd3
commit
410683ef36
|
|
@ -1006,7 +1006,7 @@ struct CachedImage : Cache::Entry {
|
|||
++mipLevel) {
|
||||
auto &mipInfo = info.getSubresourceInfo(mipLevel);
|
||||
regions.push_back({
|
||||
.bufferOffset = mipInfo.tiledOffset + imageBuffer.offset,
|
||||
.bufferOffset = imageBuffer.offset + mipInfo.linearOffset,
|
||||
.bufferRowLength =
|
||||
mipLevel > 0 ? 0 : std::max(imageBufferKey.pitch >> mipLevel, 1u),
|
||||
.imageSubresource =
|
||||
|
|
|
|||
Loading…
Reference in a new issue