radeonsi: inline si_shader_binary_read
authorMarek Olšák <marek.olsak@amd.com>
Sun, 3 Jan 2016 16:05:05 +0000 (17:05 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 7 Jan 2016 17:26:06 +0000 (18:26 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h

index ffa941b5f6045c7f871d4411ef506d2e71662399..2380242a7fa01f4bf16edcefb66a3f658477bbb0 100644 (file)
@@ -138,8 +138,8 @@ static void *si_create_compute_state(
         * the shader code to the GPU.
         */
        init_scratch_buffer(sctx, program);
-       si_shader_binary_read(&program->shader.binary,
-                             &program->shader.config);
+       si_shader_binary_read_config(&program->shader.binary,
+                                    &program->shader.config, 0);
        si_shader_dump(sctx->screen, &program->shader.binary,
                       &program->shader.config, &sctx->b.debug,
                       TGSI_PROCESSOR_COMPUTE);
index ccb179c1f67db2dd2595c8b34952bc16e9667f2a..36b0364a2045e4f17f322ece448debeb431fa823 100644 (file)
@@ -3885,12 +3885,6 @@ void si_shader_dump(struct si_screen *sscreen,
        si_shader_dump_stats(sscreen, conf, binary->code_size, debug, processor);
 }
 
-void si_shader_binary_read(struct radeon_shader_binary *binary,
-                          struct si_shader_config *conf)
-{
-       si_shader_binary_read_config(binary, conf, 0);
-}
-
 int si_compile_llvm(struct si_screen *sscreen,
                    struct radeon_shader_binary *binary,
                    struct si_shader_config *conf,
@@ -3917,7 +3911,7 @@ int si_compile_llvm(struct si_screen *sscreen,
                        return r;
        }
 
-       si_shader_binary_read(binary, conf);
+       si_shader_binary_read_config(binary, conf, 0);
        si_shader_dump(sscreen, binary, conf, debug, processor);
 
        FREE(binary->config);
index 51dfcd09e9e8aedc468aa926223c083f36b8ea70..712bcd9075d4009ac99a728a66eb1f5945e42c0f 100644 (file)
@@ -344,8 +344,6 @@ void si_shader_destroy(struct si_shader *shader);
 void si_shader_destroy_binary(struct radeon_shader_binary *binary);
 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);
-void si_shader_binary_read(struct radeon_shader_binary *binary,
-                          struct si_shader_config *conf);
 void si_shader_dump(struct si_screen *sscreen,
                    struct radeon_shader_binary *binary,
                    struct si_shader_config *conf,