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>
This commit is contained in:
@@ -212,7 +212,7 @@ nir_const_value_as_int(nir_const_value value, unsigned bit_size)
|
||||
}
|
||||
}
|
||||
|
||||
static inline int64_t
|
||||
static inline uint64_t
|
||||
nir_const_value_as_uint(nir_const_value value, unsigned bit_size)
|
||||
{
|
||||
switch (bit_size) {
|
||||
|
Reference in New Issue
Block a user