From 264d8a676645da829495bafbc477dea5baa52fa8 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Wed, 26 Feb 2025 19:13:56 +0100 Subject: [PATCH] ir3: Set need_full_quad depending on info.fs.require_full_quads The info from NIR is more granular, so that we don't have to enable full quad for coarse derivatives. Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/ir3/ir3_compiler_nir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index d4e227ebe9f..a1f7858176f 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -5775,6 +5775,10 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler, if (so->type == MESA_SHADER_FRAGMENT && ctx->s->info.fs.needs_quad_helper_invocations) { so->need_pixlod = true; + } + + if (so->type == MESA_SHADER_FRAGMENT && + ctx->s->info.fs.require_full_quads) { so->need_full_quad = true; }