[Mesa-dev] [PATCH 1/3] i965/nir: Add support for nir_intrinsic_load_front_face

Jason Ekstrand jason at jlekstrand.net
Sat Feb 14 13:13:38 PST 2015


On Sat, Feb 14, 2015 at 1:06 PM, Matt Turner <mattst88 at gmail.com> wrote:

> On Sat, Feb 14, 2015 at 12:51 PM, Jason Ekstrand <jason at jlekstrand.net>
> wrote:
> > ---
> >  src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> > index da81b61..28a5f64 100644
> > --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> > +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> > @@ -1205,8 +1205,11 @@
> fs_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr)
> >        break;
> >     }
> >
> > -   case nir_intrinsic_load_front_face:
> > -      assert(!"TODO");
> > +   case nir_intrinsic_load_front_face: {
> > +      fs_reg *reg = emit_frontfacing_interpolation();
> > +      emit(MOV(retype(dest, BRW_REGISTER_TYPE_D), *reg));
>
> Is retyping the destination necessary?
>

I think the default is int, so no.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150214/c98d9aaf/attachment.html>


More information about the mesa-dev mailing list