Vulkan: Add EndFrame to texture cache.

This commit is contained in:
Unknown W. Brackets committed 2016-03-27 08:33:22 -07:00
1 parent 3352608027
commit ed41785692
3 files changed
+11 -6

No files matched your search

+9 -6
View File
@@ -564,15 +564,10 @@ void TextureCacheVulkan::SetFramebufferSamplingParams(u16 bufferWidth, u16 buffe
}
void TextureCacheVulkan::StartFrame() {
// TODO: Better place?
allocator_->End();
lastBoundTexture = nullptr;
timesInvalidatedAllThisFrame_ = 0;
if (texelsScaledThisFrame_) {
// INFO_LOG(G3D, "Scaled %i texels", texelsScaledThisFrame_);
}
texelsScaledThisFrame_ = 0;
if (clearCacheNextFrame_) {
Clear(true);
clearCacheNextFrame_ = false;
@@ -583,6 +578,14 @@ void TextureCacheVulkan::StartFrame() {
allocator_->Begin();
}
void TextureCacheVulkan::EndFrame() {
allocator_->End();
if (texelsScaledThisFrame_) {
// INFO_LOG(G3D, "Scaled %i texels", texelsScaledThisFrame_);
}
}
static inline u32 MiniHash(const u32 *ptr) {
return ptr[0];
}