From 991d54610215786fd4937db24391e7cd5b567919 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 19 Nov 2021 15:30:08 -0600 Subject: [PATCH] intel/compiler: Document wm_prog_key::persample_interp Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_compiler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index b59b84e558d..06fea096d75 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -482,7 +482,17 @@ struct brw_wm_prog_key { bool alpha_test_replicate_alpha:1; bool alpha_to_coverage:1; bool clamp_fragment_color:1; + + /** Whether or inputs are interpolated at sample rate by default + * + * This corresponds to the sample shading API bit in Vulkan or OpenGL which + * controls how inputs with no interpolation qualifier are interpolated. + * This is distinct from the way that using gl_SampleID or similar requires + * us to run per-sample. Even when running per-sample due to gl_SampleID, + * we may still interpolate unqualified inputs at the pixel center. + */ bool persample_interp:1; + bool multisample_fbo:1; enum brw_wm_aa_enable line_aa:2; bool force_dual_color_blend:1;