summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-01-31 11:40:24 +0100
committerSamuel Pitoiset <[email protected]>2018-01-31 14:10:26 +0100
commita097a6f519ff39d8586f7af06323c2c27899ec3d (patch)
treec7a0c0cfaf5cbaad1ee2756b55cd71cbc03e43dd /src/amd/vulkan/radv_shader.h
parent26cc3e74b97864a8b879b169bdd6357c6e0ca2b1 (diff)
radv: do not dump meta shader stats
That's quite useless and that pollutes the output. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.h')
-rw-r--r--src/amd/vulkan/radv_shader.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h
index f6486863f88..b07f8a89e74 100644
--- a/src/amd/vulkan/radv_shader.h
+++ b/src/amd/vulkan/radv_shader.h
@@ -122,4 +122,13 @@ radv_can_dump_shader(struct radv_device *device,
module && !module->nir;
}
+static inline bool
+radv_can_dump_shader_stats(struct radv_device *device,
+ struct radv_shader_module *module)
+{
+ /* Only dump non-meta shader stats. */
+ return device->instance->debug_flags & RADV_DEBUG_DUMP_SHADER_STATS &&
+ module && !module->nir;
+}
+
#endif