[Mesa-dev] [PATCH 06/12] nir: Handle fddy_fine and fddy_coarse in nir_lower_wpos_ytransform.

Rob Clark robdclark at gmail.com
Thu May 19 16:51:36 UTC 2016


On Wed, May 18, 2016 at 6:00 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> These also need flipping!
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Rob Clark <robdclark at gmail.com>

> ---
>  src/compiler/nir/nir_lower_wpos_ytransform.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/compiler/nir/nir_lower_wpos_ytransform.c b/src/compiler/nir/nir_lower_wpos_ytransform.c
> index 7741df2..36e25b9 100644
> --- a/src/compiler/nir/nir_lower_wpos_ytransform.c
> +++ b/src/compiler/nir/nir_lower_wpos_ytransform.c
> @@ -297,7 +297,9 @@ lower_wpos_ytransform_block(lower_wpos_ytransform_state *state, nir_block *block
>           }
>        } else if (instr->type == nir_instr_type_alu) {
>           nir_alu_instr *alu = nir_instr_as_alu(instr);
> -         if (alu->op == nir_op_fddy)
> +         if (alu->op == nir_op_fddy ||
> +             alu->op == nir_op_fddy_fine ||
> +             alu->op == nir_op_fddy_coarse)
>              lower_fddy(state, alu);
>        }
>     }
> --
> 2.8.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list