mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
mesa: add _mesa_is_mipmap_filter() helper
Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
ff005bdb7c
commit
b219b2c310
1 changed files with 9 additions and 0 deletions
|
|
@ -37,6 +37,15 @@ _mesa_get_samplerobj(struct gl_context *ctx, GLuint unit)
|
|||
return &ctx->Texture.Unit[unit]._Current->Sampler;
|
||||
}
|
||||
|
||||
|
||||
/** Does the given filter state do mipmap filtering? */
|
||||
static inline GLboolean
|
||||
_mesa_is_mipmap_filter(const struct gl_sampler_object *samp)
|
||||
{
|
||||
return samp->MinFilter != GL_NEAREST && samp->MinFilter != GL_LINEAR;
|
||||
}
|
||||
|
||||
|
||||
extern void
|
||||
_mesa_reference_sampler_object_(struct gl_context *ctx,
|
||||
struct gl_sampler_object **ptr,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue