Revert "virgl: fix BGRA emulation artifacts during window resize"
This reverts commitaccc222217
. The change inaccc2222
caused a regression in gameplay for a few valve games such as Portal 2 where textures were rendered darker than expected. Reverting to restore normal gameplay at the smaller cost of re-introducing the issue described in !8119. Fixes:accc2222
("virgl: fix BGRA emulation artifacts during window resize") Signed-off-by: Ryan Neph <ryanneph@google.com> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8664>
This commit is contained in:
parent
9052819ebb
commit
6fb66d18be
|
@ -874,9 +874,7 @@ virgl_create_screen(struct virgl_winsys *vws, const struct pipe_screen_config *c
|
|||
fixup_formats(&screen->caps.caps, &screen->caps.caps.v2.scanout);
|
||||
|
||||
union virgl_caps *caps = &screen->caps.caps;
|
||||
bool may_emulate_bgra = (caps->v2.capability_bits & VIRGL_CAP_APP_TWEAK_SUPPORT);
|
||||
screen->tweak_gles_emulate_bgra &= !virgl_format_check_bitmask(
|
||||
PIPE_FORMAT_B8G8R8A8_SRGB, caps->v1.render.bitmask, may_emulate_bgra);
|
||||
screen->tweak_gles_emulate_bgra &= !virgl_format_check_bitmask(PIPE_FORMAT_B8G8R8A8_SRGB, caps->v1.render.bitmask, false);
|
||||
screen->refcnt = 1;
|
||||
|
||||
slab_create_parent(&screen->transfer_pool, sizeof(struct virgl_transfer), 16);
|
||||
|
|
Loading…
Reference in New Issue