meta: Make _mesa_meta_check_generate_mipmap_fallback static.
This was only ever used in one place; there's no reason for it to be non-static. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
70e7905608
commit
092b7edb3f
|
@ -410,10 +410,6 @@ _mesa_meta_Bitmap(struct gl_context *ctx,
|
|||
const struct gl_pixelstore_attrib *unpack,
|
||||
const GLubyte *bitmap);
|
||||
|
||||
extern GLboolean
|
||||
_mesa_meta_check_generate_mipmap_fallback(struct gl_context *ctx, GLenum target,
|
||||
struct gl_texture_object *texObj);
|
||||
|
||||
extern void
|
||||
_mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target,
|
||||
struct gl_texture_object *texObj);
|
||||
|
|
|
@ -50,9 +50,9 @@
|
|||
* images are mapped.
|
||||
* \return GL_TRUE if a fallback is needed, GL_FALSE otherwise
|
||||
*/
|
||||
GLboolean
|
||||
_mesa_meta_check_generate_mipmap_fallback(struct gl_context *ctx, GLenum target,
|
||||
struct gl_texture_object *texObj)
|
||||
static GLboolean
|
||||
fallback_required(struct gl_context *ctx, GLenum target,
|
||||
struct gl_texture_object *texObj)
|
||||
{
|
||||
const GLuint fboSave = ctx->DrawBuffer->Name;
|
||||
struct gen_mipmap_state *mipmap = &ctx->Meta->Mipmap;
|
||||
|
@ -175,7 +175,7 @@ _mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target,
|
|||
const GLint slice = 0;
|
||||
GLuint samplerSave;
|
||||
|
||||
if (_mesa_meta_check_generate_mipmap_fallback(ctx, target, texObj)) {
|
||||
if (fallback_required(ctx, target, texObj)) {
|
||||
_mesa_generate_mipmap(ctx, target, texObj);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue