From 018a0c17410c27b9a1971876bb1449f3c36df62f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 14 May 2015 11:39:32 -0700 Subject: [PATCH] vk/meta: Add a better comment about the VS for blits --- src/vulkan/meta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vulkan/meta.c b/src/vulkan/meta.c index 5973013a5b8..e225da75b24 100644 --- a/src/vulkan/meta.c +++ b/src/vulkan/meta.c @@ -296,7 +296,9 @@ anv_device_init_meta_blit_state(struct anv_device *device) }; /* We don't use a vertex shader for clearing, but instead build and pass - * the VUEs directly to the rasterization backend. + * the VUEs directly to the rasterization backend. However, we do need + * to provide GLSL source for the vertex shader so that the compiler + * does not dead-code our inputs. */ static const char vs_source[] = GLSL( in vec2 a_pos; -- 2.30.2