nir: get_base_type() should return enum type
authorRob Clark <robdclark@chromium.org>
Wed, 3 Jun 2020 19:07:52 +0000 (12:07 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 21:24:12 +0000 (21:24 +0000)
commit924bfb65604238439374c314bd02ff2b99441e21
treea35c12a31f0fe8718d91727ad699cdbcb433fe0f
parentdce7722ef89100e5dea337064a9d6631bb18822a
nir: get_base_type() should return enum type

Needed by the next patch, for c++ code which is more strict about
conversions between integers and enums.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5318>
src/compiler/nir/nir.h