From: Jason Ekstrand Date: Sat, 14 Feb 2015 20:09:31 +0000 (-0800) Subject: i965/nir: Add support for nir_intrinsic_load_front_face X-Git-Tag: upstream/17.1.0~20811 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=785b22caee28892d9d995a743de1dee5434c9ce1;p=platform%2Fupstream%2Fmesa.git i965/nir: Add support for nir_intrinsic_load_front_face Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 3014e3e..13be83e 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];