Skip to content

vrend: do not overwrite a sampler-object that might be in use

Erik Faye-Lund requested to merge kusma/virglrenderer:srgb-skip-decode into master

When we set the srgb-decode state, we might overwrite another incompatible usage of the same sampler object.

To avoid this, create two sampler-objects, one for the decode-state and one for the skip-decode state.

This fixes the following dEQP-tests on GLES:

  • dEQP-GLES31.functional.srgb_texture_decode.skip_decode.srgba8.conversion_gpu
  • dEQP-GLES31.functional.srgb_texture_decode.skip_decode.srgba8.toggled
  • dEQP-GLES31.functional.srgb_texture_decode.skip_decode.srgba8.multiple_textures

Signed-off-by: Erik Faye-Lund erik.faye-lund@collabora.com

Merge request reports

Loading