Skip to content

Commit

Permalink
gpu: cache: fix image offset
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Nov 1, 2024
1 parent 2dbbabe commit 410683e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcsx/gpu/Cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 410683e

Please sign in to comment.