freedreno/ir3: Stop initializing regid of so->outputs during setup.
authorEric Anholt <eric@anholt.net>
Wed, 22 Apr 2020 19:20:19 +0000 (12:20 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 16:26:32 +0000 (16:26 +0000)
It's unused and overwritten by ir3_compile_shader_nir().

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4562>

src/freedreno/ir3/ir3_compiler_nir.c

index 184595bf9885fbe954cf97fb9a11363db3872aa9..812ce7f9489cfeefdef82ece49233208b173af34 100644 (file)
@@ -3195,7 +3195,6 @@ setup_output(struct ir3_context *ctx, nir_variable *out)
        compile_assert(ctx, n < ARRAY_SIZE(so->outputs));
 
        so->outputs[n].slot = slot;
-       so->outputs[n].regid = regid(n, 0);
        so->outputs_count = MAX2(so->outputs_count, n + 1);
 
        for (int i = 0; i < ncomp; i++) {