nv2a: Const-ify some function parameters

This commit is contained in:
Matt Borgerson 2025-07-02 21:24:15 -07:00
parent 7908bcbbe6
commit ab811bf987
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ static bool shader_module_cache_entry_compare(Lru *lru, LruNode *node,
} }
static GLuint get_shader_module_for_key(PGRAPHGLState *r, static GLuint get_shader_module_for_key(PGRAPHGLState *r,
ShaderModuleCacheKey *key) const ShaderModuleCacheKey *key)
{ {
uint64_t hash = fast_hash((void *)key, sizeof(ShaderModuleCacheKey)); uint64_t hash = fast_hash((void *)key, sizeof(ShaderModuleCacheKey));
LruNode *node = lru_lookup(&r->shader_module_cache, hash, key); LruNode *node = lru_lookup(&r->shader_module_cache, hash, key);

View File

@ -416,7 +416,7 @@ static void shader_cache_finalize(PGRAPHState *pg)
} }
static ShaderBinding *get_shader_binding_for_state(PGRAPHVkState *r, static ShaderBinding *get_shader_binding_for_state(PGRAPHVkState *r,
ShaderState *state) const ShaderState *state)
{ {
uint64_t hash = fast_hash((void *)state, sizeof(*state)); uint64_t hash = fast_hash((void *)state, sizeof(*state));
LruNode *node = lru_lookup(&r->shader_cache, hash, state); LruNode *node = lru_lookup(&r->shader_cache, hash, state);