summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-01-18 13:50:16 +1000
committerDave Airlie <[email protected]>2017-01-31 09:28:13 +1000
commitf26fa879b74d293b35bc22379f2dc7b674c56829 (patch)
tree28a7af21ef5f99ff56d22fdfcb6c5ff4d870e148 /src
parent0b63f47030e63ad061b7716cb6ab963cdae0f14f (diff)
radv: add small helper to denote when a geom shader is in the pipeline.
Review-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-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 fac5b97153d..68c161e0d85 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;