summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-02-14 12:09:31 -0800
committerJason Ekstrand <[email protected]>2015-02-14 13:47:16 -0800
commit785b22caee28892d9d995a743de1dee5434c9ce1 (patch)
tree4b672301ca7a89c35b7d0c1e0cecb8263b9d8a0c /src
parent929f43851e669742081a17f85025efcb91189fbe (diff)
i965/nir: Add support for nir_intrinsic_load_front_face
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp4
1 files changed, 3 insertions, 1 deletions
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];