fermi_2d: Fix surface copy block height.

This commit is contained in:
bunnei 2018-04-28 20:40:03 -04:00
parent 634fa4a6ad
commit f2da134385
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");