nv2a/gl: Rename some functions for clarity

This commit is contained in:
Matt Borgerson 2024-07-26 17:21:01 -07:00 committed by mborgerson
parent f3b6d50d99
commit c1bbe39f22
6 changed files with 15 additions and 15 deletions

View File

@ -25,7 +25,7 @@
#include <math.h>
void pgraph_gl_init_display_renderer(NV2AState *d)
void pgraph_gl_init_display(NV2AState *d)
{
struct PGRAPHState *pg = &d->pgraph;
PGRAPHGLState *r = pg->gl_renderer_state;

View File

@ -53,10 +53,10 @@ static void pgraph_gl_init(NV2AState *d)
pgraph_gl_init_surfaces(pg);
pgraph_gl_init_reports(d);
pgraph_gl_init_texture_cache(d);
pgraph_gl_init_vertex_cache(d);
pgraph_gl_init_shader_cache(pg);
pgraph_gl_init_display_renderer(d);
pgraph_gl_init_textures(d);
pgraph_gl_init_buffers(d);
pgraph_gl_init_shaders(pg);
pgraph_gl_init_display(d);
pgraph_gl_update_entire_memory_buffer(d);
@ -74,7 +74,7 @@ static void pgraph_gl_finalize(NV2AState *d)
pgraph_gl_finalize_shaders(pg);
pgraph_gl_finalize_textures(pg);
pgraph_gl_finalize_reports(pg);
pgraph_gl_finalize_vertex(pg);
pgraph_gl_finalize_buffers(pg);
pgraph_gl_finalize_display(pg);
glo_set_current(NULL);

View File

@ -254,18 +254,18 @@ void pgraph_gl_surface_flush(NV2AState *d);
void pgraph_gl_surface_update(NV2AState *d, bool upload, bool color_write, bool zeta_write);
void pgraph_gl_sync(NV2AState *d);
void pgraph_gl_update_entire_memory_buffer(NV2AState *d);
void pgraph_gl_init_display_renderer(NV2AState *d);
void pgraph_gl_init_display(NV2AState *d);
void pgraph_gl_finalize_display(PGRAPHState *pg);
void pgraph_gl_init_reports(NV2AState *d);
void pgraph_gl_finalize_reports(PGRAPHState *pg);
void pgraph_gl_init_shader_cache(PGRAPHState *pg);
void pgraph_gl_init_shaders(PGRAPHState *pg);
void pgraph_gl_finalize_shaders(PGRAPHState *pg);
void pgraph_gl_init_surfaces(PGRAPHState *pg);
void pgraph_gl_finalize_surfaces(PGRAPHState *pg);
void pgraph_gl_init_texture_cache(NV2AState *d);
void pgraph_gl_init_textures(NV2AState *d);
void pgraph_gl_finalize_textures(PGRAPHState *pg);
void pgraph_gl_init_vertex_cache(NV2AState *d);
void pgraph_gl_finalize_vertex(PGRAPHState *pg);
void pgraph_gl_init_buffers(NV2AState *d);
void pgraph_gl_finalize_buffers(PGRAPHState *pg);
void pgraph_gl_process_pending_downloads(NV2AState *d);
void pgraph_gl_reload_surface_scale_factor(PGRAPHState *pg);
void pgraph_gl_render_surface_to_texture(NV2AState *d, SurfaceBinding *surface, TextureBinding *texture, TextureShape *texture_shape, int texture_unit);

View File

@ -551,7 +551,7 @@ static bool shader_cache_entry_compare(Lru *lru, LruNode *node, void *key)
return memcmp(&snode->state, key, sizeof(ShaderState));
}
void pgraph_gl_init_shader_cache(PGRAPHState *pg)
void pgraph_gl_init_shaders(PGRAPHState *pg)
{
PGRAPHGLState *r = pg->gl_renderer_state;

View File

@ -791,7 +791,7 @@ static bool texture_cache_entry_compare(Lru *lru, LruNode *node, void *key)
return memcmp(&tnode->key, key, sizeof(TextureKey));
}
void pgraph_gl_init_texture_cache(NV2AState *d)
void pgraph_gl_init_textures(NV2AState *d)
{
PGRAPHState *pg = &d->pgraph;
PGRAPHGLState *r = pg->gl_renderer_state;

View File

@ -247,7 +247,7 @@ static bool vertex_cache_entry_compare(Lru *lru, LruNode *node, void *key)
static const size_t element_cache_size = 50*1024;
void pgraph_gl_init_vertex_cache(NV2AState *d)
void pgraph_gl_init_buffers(NV2AState *d)
{
PGRAPHState *pg = &d->pgraph;
PGRAPHGLState *r = pg->gl_renderer_state;
@ -283,7 +283,7 @@ void pgraph_gl_init_vertex_cache(NV2AState *d)
assert(glGetError() == GL_NO_ERROR);
}
void pgraph_gl_finalize_vertex(PGRAPHState *pg)
void pgraph_gl_finalize_buffers(PGRAPHState *pg)
{
PGRAPHGLState *r = pg->gl_renderer_state;