nir/search: fix the PoT helpers
authorRob Clark <robdclark@chromium.org>
Wed, 25 Sep 2019 18:59:49 +0000 (11:59 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 18 Oct 2019 22:08:54 +0000 (15:08 -0700)
commitad8167c1e0b8c522f3df774006f1824bcba8bf11
treeaa3ba8cc18a5c7d3c0aedb86f2f94891332dd151
parentf30c256ec05618fb40dccbd94a3434b2f63db478
nir/search: fix the PoT helpers

Otherwise, if the base type is (for example) uint32, we would
incorrectly think that PoT optimizations could not apply.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jason Ekstsrand <jason@jleksrand.net>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_search_helpers.h