bring GPUvBlank back
[pcsx_rearmed.git] / plugins / gpu_neon / psx_gpu_if.c
CommitLineData
90ca4913 1/*
2 * (C) GraÅžvydas "notaz" Ignotas, 2011
3 *
4 * This work is licensed under the terms of any of these licenses
5 * (at your option):
6 * - GNU GPL, version 2 or later.
7 * - GNU LGPL, version 2.1 or later.
8 * See the COPYING file in the top-level directory.
9 */
10
11#include <stdio.h>
12
13#if 1
14#include "psx_gpu/psx_gpu.c"
15#else
16#define printf xprintf
17#define xprintf(...)
18#include "psx_gpu/psx_gpu_standard.c"
19#endif
20#include "psx_gpu/psx_gpu_parse.c"
21#include "gpu.h"
22
23static psx_gpu_struct egpu __attribute__((aligned(256)));
24
25void do_cmd_list(uint32_t *list, int count)
26{
27 gpu_parse(&egpu, list, count * 4);
28}
29
30int renderer_init(void)
31{
32 initialize_psx_gpu(&egpu, gpu.vram);
33 return 0;
34}
35
36void renderer_sync_ecmds(uint32_t *ecmds)
37{
38 gpu_parse(&egpu, ecmds + 1, 6 * 4);
39}
40
41void renderer_invalidate_caches(int x, int y, int w, int h)
42{
43 invalidate_texture_cache_region(&egpu, x, y, x + w - 1, y + h - 1);
44}
45
46void renderer_flush_queues(void)
47{
48 flush_render_block_buffer(&egpu);
49}
50
51void renderer_set_config(const struct rearmed_cbs *cbs)
52{
53}