freedreno/ir3: drop unneeded ir3_ra() args
authorRob Clark <robdclark@chromium.org>
Mon, 5 Aug 2019 15:35:10 +0000 (08:35 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 13 Aug 2019 15:08:07 +0000 (08:08 -0700)
Signed-off-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_ra.c

index c0710af6281efcf65e62bcdcb92d607adc0b66b8..cbbb9bb61b0ce9cd9086a010724d0fd5e5990759 100644 (file)
@@ -1081,8 +1081,7 @@ void ir3_a6xx_fixup_atomic_dests(struct ir3 *ir, struct ir3_shader_variant *so);
 
 /* register assignment: */
 struct ir3_ra_reg_set * ir3_ra_alloc_reg_set(struct ir3_compiler *compiler);
-int ir3_ra(struct ir3 *ir3, gl_shader_stage type,
-               bool frag_coord, bool frag_face);
+int ir3_ra(struct ir3 *ir3);
 
 /* legalize: */
 void ir3_legalize(struct ir3 *ir, bool *has_ssbo, bool *need_pixlod, int *max_bary);
index d84c56b01957fd1f7f31bd587cebabda31a31a0e..dca55f33b38e65bafefb95e015f0c41276042d1f 100644 (file)
@@ -2962,7 +2962,7 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler,
                ir3_print(ir);
        }
 
-       ret = ir3_ra(ir, so->type, so->frag_coord, so->frag_face);
+       ret = ir3_ra(ir);
        if (ret) {
                DBG("RA failed!");
                goto out;
index 9e7d3c7db63d26be43ed594d7febb0710190ed8d..980cd62c48b21135417cabcef84370c4a3df9143 100644 (file)
@@ -331,8 +331,6 @@ struct ir3_ra_instr_data {
 /* register-assign context, per-shader */
 struct ir3_ra_ctx {
        struct ir3 *ir;
-       gl_shader_stage type;
-       bool frag_face;
 
        struct ir3_ra_reg_set *set;
        struct ra_graph *g;
@@ -1142,13 +1140,10 @@ retry:
        return 0;
 }
 
-int ir3_ra(struct ir3 *ir, gl_shader_stage type,
-               bool frag_coord, bool frag_face)
+int ir3_ra(struct ir3 *ir)
 {
        struct ir3_ra_ctx ctx = {
                        .ir = ir,
-                       .type = type,
-                       .frag_face = frag_face,
                        .set = ir->compiler->set,
        };
        int ret;