intel/compiler: Document and assert some aspects of 8-bit integer lowering
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 22 Jan 2021 22:54:02 +0000 (14:54 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 18 Aug 2021 22:03:37 +0000 (22:03 +0000)
commitf9665040f19d826f7932a2996ac46c69aea7e624
treee2aa06b3ec7bdda34fa00b0224ca1b8a60d1e559
parentfee4f7ef43250db0fa9bf6f89c0abc5306541ccd
intel/compiler: Document and assert some aspects of 8-bit integer lowering

In the vec4 compiler, 8-bit types should never exist.

In the scalar compiler, 8-bit types should only ever be able to exist on
Gfx ver 8 and 9.

Some instructions are handled in non-obvious ways.

Hopefully this will save the next person some time.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9025>
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_nir.c
src/intel/compiler/brw_vec4_nir.cpp