summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-05-16 10:23:43 -0700
committerJason Ekstrand <[email protected]>2015-05-16 10:30:05 -0700
commit22e61c9da4cf81d2a3ce753cb6cfd2d74aac8e47 (patch)
tree7f611be2e2b4b424284f27491ce426d5b84f05fd /src
parent120394ac923f186b18679448ea5d9f088728aa2d (diff)
vk/meta: Make clear a no-op if no layers need clearing
Among other things, this prevents recursive meta.
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/meta.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vulkan/meta.c b/src/vulkan/meta.c
index 1255761c4d6..aa7b16aee34 100644
--- a/src/vulkan/meta.c
+++ b/src/vulkan/meta.c
@@ -199,6 +199,9 @@ anv_cmd_buffer_clear(struct anv_cmd_buffer *cmd_buffer,
float color[4];
} *instance_data;
+ if (pass->num_clear_layers == 0)
+ return;
+
const float vertex_data[] = {
/* Rect-list coordinates */
0.0, 0.0,