[Mesa-dev] [PATCH 2/4] glsl: add new IR lower pass for sqrt(abs()) and inversesqrt(abs())

Kenneth Graunke kenneth at whitecape.org
Fri Mar 17 00:17:42 UTC 2017


On Thursday, March 16, 2017 5:06:55 PM PDT Samuel Pitoiset wrote:
> Looks easier to do that at lowering time and mostly because
> builtin_builder is a singleton class without access to any
> states/constants.
> 
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/compiler/Makefile.sources       |  1 +
>  src/compiler/glsl/ir_optimization.h |  2 +
>  src/compiler/glsl/lower_sqrt.cpp    | 77 +++++++++++++++++++++++++++++++++++++
>  src/compiler/glsl/test_optpass.cpp  |  2 +
>  4 files changed, 82 insertions(+)
>  create mode 100644 src/compiler/glsl/lower_sqrt.cpp

Why not put this in lower_instructions.cpp?  That's sort of the
catch-all pass for tiny bits of expression lowering.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170316/d4770ec1/attachment.sig>


More information about the mesa-dev mailing list