From d616493953da7e349967a78c6fc671d35c1b788e Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 17 Sep 2015 16:28:42 -0700 Subject: [PATCH] anv/meta: Pass the depth through the clear vertex shader It shouldn't matter since we shut off the VS but it's at least clearer. --- src/vulkan/anv_meta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index aa48b978427..4f70e573008 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -39,13 +39,13 @@ anv_device_init_meta_clear_state(struct anv_device *device) * does not dead-code our inputs. */ VkShaderModule vsm = GLSL_VK_SHADER_MODULE(device, VERTEX, - in vec2 a_pos; + in vec3 a_pos; in vec4 a_color; flat out vec4 v_color; void main() { v_color = a_color; - gl_Position = vec4(a_pos, 0, 1); + gl_Position = vec4(a_pos, 1); } ); -- 2.30.2