Skip to content

Commit ab811bf

Browse files
committed
nv2a: Const-ify some function parameters
1 parent 7908bcb commit ab811bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hw/xbox/nv2a/pgraph/gl/shaders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static bool shader_module_cache_entry_compare(Lru *lru, LruNode *node,
184184
}
185185

186186
static GLuint get_shader_module_for_key(PGRAPHGLState *r,
187-
ShaderModuleCacheKey *key)
187+
const ShaderModuleCacheKey *key)
188188
{
189189
uint64_t hash = fast_hash((void *)key, sizeof(ShaderModuleCacheKey));
190190
LruNode *node = lru_lookup(&r->shader_module_cache, hash, key);

hw/xbox/nv2a/pgraph/vk/shaders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static void shader_cache_finalize(PGRAPHState *pg)
416416
}
417417

418418
static ShaderBinding *get_shader_binding_for_state(PGRAPHVkState *r,
419-
ShaderState *state)
419+
const ShaderState *state)
420420
{
421421
uint64_t hash = fast_hash((void *)state, sizeof(*state));
422422
LruNode *node = lru_lookup(&r->shader_cache, hash, state);

0 commit comments

Comments
 (0)