drm/vc4: Make sure to emit a tile coordinates between two MSAA loads.
authorEric Anholt <eric@anholt.net>
Wed, 6 Feb 2019 23:25:50 +0000 (15:25 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 1 Apr 2019 16:33:38 +0000 (09:33 -0700)
commit181e5bf29e06bd8ade7ebc21de056b9dc866fcc2
tree287e4e763da3e76fcc1f76cef8540a3341476656
parent50d1ebef79ef6d09f4fb91f0b424e4f87db1d8a8
drm/vc4: Make sure to emit a tile coordinates between two MSAA loads.

The HW only executes a load once the tile coordinates packet happens,
and only tracks one at a time, so by emitting our two MSAA loads back
to back we would end up with an undefined color or Z buffer.

Fixes dEQP-EGL.functional.render.multi_context.gles2.rgb888_window

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190206232550.12012-1-eric@anholt.net
drivers/gpu/drm/vc4/vc4_render_cl.c