Mesa (master): anv: Use BRW_BARYCENTRIC_NONPERSPECTIVE_BITS from common header.

Kenneth Graunke kwg at kemper.freedesktop.org
Thu May 4 00:01:45 UTC 2017


Module: Mesa
Branch: master
Commit: 2e5d65ccb620da46be66a38b6dbf0cd58cab3344
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e5d65ccb620da46be66a38b6dbf0cd58cab3344

Author: Rafael Antognolli <rafael.antognolli at intel.com>
Date:   Mon Apr 24 11:25:07 2017 -0700

anv: Use BRW_BARYCENTRIC_NONPERSPECTIVE_BITS from common header.

In a previous patch some enums were split out from brw_eu_defines.h, so
they could be used by genxml based code. anv can also benefit from this.

Signed-off-by: Rafael Antognolli <rafael.antognolli at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/intel/vulkan/genX_pipeline.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index a4d318ec3e..55db5339d6 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1062,7 +1062,8 @@ emit_3dstate_clip(struct anv_pipeline *pipeline,
       }
 #else
       clip.NonPerspectiveBarycentricEnable = wm_prog_data ?
-         (wm_prog_data->barycentric_interp_modes & 0x38) != 0 : 0;
+         (wm_prog_data->barycentric_interp_modes &
+          BRW_BARYCENTRIC_NONPERSPECTIVE_BITS) != 0 : 0;
 #endif
    }
 }




More information about the mesa-commit mailing list