radv: add small helper to denote when a geom shader is in the pipeline.

Review-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2017-01-18 13:50:16 +10:00
parent 0b63f47030
commit f26fa879b7
1 changed files with 5 additions and 0 deletions

View File

@ -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;