virgl: fix some false positives in transfers_overlap
authorChia-I Wu <olvaffe@gmail.com>
Mon, 8 Jul 2019 23:12:29 +0000 (16:12 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 9 Jul 2019 21:26:55 +0000 (14:26 -0700)
commit6ca1bbabbe27a5005c69f1dd4c69fe0fe7feb807
treec30dbd168550057faeb0f703f870f386940bf3f2
parent2b2093961eeb7b9d70573fde33eb8b87d5a6f35f
virgl: fix some false positives in transfers_overlap

Rewrite the function and check z/depth more carefully.  We
intentionally avoid u_box_test_intersection_2d because it returns
true when two boxes touch but do not intersect and can be confusing.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
src/gallium/drivers/virgl/virgl_transfer_queue.c