[Mesa-dev] [PATCH v2 1/3] i965/nir: Add support for nir_intrinsic_load_front_face
Jason Ekstrand
jason at jlekstrand.net
Sat Feb 14 13:31:43 PST 2015
On Sat, Feb 14, 2015 at 1:26 PM, Jason Ekstrand <jason at jlekstrand.net>
wrote:
> ---
> src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> index da81b61..9d5079c 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> @@ -1206,7 +1206,8 @@ fs_visitor::nir_emit_intrinsic(nir_intrinsic_instr
> *instr)
> }
>
> case nir_intrinsic_load_front_face:
> - assert(!"TODO");
> + emit(MOV(dest, *emit_frontfacing_interpolation()));
> + break;
>
Actually, we need the retype. Aparently, it defaults to float so yeah...
> case nir_intrinsic_load_sample_mask_in: {
> fs_reg sample_mask_in =
> nir_system_values[SYSTEM_VALUE_SAMPLE_MASK_IN];
> --
> 2.2.2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150214/e61beef9/attachment.html>
More information about the mesa-dev
mailing list