[Mesa-dev] [PATCH 01/29] radv: add small helper to denote when a geom shader is in the pipeline.
Dave Airlie
airlied at gmail.com
Mon Jan 30 06:02:35 UTC 2017
From: Dave Airlie <airlied at redhat.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/amd/vulkan/radv_private.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index fac5b97..68c161e 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -941,6 +941,11 @@ struct radv_pipeline {
unsigned scratch_bytes_per_wave;
};
+static inline bool radv_pipeline_has_gs(struct radv_pipeline *pipeline)
+{
+ return pipeline->shaders[MESA_SHADER_GEOMETRY] ? true : false;
+}
+
struct radv_graphics_pipeline_create_info {
bool use_rectlist;
bool db_depth_clear;
--
2.9.3
More information about the mesa-dev
mailing list