isl: Add isl_format_layout::uniform_channel_type
authorChad Versace <chad@kiwitree.net>
Fri, 16 Oct 2020 18:09:09 +0000 (11:09 -0700)
committerChad Versace <chad@kiwitree.net>
Tue, 17 Nov 2020 18:36:44 +0000 (10:36 -0800)
commit486ae7c655e86d3f1b08f9356b11fe4eaee707bb
tree509c1477a67e9d88833ae12070adc0e36dba1947
parentf665bae4eb34fa2d05f6e9ccdd90245badd12eaf
isl: Add isl_format_layout::uniform_channel_type

If each format channel has the same base type (such unorm), then that
is the format's "uniform channel type".

Calculating the field at buildtime is probably better than looping over
all channels at runtime each time we wish to query it.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/isl/gen_format_layout.py
src/intel/isl/isl.h