compiler: int8/uint8 fixes
authorRob Clark <robdclark@gmail.com>
Sun, 15 Apr 2018 16:02:37 +0000 (12:02 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 17 Apr 2018 00:41:18 +0000 (20:41 -0400)
commit2a55344e7d2e87a31593e6f0c8432f91159564a4
tree51ddb957ae772c187b5b80fa51d7f15efbe1b18c
parent60299e9abe8513b36fe7979fbf36a99e4070e8d1
compiler: int8/uint8 fixes

A couple spots were missed for handling of the new INT8/UINT8 base type.

Also de-duplicate get_base_type().. get_scalar_type() had nearly the
same switch statement, with the exception that anything with base_type
that was not scalar would return error_type.  So just handle that one
special case in get_scalar_type().

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/glsl_types.cpp