lima: set dithering flag when necessary

Bit 13 in aux1 enables dithering

Reviewed-by: Qiang.Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
This commit is contained in:
Vasily Khoruzhick 2019-10-25 19:08:57 -07:00
parent c236e6c1e3
commit 103378f332
2 changed files with 3 additions and 11 deletions

View 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

View 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 =