Mesa (main): nir/edgeflags: update outputs written when lowering edge flags.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 11 21:46:31 UTC 2021
Module: Mesa
Branch: main
Commit: eff418fe577f9e775b425d1166fcdf83567e8699
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=eff418fe577f9e775b425d1166fcdf83567e8699
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Jun 8 12:58:18 2021 +1000
nir/edgeflags: update outputs written when lowering edge flags.
In theory you can rerun the info gather pass, but in practice that
doesn't always end well. Be consistent inside this pass and update the
info.
While we're here, change the inputs read to use VERT_BIT_EDGEFLAG.
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11313>
---
src/compiler/nir/nir_lower_passthrough_edgeflags.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir_lower_passthrough_edgeflags.c b/src/compiler/nir/nir_lower_passthrough_edgeflags.c
index 59b02af0aef..addd6bbeb2d 100644
--- a/src/compiler/nir/nir_lower_passthrough_edgeflags.c
+++ b/src/compiler/nir/nir_lower_passthrough_edgeflags.c
@@ -77,11 +77,12 @@ lower_impl(nir_function_impl *impl)
in->data.location = VERT_ATTRIB_EDGEFLAG;
in->data.driver_location = shader->num_inputs++;
- shader->info.inputs_read |= BITFIELD64_BIT(VERT_ATTRIB_EDGEFLAG);
+ shader->info.inputs_read |= VERT_BIT_EDGEFLAG;
out = nir_variable_create(shader, nir_var_shader_out,
glsl_vec4_type(), "edgeflag_out");
out->data.location = VARYING_SLOT_EDGE;
+ shader->info.outputs_written |= VARYING_BIT_EDGE;
def = nir_load_var(&b, in);
nir_store_var(&b, out, def, 0xf);
More information about the mesa-commit
mailing list