early-access version 3072

This commit is contained in:
pineappleEA
2022-10-31 23:08:56 +01:00
parent 6a74631d70
commit b958a03dc7
9 changed files with 456 additions and 114 deletions

View File

@@ -480,11 +480,15 @@ void BlitScreen::RefreshResources(const Tegra::FramebufferConfig& framebuffer) {
fsr.reset();
}
if (framebuffer.width == raw_width && framebuffer.height == raw_height && !raw_images.empty()) {
if (framebuffer.width == raw_width && framebuffer.height == raw_height &&
framebuffer.pixel_format == pixel_format && !raw_images.empty()) {
return;
}
raw_width = framebuffer.width;
raw_height = framebuffer.height;
pixel_format = framebuffer.pixel_format;
ReleaseRawImages();
CreateStagingBuffer(framebuffer);

View File

@@ -28,6 +28,10 @@ namespace VideoCore {
class RasterizerInterface;
}
namespace Service::android {
enum class PixelFormat : u32;
}
namespace Vulkan {
struct ScreenInfo;
@@ -156,6 +160,7 @@ private:
u32 raw_width = 0;
u32 raw_height = 0;
Service::android::PixelFormat pixel_format{};
std::unique_ptr<FSR> fsr;
};