X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fpsx_gpu_if.c;h=e8bbe597cbbcdf9fb9042f2935e25504897a867a;hp=8907ac02821ea68a653c5e8a1525653ded9dc455;hb=652c6b8b676be0172612da811b38dd5f87fa2870;hpb=90ca49139cdc64ab374f2e763cb4c28fffd0a7b8 diff --git a/plugins/gpu_neon/psx_gpu_if.c b/plugins/gpu_neon/psx_gpu_if.c index 8907ac02..e8bbe597 100644 --- a/plugins/gpu_neon/psx_gpu_if.c +++ b/plugins/gpu_neon/psx_gpu_if.c @@ -10,13 +10,10 @@ #include -#if 1 +extern const unsigned char cmd_lengths[256]; +#define command_lengths cmd_lengths + #include "psx_gpu/psx_gpu.c" -#else -#define printf xprintf -#define xprintf(...) -#include "psx_gpu/psx_gpu_standard.c" -#endif #include "psx_gpu/psx_gpu_parse.c" #include "gpu.h" @@ -48,6 +45,15 @@ void renderer_flush_queues(void) flush_render_block_buffer(&egpu); } +void renderer_set_interlace(int enable, int is_odd) +{ + egpu.interlace_mode &= ~(RENDER_INTERLACE_ENABLED|RENDER_INTERLACE_ODD); + if (enable) + egpu.interlace_mode |= RENDER_INTERLACE_ENABLED; + if (is_odd) + egpu.interlace_mode |= RENDER_INTERLACE_ODD; +} + void renderer_set_config(const struct rearmed_cbs *cbs) { }