summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-08-24 19:09:57 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-08-25 19:18:24 -0700
commit93bfa1d7a2e70a72a01c48a04c208845c22f9376 (patch)
treee15311ebb02be905f41d94d09afb5e5c1ac5ca65 /src/gallium/drivers/freedreno/ir3
parent8479b03c5826f32355775d865d99d69c829e65bb (diff)
downloadexternal_mesa3d-93bfa1d7a2e70a72a01c48a04c208845c22f9376.tar.gz
external_mesa3d-93bfa1d7a2e70a72a01c48a04c208845c22f9376.tar.bz2
external_mesa3d-93bfa1d7a2e70a72a01c48a04c208845c22f9376.zip
nir: Change nir_shader_get_entrypoint to return an impl.
Jason suggested adding an assert(function->impl) here. All callers of this function actually want ->impl, so I decided just to change the API. We also change the nir_lower_io_to_temporaries API here. All but one caller passed nir_shader_get_entrypoint(), and with the previous commit, it now uses a nir_function_impl internally. Folding this change in avoids the need to change it and change it back. v2: Fix one call I missed in ir3_compiler (caught by Eric). Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
index 22f5525c6a..b1b9d6b973 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
@@ -2151,7 +2151,7 @@ static void
emit_instructions(struct ir3_compile *ctx)
{
unsigned ninputs, noutputs;
- nir_function_impl *fxn = nir_shader_get_entrypoint(ctx->s)->impl;
+ nir_function_impl *fxn = nir_shader_get_entrypoint(ctx->s);
ninputs = (max_drvloc(&ctx->s->inputs) + 1) * 4;
noutputs = (max_drvloc(&ctx->s->outputs) + 1) * 4;