diff options
author | Jason Ekstrand <[email protected]> | 2020-06-10 17:42:15 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-06 19:54:30 +0000 |
commit | 36a90468486252cb35cdea3d67ace991f1fb4bd0 (patch) | |
tree | 8aa478f2a494032e2b4926c5ab12a71f9b58f5c3 /src/freedreno | |
parent | fc944428bfb5d4c6709b51067a1010051cf8e49e (diff) |
freedreno: Only call nir_lower_io on shader_in/out
Gallium drivers should never see nir_var_uniform because gallium lowers
regular uniforms to a UBO. No GL driver should ever see either
nir_var_mem_shared because that's lowered in GLSL IR.
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5418>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/ir3/ir3_nir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index 5c15f5b8dfc..5707cbcb66f 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -278,8 +278,8 @@ ir3_finalize_nir(struct ir3_compiler *compiler, nir_shader *s) void ir3_nir_post_finalize(struct ir3_compiler *compiler, nir_shader *s) { - NIR_PASS_V(s, nir_lower_io, nir_var_all, ir3_glsl_type_size, - (nir_lower_io_options)0); + NIR_PASS_V(s, nir_lower_io, nir_var_shader_in | nir_var_shader_out, + ir3_glsl_type_size, (nir_lower_io_options)0); if (s->info.stage == MESA_SHADER_FRAGMENT) { /* NOTE: lower load_barycentric_at_sample first, since it |