Mesa (master): lima: set dithering flag when necessary
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Nov 2 05:03:16 UTC 2019
Module: Mesa
Branch: master
Commit: 103378f3327ffd23a87dde6f1b190881004333de
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=103378f3327ffd23a87dde6f1b190881004333de
Author: Vasily Khoruzhick <anarsoul at gmail.com>
Date: Fri Oct 25 19:08:57 2019 -0700
lima: set dithering flag when necessary
Bit 13 in aux1 enables dithering
Reviewed-by: Qiang.Yu <yuq825 at gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
---
.gitlab-ci/deqp-lima-fails.txt | 10 ----------
src/gallium/drivers/lima/lima_draw.c | 4 +++-
2 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/.gitlab-ci/deqp-lima-fails.txt b/.gitlab-ci/deqp-lima-fails.txt
index 3ff5aad49df..fa718e2b774 100644
--- a/.gitlab-ci/deqp-lima-fails.txt
+++ b/.gitlab-ci/deqp-lima-fails.txt
@@ -628,16 +628,6 @@ dEQP-GLES2.functional.depth_range.compare.half_to_zero Fail
dEQP-GLES2.functional.depth_range.compare.one_to_half Fail
dEQP-GLES2.functional.depth_range.compare.0_8_to_third Fail
dEQP-GLES2.functional.depth_range.compare.half_to_half Fail
-dEQP-GLES2.functional.dither.disabled.gradient_white Fail
-dEQP-GLES2.functional.dither.disabled.gradient_red Fail
-dEQP-GLES2.functional.dither.disabled.gradient_green Fail
-dEQP-GLES2.functional.dither.disabled.gradient_blue Fail
-dEQP-GLES2.functional.dither.disabled.gradient_alpha Fail
-dEQP-GLES2.functional.dither.disabled.unicolored_quad_white Fail
-dEQP-GLES2.functional.dither.disabled.unicolored_quad_red Fail
-dEQP-GLES2.functional.dither.disabled.unicolored_quad_green Fail
-dEQP-GLES2.functional.dither.disabled.unicolored_quad_blue Fail
-dEQP-GLES2.functional.dither.disabled.unicolored_quad_alpha Fail
dEQP-GLES2.functional.draw.draw_arrays.first.first_0 Fail
dEQP-GLES2.functional.draw.draw_arrays.first.first_1 Fail
dEQP-GLES2.functional.draw.draw_arrays.first.first_17 Fail
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c
index a607e874601..bb603d45180 100644
--- a/src/gallium/drivers/lima/lima_draw.c
+++ b/src/gallium/drivers/lima/lima_draw.c
@@ -1074,7 +1074,9 @@ lima_pack_render_state(struct lima_context *ctx, const struct pipe_draw_info *in
/* more investigation */
render->aux0 = 0x00000300 | (ctx->vs->varying_stride >> 3);
- render->aux1 = 0x00003000;
+ render->aux1 = 0x00001000;
+ if (ctx->blend->base.dither)
+ render->aux1 |= 0x00002000;
if (ctx->tex_stateobj.num_samplers) {
render->textures_address =
More information about the mesa-commit
mailing list