mesa/glformats: Undo code changes from _mesa_base_tex_format() move
The refactoring commit, c6bf1cd1, accidentally reverted cd49b97a and 99b1f475. These changes caused more code to be added to the function and removed the existing support for ASTC. This patch reverts those modifications. v2. Actually include ASTC support again. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92221 Cc: "11.0" <mesa-stable@lists.freedesktop.org> Signed-off-by:Nanley Chery <nanley.g.chery@intel.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit f1147a23) [Emil Velikov] - Drop the KHR_texture_compression_astc_ldr check - Add texcompress.h include. Signed-off-by:
Emil Velikov <emil.velikov@collabora.co.uk>