diff options
author | Gert Wollny <[email protected]> | 2019-05-27 16:31:17 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2019-06-20 08:50:38 +0200 |
commit | b79366344929c6e477c64a63f246c6db0766a71c (patch) | |
tree | de30a029eddea8e99a5b8d2726ddb7a2ea8f2dc7 /src/gallium/drivers/virgl/virgl_context.c | |
parent | 13d4a34c4463c8c68553b8ce18cb1aa76d567ecb (diff) |
virgl: Add driconf tweak for emulating BGRA surfaces on GLES
These tweaks are used to fix rendering issues with Valve games and
at least also "The Raven Remastered" when run on a GLES host.
v2: Fix type in define and remove virgl from driconf option (Emil)
v3: Encode tweak binary instead of using strings (Gurchetan)
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index cd653b70ce9..3ce131a1e06 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -1404,6 +1404,8 @@ static void virgl_get_sample_position(struct pipe_context *ctx, static void virgl_send_tweaks(struct virgl_context *vctx, struct virgl_screen *rs) { + if (rs->tweak_gles_emulate_bgra) + virgl_encode_tweak(vctx, virgl_tweak_gles_brga_emulate, 1); } struct pipe_context *virgl_context_create(struct pipe_screen *pscreen, |