intel/isl: Move iris's pipe-to-isl format function to isl.
authorEric Anholt <eric@anholt.net>
Fri, 10 Jan 2020 22:46:37 +0000 (14:46 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 5 Feb 2020 18:31:09 +0000 (10:31 -0800)
commit5bea0cf77956d748ea929e12d12756692f04a33f
tree9471cee63a78af16b263bee0b5ee602b9c39e153
parentbb615e5fe3f68d0dc8210e6b09ced6913b433103
intel/isl: Move iris's pipe-to-isl format function to isl.

This will get reused in the shader compiler once we switch it over to pipe
formats instead of GL enums.  We can't easily deduplicate i965's
mesa-to-isl mapping because of cases like A32_FLOAT that are mapped
differently.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3355>
src/gallium/drivers/iris/iris_formats.c
src/intel/isl/isl.h
src/intel/isl/isl_format.c