blitter: Don't try to disable sRGB linearization for MSAA textures

This is not supported and will issue a warning.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gert Wollny 6 years ago
parent b9e475bbff
commit 596e794616
  1. 5
      src/vrend_blitter.c

@ -805,8 +805,9 @@ void vrend_renderer_blit_gl(struct vrend_context *ctx,
} }
/* Just make sure that no stale state disabled decoding */ /* Just make sure that no stale state disabled decoding */
if (has_texture_srgb_decode && util_format_is_srgb(src_res->base.format)) if (has_texture_srgb_decode && util_format_is_srgb(info->src.format) &&
glTexParameteri(src_res->target, GL_TEXTURE_SRGB_DECODE_EXT, GL_DECODE_EXT); src_res->base.nr_samples < 2)
glTexParameteri(src_res->target, GL_TEXTURE_SRGB_DECODE_EXT, GL_DECODE_EXT);
if (src_res->base.nr_samples <= 1) { if (src_res->base.nr_samples <= 1) {
glTexParameteri(src_res->target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(src_res->target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);

Loading…
Cancel
Save