extern uint32_t
_mesa_format_from_format_and_type(GLenum format, GLenum type);
+extern uint32_t
+_mesa_tex_format_from_format_and_type(const struct gl_context *ctx,
+ GLenum gl_format, GLenum type);
+
extern bool
_mesa_is_es3_color_renderable(GLenum internal_format);