mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mesa: Add _mesa_set_sampler_srgb_decode method
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
ecba76d3c0
commit
4cf5c85ec7
2 changed files with 14 additions and 0 deletions
|
|
@ -750,6 +750,16 @@ set_sampler_cube_map_seamless(struct gl_context *ctx,
|
|||
return GL_TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
_mesa_set_sampler_srgb_decode(struct gl_context *ctx,
|
||||
struct gl_sampler_object *samp, GLenum param)
|
||||
{
|
||||
assert(param == GL_DECODE_EXT || param == GL_SKIP_DECODE_EXT);
|
||||
|
||||
flush(ctx);
|
||||
samp->sRGBDecode = param;
|
||||
}
|
||||
|
||||
static GLuint
|
||||
set_sampler_srgb_decode(struct gl_context *ctx,
|
||||
struct gl_sampler_object *samp, GLenum param)
|
||||
|
|
|
|||
|
|
@ -89,6 +89,10 @@ _mesa_set_sampler_filters(struct gl_context *ctx,
|
|||
struct gl_sampler_object *samp,
|
||||
GLenum min_filter, GLenum mag_filter);
|
||||
|
||||
extern void
|
||||
_mesa_set_sampler_srgb_decode(struct gl_context *ctx,
|
||||
struct gl_sampler_object *samp, GLenum param);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_GenSamplers(GLsizei count, GLuint *samplers);
|
||||
void GLAPIENTRY
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue