summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-02-26 18:21:01 +0100
committerBas Nieuwenhuizen <[email protected]>2017-04-11 09:33:17 +0200
commitce0c8cf941e38b9d8b4d3284514feb36453d5e83 (patch)
treeaf1de24b98306a75e4343f743c95eff81df09593 /src/amd/vulkan/radv_private.h
parent50b987c0f022d7297b3c97a3f8ec0b51c83e4454 (diff)
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 <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 580c1197e64..a03c24c24ac 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -438,6 +438,12 @@ struct radv_meta_state {
VkPipeline fill_pipeline;
VkPipeline copy_pipeline;
} buffer;
+
+ struct {
+ VkDescriptorSetLayout occlusion_query_ds_layout;
+ VkPipelineLayout occlusion_query_p_layout;
+ VkPipeline occlusion_query_pipeline;
+ } query;
};
/* queue types */