etnaviv: add support for occlusion queries
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Thu, 19 Oct 2017 21:12:46 +0000 (23:12 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 20 Oct 2017 10:42:44 +0000 (12:42 +0200)
commit246243d447a081297b9e55de6f5cebcb322a98a9
tree76bd15e160932cbb7945f882daf703b221c27a50
parent282d8698ec4d792a8eeb1a4b1cd8c85b4fd8ac8d
etnaviv: add support for occlusion queries

Passes most occlusion query piglits. The following piglits are broken:
- spec@arb_occlusion_query@occlusion_query_meta_fragments
- spec@arb_occlusion_query@occlusion_query_meta_save
- spec@arb_occlusion_query2@render

v1 -> v2:
 - use one sample provider for all occlusion queries tyes
 - add comment about 'magic' value 0x1DF5E76

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_query_hw.c