[Mesa-stable] [Mesa-dev] [PATCH] i965/fs/nir: Use emit_math for nir_op_fpow

Jason Ekstrand jason at jlekstrand.net
Fri Feb 27 14:36:56 PST 2015


Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

On Fri, Feb 27, 2015 at 2:19 PM, Ian Romanick <idr at freedesktop.org> wrote:

> From: Ian Romanick <ian.d.romanick at intel.com>
>
> It appears that all the other instructions that need it already use it.
> This one just got missed.
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: "10.5" <mesa-stable at lists.freedesktop.org>
> Cc: Jason Ekstrand <jason.ekstrand at intel.com>
> ---
>  src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 +-
>  1 file changed, 1 insertion(+), 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 388e636..f15d82f 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> @@ -1090,7 +1090,7 @@ fs_visitor::nir_emit_alu(nir_alu_instr *instr)
>        break;
>
>     case nir_op_fpow:
> -      inst = emit(SHADER_OPCODE_POW, result, op[0], op[1]);
> +      inst = emit_math(SHADER_OPCODE_POW, result, op[0], op[1]);
>        inst->saturate = instr->dest.saturate;
>        break;
>
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-stable/attachments/20150227/cdc5c6da/attachment-0001.html>


More information about the mesa-stable mailing list