projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de06dfa
)
radv: fix dumping compute shader on the graphics queue
author
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Thu, 24 May 2018 11:09:14 +0000
(13:09 +0200)
committer
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Fri, 25 May 2018 09:58:07 +0000
(11:58 +0200)
The graphics pipeline can be NULL.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_debug.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_debug.c
b/src/amd/vulkan/radv_debug.c
index c84e3be25bb7beb53380edce35e3de0b2cc826b6..5a9b43644ed15aa7cc3f9c3af216aa4c61523136 100644
(file)
--- a/
src/amd/vulkan/radv_debug.c
+++ b/
src/amd/vulkan/radv_debug.c
@@
-540,12
+540,15
@@
radv_dump_graphics_state(struct radv_pipeline *graphics_pipeline,
{
VkShaderStageFlagBits active_stages;
- if (
!graphics_pipeline)
-
return
;
-
- active_stages = graphics_pipeline->active_stages;
+ if (
graphics_pipeline) {
+
active_stages = graphics_pipeline->active_stages
;
+ radv_dump_pipeline_state(graphics_pipeline, active_stages, f);
+ }
- radv_dump_pipeline_state(graphics_pipeline, active_stages, f);
+ if (compute_pipeline) {
+ active_stages = VK_SHADER_STAGE_COMPUTE_BIT;
+ radv_dump_pipeline_state(compute_pipeline, active_stages, f);
+ }
}
static void