<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 14, 2015 at 1:06 PM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Feb 14, 2015 at 12:51 PM, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> ---<br>
> src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 7 +++++--<br>
> 1 file changed, 5 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
> index da81b61..28a5f64 100644<br>
> --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
> +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
> @@ -1205,8 +1205,11 @@ fs_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr)<br>
> break;<br>
> }<br>
><br>
> - case nir_intrinsic_load_front_face:<br>
> - assert(!"TODO");<br>
> + case nir_intrinsic_load_front_face: {<br>
> + fs_reg *reg = emit_frontfacing_interpolation();<br>
> + emit(MOV(retype(dest, BRW_REGISTER_TYPE_D), *reg));<br>
<br>
</span>Is retyping the destination necessary?<br>
</blockquote></div><br></div><div class="gmail_extra">I think the default is int, so no.<br></div></div>