radeonsi: remove unrequired param in si_nir_scan_tess_ctrl()
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 18 Dec 2018 01:04:26 +0000 (12:04 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 1 Jan 2019 23:01:15 +0000 (10:01 +1100)
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_shader_nir.c
src/gallium/drivers/radeonsi/si_state_shaders.c

index f71e601574d0f5d341dd851c1aaf3d3830b195e5..cdb57958dd6802a4d8ec994456ab08290e75aeaf 100644 (file)
@@ -708,7 +708,6 @@ const char *si_get_shader_name(const struct si_shader *shader, unsigned processo
 void si_nir_scan_shader(const struct nir_shader *nir,
                        struct tgsi_shader_info *info);
 void si_nir_scan_tess_ctrl(const struct nir_shader *nir,
-                          const struct tgsi_shader_info *info,
                           struct tgsi_tessctrl_info *out);
 void si_lower_nir(struct si_shader_selector *sel);
 
index 0a692277f6426d358dfbcae508b3e778591e5550..bb7c3d71dc07ce08cf175f239f0169e1a6487943 100644 (file)
@@ -278,7 +278,6 @@ static void scan_instruction(struct tgsi_shader_info *info,
 }
 
 void si_nir_scan_tess_ctrl(const struct nir_shader *nir,
-                          const struct tgsi_shader_info *info,
                           struct tgsi_tessctrl_info *out)
 {
        memset(out, 0, sizeof(*out));
index f751906c6d6a90c099e1002a3137a6ab9cb80dd9..2adae673808b9afced1e73e1ef764a6697b3854a 100644 (file)
@@ -2238,7 +2238,7 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
                sel->nir = state->ir.nir;
 
                si_nir_scan_shader(sel->nir, &sel->info);
-               si_nir_scan_tess_ctrl(sel->nir, &sel->info, &sel->tcs_info);
+               si_nir_scan_tess_ctrl(sel->nir, &sel->tcs_info);
 
                si_lower_nir(sel);
        }