Vulkan: Allow saving const tex levels.

This might be used for fonts, for example.  They could be replaced, so no
reason not to export.
This commit is contained in:
Unknown W. Brackets 2022-04-17 20:06:03 -07:00
parent 5d22057f80
commit 39d6dc1740
2 changed files with 1 additions and 1 deletions

View file

@ -208,6 +208,7 @@ public:
return none_;
}
// Notify that a new texture was decoded. May already be upscaled, saves the data passed.
void NotifyTextureDecoded(const ReplacedTextureDecodeInfo &replacedInfo, const void *data, int pitch, int level, int w, int h);
void Decimate(bool forcePressure);

View file

@ -845,7 +845,6 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
data = drawEngine_->GetPushBufferForTextureData()->PushAligned(size, &bufferOffset, &texBuf, pushAlignment);
LoadTextureLevel(*entry, (uint8_t *)data, stride, level, scaleFactor, dstFmt);
entry->vkTex->UploadMip(cmdInit, 0, mipWidth, mipHeight, texBuf, bufferOffset, stride / bpp);
break;
} else {
if (computeUpload) {
int srcBpp = dstFmt == VULKAN_8888_FORMAT ? 4 : 2;