lima: set dithering flag when necessary
authorVasily Khoruzhick <anarsoul@gmail.com>
Sat, 26 Oct 2019 02:08:57 +0000 (19:08 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Sat, 2 Nov 2019 04:44:31 +0000 (21:44 -0700)
Bit 13 in aux1 enables dithering

Reviewed-by: Qiang.Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
.gitlab-ci/deqp-lima-fails.txt
src/gallium/drivers/lima/lima_draw.c

index 3ff5aad49df62fca131da9ca5633128dac975914..fa718e2b7746dcdf369bd3174fe5274af3b397ab 100644 (file)
@@ -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
index a607e874601187ccda4867b7100e4b39cd699199..bb603d45180a26592e210aa7b16ff572f3255a8f 100644 (file)
@@ -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 =