radv: Add occlusion query shader.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 26 Feb 2017 17:21:01 +0000 (18:21 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 11 Apr 2017 07:33:17 +0000 (09:33 +0200)
commitce0c8cf941e38b9d8b4d3284514feb36453d5e83
treeaf1de24b98306a75e4343f743c95eff81df09593
parent50b987c0f022d7297b3c97a3f8ec0b51c83e4454
radv: Add occlusion query shader.

Adds a shader for writing occlusion query results to a buffer, as the
CP packet isn't support on SI or secondary buffers, and doesn't handle
the availability bit (or partial results) nor truncation to 32-bit.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta.c
src/amd/vulkan/radv_meta.h
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_query.c