From ababf12b04dfd2bca467b372b54883c60bd6c786 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 15 May 2026 03:22:02 -0700 Subject: [PATCH] jay: add a hack until we munge barycentrics dynamically Signed-off-by: Alyssa Rosenzweig Part-of: --- src/intel/compiler/jay/jay_prog_data.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/intel/compiler/jay/jay_prog_data.c b/src/intel/compiler/jay/jay_prog_data.c index b8e40955eff..e55c9c6209c 100644 --- a/src/intel/compiler/jay/jay_prog_data.c +++ b/src/intel/compiler/jay/jay_prog_data.c @@ -23,10 +23,12 @@ brw_barycentric_mode(const struct brw_fs_prog_key *key, case nir_intrinsic_load_barycentric_at_offset: /* When per sample interpolation is dynamic, assume sample interpolation. * We'll dynamically remap things so that the FS payload is not affected. + * + * TODO: Implement this mechanism properly, this is a hack for now. */ - bary = key->persample_interp == INTEL_SOMETIMES ? - INTEL_BARYCENTRIC_PERSPECTIVE_SAMPLE : - INTEL_BARYCENTRIC_PERSPECTIVE_PIXEL; + bary = // key->persample_interp == INTEL_SOMETIMES ? + // INTEL_BARYCENTRIC_PERSPECTIVE_SAMPLE : + INTEL_BARYCENTRIC_PERSPECTIVE_PIXEL; break; case nir_intrinsic_load_barycentric_centroid: bary = INTEL_BARYCENTRIC_PERSPECTIVE_CENTROID;