mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 08:28:16 +02:00
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:
parent
a56aa9547b
commit
ababf12b04
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue