diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-29 02:40:03 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-29 02:40:03 +0200 |
commit | f87ea8fa8b5c28f0af2fe1e7ccffa52c43d5a099 (patch) | |
tree | f087a390c3c99076216bb42065690dc19d01ac41 /src/video_core/engines/fermi_2d.h | |
parent | Merge pull request #414 from lioncash/cruft (diff) | |
download | yuzu-f87ea8fa8b5c28f0af2fe1e7ccffa52c43d5a099.tar yuzu-f87ea8fa8b5c28f0af2fe1e7ccffa52c43d5a099.tar.gz yuzu-f87ea8fa8b5c28f0af2fe1e7ccffa52c43d5a099.tar.bz2 yuzu-f87ea8fa8b5c28f0af2fe1e7ccffa52c43d5a099.tar.lz yuzu-f87ea8fa8b5c28f0af2fe1e7ccffa52c43d5a099.tar.xz yuzu-f87ea8fa8b5c28f0af2fe1e7ccffa52c43d5a099.tar.zst yuzu-f87ea8fa8b5c28f0af2fe1e7ccffa52c43d5a099.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/fermi_2d.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/engines/fermi_2d.h b/src/video_core/engines/fermi_2d.h index 0c5b413cc..70667cb94 100644 --- a/src/video_core/engines/fermi_2d.h +++ b/src/video_core/engines/fermi_2d.h @@ -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"); |