mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 06:38:09 +02:00
Revert "virgl: fix BGRA emulation artifacts during window resize"
This reverts commitaccc222217. The change inaccc2222caused 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> (cherry picked from commit6fb66d18be)
This commit is contained in:
parent
54f2af0770
commit
e721f4c8f1
2 changed files with 2 additions and 4 deletions
|
|
@ -481,7 +481,7 @@
|
|||
"description": "Revert \"virgl: fix BGRA emulation artifacts during window resize\"",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "accc2222174a90fd24ee56ce751feb6022ecc0c7"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Reference in a new issue