Skip to content
Snippets Groups Projects
Commit dc2f94bc authored by Anuj Phogat's avatar Anuj Phogat
Browse files

i965: Ignore 'centroid' interpolation qualifier in case of persample shading

I missed this change in commit f5cfb4ae. It fixes the incorrect
rendering caused in Dolphin Emulator.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73915



Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: default avatarAnuj Phogat <anuj.phogat@gmail.com>
Tested-by: default avatarMarkus Wick <wickmarkus@web.de>
Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
parent 10dc994e
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,8 @@ brw_compute_barycentric_interp_modes(struct brw_context *brw,
for (attr = 0; attr < VARYING_SLOT_MAX; ++attr) {
enum glsl_interp_qualifier interp_qualifier =
fprog->InterpQualifier[attr];
bool is_centroid = fprog->IsCentroid & BITFIELD64_BIT(attr);
bool is_centroid = (fprog->IsCentroid & BITFIELD64_BIT(attr)) &&
!persample_shading;
bool is_sample = (fprog->IsSample & BITFIELD64_BIT(attr)) ||
persample_shading;
bool is_gl_Color = attr == VARYING_SLOT_COL0 || attr == VARYING_SLOT_COL1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment