samplerjit: Refactor and reuse constant pool.

It's just here to be rip accessible, the fixed values can be output just
once.
This commit is contained in:
Unknown W. Brackets committed 2022-01-01 16:58:05 -08:00
1 parent 40240be91c
commit 91c9343e87
3 files changed
+90 -51

No files matched your search

+14
View File
@@ -119,6 +119,20 @@ void SamplerJitCache::Clear() {
ClearCodeSpace(0);
cache_.clear();
addresses_.clear();
const10All16_ = nullptr;
const10Low_ = nullptr;
const10All8_ = nullptr;
constWidth256f_ = nullptr;
constHeight256f_ = nullptr;
constWidthMinus1i_ = nullptr;
constHeightMinus1i_ = nullptr;
constOnes32_ = nullptr;
constOnes16_ = nullptr;
constUNext_ = nullptr;
constVNext_ = nullptr;
}
void SamplerJitCache::Describe(const std::string &message) {