From 785b22caee28892d9d995a743de1dee5434c9ce1 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 14 Feb 2015 12:09:31 -0800 Subject: [PATCH] i965/nir: Add support for nir_intrinsic_load_front_face Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 3014e3ef1c2..13be83ecbe1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -1206,7 +1206,9 @@ fs_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr) } case nir_intrinsic_load_front_face: - assert(!"TODO"); + emit(MOV(retype(dest, BRW_REGISTER_TYPE_D), + *emit_frontfacing_interpolation())); + break; case nir_intrinsic_load_sample_mask_in: { fs_reg sample_mask_in = nir_system_values[SYSTEM_VALUE_SAMPLE_MASK_IN]; -- 2.30.2