projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b63f47
)
radv: add small helper to denote when a geom shader is in the pipeline.
author
Dave Airlie
<airlied@redhat.com>
Wed, 18 Jan 2017 03:50:16 +0000
(13:50 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 30 Jan 2017 23:28:13 +0000
(09:28 +1000)
Review-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_private.h
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_private.h
b/src/amd/vulkan/radv_private.h
index fac5b97153df38b3f654cb6f2163a18645170e71..68c161e0d85f5bc816bd51706772c562baf055e3 100644
(file)
--- 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;