summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-03-30 07:44:20 +0100
committerDave Airlie <[email protected]>2017-04-01 07:14:59 +1000
commit0604284e3f5d95845a1203dd1a9abc3d9849fe39 (patch)
tree33f42017ae7ffadd1ee8f46733987bb7aaacad00 /src/amd/vulkan/radv_private.h
parent97e0ff30c0c25cf0bfc857fd20b44a3ed95b99fc (diff)
radv: add helper function to denote if tess is enabled on a pipeline.
Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index e8f14dcfe02..33f35245792 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -982,6 +982,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;