diff options
author | Jose Maria Casanova Crespo <[email protected]> | 2018-07-09 02:00:06 +0200 |
---|---|---|
committer | Jose Maria Casanova Crespo <[email protected]> | 2018-07-10 00:14:49 +0200 |
commit | 030472c1f04d393514df94d35fb9c1de499ff8cf (patch) | |
tree | 830c9819be93c6b003ebda723f159741835c2986 /src/intel/compiler/brw_nir.c | |
parent | 232ed8980217dd65ab0925df28156f565b94b2e5 (diff) |
i965: Support for 8-bit base types in helper functions
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_nir.c')
-rw-r--r-- | src/intel/compiler/brw_nir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 74b39ad80a2..5990427b731 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -887,6 +887,10 @@ brw_type_for_nir_type(const struct gen_device_info *devinfo, nir_alu_type type) return BRW_REGISTER_TYPE_W; case nir_type_uint16: return BRW_REGISTER_TYPE_UW; + case nir_type_int8: + return BRW_REGISTER_TYPE_B; + case nir_type_uint8: + return BRW_REGISTER_TYPE_UB; default: unreachable("unknown type"); } |