From 7859b531c264723e0d195a41cd5cb979b28fd526 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 7 Jan 2023 14:45:59 -0500 Subject: [PATCH] agx: Use BITFIELD64_BIT for outputs_written Fix by inspection. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 1c262836f52..9c7a41624b4 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1999,7 +1999,7 @@ agx_compile_shader_nir(nir_shader *nir, struct agx_shader_key *key, /* Report a canonical depth layout */ enum gl_frag_depth_layout layout = nir->info.fs.depth_layout; - if (!(nir->info.outputs_written & BITFIELD_BIT(FRAG_RESULT_DEPTH))) + if (!(nir->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_DEPTH))) out->depth_layout = FRAG_DEPTH_LAYOUT_UNCHANGED; else if (layout == FRAG_DEPTH_LAYOUT_NONE) out->depth_layout = FRAG_DEPTH_LAYOUT_ANY;