From: Jason Ekstrand Date: Thu, 14 May 2015 18:39:32 +0000 (-0700) Subject: vk/meta: Add a better comment about the VS for blits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=018a0c17410c27b9a1971876bb1449f3c36df62f;p=mesa.git vk/meta: Add a better comment about the VS for blits --- 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;