mesa/st: add ignore_srgb_decode param to st_convert_sampler
same as st_get_texture_sampler_view_from_stobj, no functional changes Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17687>
This commit is contained in:

committed by
Marge Bot

parent
28d033b34f
commit
d1e33fa345
@@ -61,7 +61,8 @@ st_convert_sampler(const struct st_context *st,
|
||||
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));
|
||||
|
||||
@@ -163,7 +164,7 @@ st_convert_sampler_from_unit(const struct st_context *st,
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user