meta: Refactor texture format translation
[mesa.git] / src / mesa / main / glformats.h
index 763307f259316201c7b0a0ae1f585f27a492e447..5c9d8263ed153ff89bbe4901f6e4df00d20c947b 100644 (file)
@@ -148,6 +148,10 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat );
 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);