fermi_2d: Fix surface copy block height.

This commit is contained in:
bunnei
2018-04-28 20:40:03 -04:00
parent 3d9126ba87
commit f87ea8fa8b
2 changed files with 7 additions and 2 deletions

View File

@ -49,6 +49,11 @@ public:
return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) |
address_low);
}
u32 BlockHeight() const {
// The block height is stored in log2 format.
return 1 << block_height;
}
};
static_assert(sizeof(Surface) == 0x28, "Surface has incorrect size");