aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVasily Khoruzhick <[email protected]>2019-10-25 19:08:57 -0700
committerVasily Khoruzhick <[email protected]>2019-11-01 21:44:31 -0700
commit103378f3327ffd23a87dde6f1b190881004333de (patch)
tree499f4ebfffe597ccca24d6cce8c10ea8073c2fa4 /src/gallium
parentc236e6c1e3224dd324b9ee3d3b501bd02ba2f177 (diff)
lima: set dithering flag when necessary
Bit 13 in aux1 enables dithering Reviewed-by: Qiang.Yu <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/lima/lima_draw.c4
1 files changed, 3 insertions, 1 deletions
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 =