gallium/llvmpipe: Fix compiler warnings about ddx/ddy/ddmax.
authorEric Anholt <eric@anholt.net>
Sat, 10 Feb 2018 10:24:14 +0000 (10:24 +0000)
committerEric Anholt <eric@anholt.net>
Mon, 12 Feb 2018 20:48:18 +0000 (20:48 +0000)
commit7a83be4b28953c9dfc609ad084f57e671310661a
tree98c1aba062685702e98348805c32b2b4c6f7615b
parentbd87bd178ce59b46a875f4bb0aa2332ea03bb735
gallium/llvmpipe: Fix compiler warnings about ddx/ddy/ddmax.

My gcc doesn't figure out that dims >= 1 (seems reasonable), and doesn't
notice that ddmax is used from the same no_rho_opt as its initialization.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_sample.c