jay: add a hack until we munge barycentrics dynamically

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41688>
This commit is contained in:
Kenneth Graunke 2026-05-15 03:22:02 -07:00 committed by Marge Bot
parent a56aa9547b
commit ababf12b04

View file

@ -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;