gallivm: fix pow(0, y) to be 0
authorDave Airlie <airlied@redhat.com>
Tue, 29 Sep 2020 18:49:43 +0000 (04:49 +1000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 29 Sep 2020 21:51:22 +0000 (21:51 +0000)
commitd12cdc9374dc30fa032ea309cad8e921d92ad0e5
tree9cc70c299e85fe5f912e12bf24f4d9f4a1616765
parent89a1a3e9d60b98dca132c12b0952e0201d28bfc6
gallivm: fix pow(0, y) to be 0

The log2(0) was producing bad results.

Fixes:
piglit pow tests on llvmpipe.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6907>
.gitlab-ci/piglit/quick_shader.txt
.gitlab-ci/traces-llvmpipe.yml
src/gallium/auxiliary/gallivm/lp_bld_arit.c