[GPU] Use the pitch field in tfetch constants

This commit is contained in:
Dr. Chat
2018-05-18 13:48:28 -05:00
parent f591f2dace
commit 191dc30bee
3 changed files with 20 additions and 22 deletions

View File

@@ -831,8 +831,8 @@ TextureCache::Texture* TextureCache::LookupAddress(uint32_t guest_address,
if (texture_info.dimension == Dimension::k2D) {
out_offset->x = 0;
out_offset->y = offset_bytes / texture_info.size.input_pitch;
if (offset_bytes % texture_info.size.input_pitch != 0) {
out_offset->y = offset_bytes / texture_info.pitch;
if (offset_bytes % texture_info.pitch != 0) {
// TODO: offset_x
}
}