summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-07-10 23:29:04 +0200
committerMarek Olšák <[email protected]>2015-07-23 00:59:23 +0200
commite4d738f6c6b98a78830c10ab7b89704d847637a5 (patch)
treef52a5f132e87ff48aa22228958559d09edf03097 /src/gallium/drivers/radeonsi/si_shader.c
parent2369dc83826c7b1f413ff78f55e460c38d7a0660 (diff)
radeonsi: remove redundant parameter in si_shader_binary_read
Reviewed-by: Tom Stellard <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 75a29aeebc9..b988f6d2c10 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -2686,11 +2686,9 @@ void si_shader_apply_scratch_relocs(struct si_context *sctx,
}
}
-int si_shader_binary_read(struct si_screen *sscreen,
- struct si_shader *shader,
- const struct radeon_shader_binary *binary)
+int si_shader_binary_read(struct si_screen *sscreen, struct si_shader *shader)
{
-
+ const struct radeon_shader_binary *binary = &shader->binary;
unsigned i;
unsigned code_size;
unsigned char *ptr;
@@ -2750,7 +2748,7 @@ int si_compile_llvm(struct si_screen *sscreen, struct si_shader *shader,
if (r) {
return r;
}
- r = si_shader_binary_read(sscreen, shader, &shader->binary);
+ r = si_shader_binary_read(sscreen, shader);
FREE(shader->binary.config);
FREE(shader->binary.rodata);