[Mesa-dev] [PATCH 1/3] i965/nir: Add support for nir_intrinsic_load_front_face
Matt Turner
mattst88 at gmail.com
Sat Feb 14 13:06:10 PST 2015
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?
More information about the mesa-dev
mailing list