summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-09-26 09:22:51 -0700
committerEric Anholt <[email protected]>2018-10-30 10:46:52 -0700
commitcc54e1acf91dfefb17a7a43166aff9d0d8532879 (patch)
treeba7c8b77f184e70a747349f127cef39949f90c12 /src/gallium/drivers/v3d
parentc152c79d5ee59cc8b3936e5b31f8b4203327bc2e (diff)
v3d: Use nir_remove_unused_io_vars to handle binner shader output DCE
We were doing this late after nir_lower_io, but we can just reuse the core code. By doing it at this stage, we won't even set up the VS attributes as inputs, reducing our VPM size.
Diffstat (limited to 'src/gallium/drivers/v3d')
-rw-r--r--src/gallium/drivers/v3d/v3d_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_program.c b/src/gallium/drivers/v3d/v3d_program.c
index 17ded7571c4..1dceade950a 100644
--- a/src/gallium/drivers/v3d/v3d_program.c
+++ b/src/gallium/drivers/v3d/v3d_program.c
@@ -212,7 +212,7 @@ v3d_shader_state_create(struct pipe_context *pctx,
nir_variable_mode lower_mode = nir_var_all & ~nir_var_uniform;
if (s->info.stage == MESA_SHADER_VERTEX)
- lower_mode &= ~nir_var_shader_in;
+ lower_mode &= ~(nir_var_shader_in | nir_var_shader_out);
NIR_PASS_V(s, nir_lower_io, lower_mode,
type_size,
(nir_lower_io_options)0);