anv: Use BRW_BARYCENTRIC_NONPERSPECTIVE_BITS from common header.
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 24 Apr 2017 18:25:07 +0000 (11:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 May 2017 23:58:55 +0000 (16:58 -0700)
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@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/genX_pipeline.c

index a4d318ec3e9bb08d38e509e12bce8619e8491d43..55db5339d67e8691a730cc25be75ed41cbc2e5db 100644 (file)
@@ -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
    }
 }