radeonsi: remove an unused ctx parameter in si_shader_destroy
authorMarek Olšák <marek.olsak@amd.com>
Thu, 8 Oct 2015 22:49:13 +0000 (00:49 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 17 Oct 2015 19:40:03 +0000 (21:40 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_shaders.c

index c660534677154f46f3b7e7c591cff4769d52c1a4..697e60a50d9c3e10baf1aca2f813d59f65e2bf5c 100644 (file)
@@ -469,7 +469,7 @@ static void si_delete_compute_state(struct pipe_context *ctx, void* state){
        if (program->kernels) {
                for (int i = 0; i < program->num_kernels; i++){
                        if (program->kernels[i].bo){
-                               si_shader_destroy(ctx, &program->kernels[i]);
+                               si_shader_destroy(&program->kernels[i]);
                        }
                }
                FREE(program->kernels);
@@ -482,7 +482,7 @@ static void si_delete_compute_state(struct pipe_context *ctx, void* state){
        FREE(program->shader.binary.config);
        FREE(program->shader.binary.rodata);
        FREE(program->shader.binary.global_symbol_offsets);
-       si_shader_destroy(ctx, &program->shader);
+       si_shader_destroy(&program->shader);
 #endif
 
        pipe_resource_reference(
index fa1529056b102ba857a7580927ed860c56d23d15..085794ba3b3b32491eb10bf7c447c6162077b601 100644 (file)
@@ -4191,10 +4191,10 @@ out:
        return r;
 }
 
-void si_shader_destroy(struct pipe_context *ctx, struct si_shader *shader)
+void si_shader_destroy(struct si_shader *shader)
 {
        if (shader->gs_copy_shader)
-               si_shader_destroy(ctx, shader->gs_copy_shader);
+               si_shader_destroy(shader->gs_copy_shader);
 
        if (shader->scratch_bo)
                r600_resource_reference(&shader->scratch_bo, NULL);
index b92fa02a171d2b9f90a57925c485224d982eaa9c..cccc46079777455f7e1232e9a329707899a3bc94 100644 (file)
@@ -324,7 +324,7 @@ int si_shader_create(struct si_screen *sscreen, LLVMTargetMachineRef tm,
 void si_dump_shader_key(unsigned shader, union si_shader_key *key, FILE *f);
 int si_compile_llvm(struct si_screen *sscreen, struct si_shader *shader,
                    LLVMTargetMachineRef tm, LLVMModuleRef mod);
-void si_shader_destroy(struct pipe_context *ctx, struct si_shader *shader);
+void si_shader_destroy(struct si_shader *shader);
 unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index);
 int si_shader_binary_upload(struct si_screen *sscreen, struct si_shader *shader);
 int si_shader_binary_read(struct si_screen *sscreen, struct si_shader *shader);
index 248910186793ef2b74727f9bc97d84758a874268..9d05cb5aad67360e2b0d61e2cb3c95c1fb8ed6a4 100644 (file)
@@ -942,7 +942,7 @@ static void si_delete_shader_selector(struct pipe_context *ctx,
                        break;
                }
 
-               si_shader_destroy(ctx, p);
+               si_shader_destroy(p);
                free(p);
                p = c;
        }