[Mesa-dev] [PATCH 03/25] radv: add helper function to denote if tess is enabled on a pipeline.
Dave Airlie
airlied at gmail.com
Thu Mar 30 08:00:53 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 31e0828..c5c872f 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -980,6 +980,11 @@ static inline bool radv_pipeline_has_gs(struct radv_pipeline *pipeline)
return pipeline->shaders[MESA_SHADER_GEOMETRY] ? true : false;
}
+static inline bool radv_pipeline_has_tess(struct radv_pipeline *pipeline)
+{
+ return pipeline->shaders[MESA_SHADER_TESS_EVAL] ? 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