Browse Source

Quick shenanigan

temporary-branch
CamilleLaVey 2 days ago
parent
commit
e6ee576f80
  1. 3
      src/video_core/engines/fermi_2d.cpp

3
src/video_core/engines/fermi_2d.cpp

@ -71,7 +71,8 @@ void Fermi2D::Blit() {
constexpr s64 null_derivative = 1ULL << 32; constexpr s64 null_derivative = 1ULL << 32;
Surface src = regs.src; Surface src = regs.src;
const auto bytes_per_pixel = BytesPerBlock(PixelFormatFromRenderTargetFormat(src.format)); const auto bytes_per_pixel = BytesPerBlock(PixelFormatFromRenderTargetFormat(src.format));
const bool delegate_to_gpu = src.width > 512 && src.height > 512 && bytes_per_pixel <= 8 &&
const u64 src_area = static_cast<u64>(src.width) * static_cast<u64>(src.height);
const bool delegate_to_gpu = src_area > 512ULL * 512ULL && bytes_per_pixel <= 8 &&
src.format != regs.dst.format; src.format != regs.dst.format;
auto srcX = args.src_x0; auto srcX = args.src_x0;

Loading…
Cancel
Save