mirror of
https://github.com/TheBozos/PS2Recomp.git
synced 2026-12-04 06:53:16 -10:00
gs_frontend.cpp now calls ps2x::native::uploadsAtSubmit / uploadsInStreamOrder / textures() and
Renderer::instance().takeGsContextBatches, which the suites (the GS sources alone) did not link, so
ps2_gs_clut_cache_tests failed to link. The stubs are the no-native-content case: no uploads wanted, no batches
taken. All 45 GS cache tests pass (llvm-mingw build under Wine).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01E6DnuKMFaNfUYKXNo6ap8W
(cherry picked from commit 9fb6bc9d19)
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
// The GS sources under test call into the runtime on SIGNAL/FINISH edges (ps2_runtime.cpp) and into the native
|
|
// renderer and texture cache; these suites link the GS alone.
|
|
void ps2NotifyGsCsrEdge() {}
|
|
#include "runtime/ps2_memory.h"
|
|
|
|
uint64_t ps2CurrentEeCycle() { return 0u; }
|
|
bool ps2ScheduleGsInterruptCheck(uint64_t) { return false; }
|
|
bool ps2OnVif1WorkerClock() { return false; }
|
|
uint32_t ps2GsPostEvent(GSRegisters &, GsCpuEvent, uint32_t, uint32_t, uint64_t, uint64_t) { return 0u; }
|
|
|
|
#include "runtime/native/native_renderer.h"
|
|
#include "runtime/native/native_texture_cache.h"
|
|
|
|
#include <cstdlib>
|
|
|
|
namespace ps2x::native
|
|
{
|
|
bool uploadsAtSubmit() { return false; }
|
|
bool uploadsInStreamOrder() { return false; }
|
|
TextureCache &textures() { std::abort(); }
|
|
void TextureCache::upload(uint64_t, uint64_t, uint64_t, const uint8_t *, size_t) {}
|
|
void TextureCache::scanGifPacket(const uint8_t *, size_t) {}
|
|
struct Renderer::Gpu
|
|
{
|
|
};
|
|
Renderer::Renderer() {}
|
|
Renderer::~Renderer() {}
|
|
Renderer &Renderer::instance()
|
|
{
|
|
static Renderer renderer;
|
|
return renderer;
|
|
}
|
|
bool Renderer::takeGsContextBatches(uint64_t, StreamVisitor, void *) { return false; }
|
|
}
|