From 8f01fa1fb3bbb94648ab3955860933aefbcb191a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 15 Apr 2020 12:07:16 -0700 Subject: [PATCH] freedreno/ir3: Set the FS .msaa flag to true during precompiles. If you're going out of your way to do per-sample interpolation, you are almost surely going to be doing so to an MSAA framebuffer. Should reduce recompiles with MSAA enabled. Part-of: --- src/gallium/drivers/freedreno/ir3/ir3_gallium.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c index f5e93495d20..3507be9bc2e 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c @@ -152,6 +152,7 @@ ir3_shader_create(struct ir3_compiler *compiler, */ struct ir3_shader_key key = { .tessellation = IR3_TESS_NONE, + .msaa = true, }; switch (nir->info.stage) { -- 2.30.2