if (!st_finalize_texture(ctx, pipe, texObj, 0))
return 0;
- st_convert_sampler(st, texObj, sampObj, 0, &sampler, false);
+ st_convert_sampler(st, texObj, sampObj, 0, &sampler, false, false);
/* TODO: Clarify the interaction of ARB_bindless_texture and EXT_texture_sRGB_decode */
view = st_get_texture_sampler_view_from_stobj(st, texObj, sampObj, 0,
const struct gl_sampler_object *msamp,
float tex_unit_lod_bias,
struct pipe_sampler_state *sampler,
- bool seamless_cube_map)
+ bool seamless_cube_map,
+ bool ignore_srgb_decode)
{
memcpy(sampler, &msamp->Attrib.state, sizeof(*sampler));
msamp = _mesa_get_samplerobj(ctx, texUnit);
st_convert_sampler(st, texobj, msamp, ctx->Texture.Unit[texUnit].LodBiasQuantized,
- sampler, ctx->Texture.CubeMapSeamless);
+ sampler, ctx->Texture.CubeMapSeamless, true);
}
const struct gl_sampler_object *msamp,
float tex_unit_lod_bias,
struct pipe_sampler_state *sampler,
- bool seamless_cube_map);
+ bool seamless_cube_map,
+ bool ignore_srgb_decode);
void
st_convert_sampler_from_unit(const struct st_context *st,