From 3eb108ef871f1bd4c909ce627ce76e5226e8d035 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 23 Dec 2015 23:32:55 -0800 Subject: [PATCH] anv/meta: Fix the pos_out location for the vertex shader --- src/vulkan/anv_meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index cf6678d852f..c1d600a3ed8 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -48,7 +48,7 @@ build_nir_vertex_shader(bool attr_flat) pos_in->data.location = VERT_ATTRIB_GENERIC0; nir_variable *pos_out = nir_variable_create(b.shader, nir_var_shader_out, vertex_type, "gl_Position"); - pos_in->data.location = VARYING_SLOT_POS; + pos_out->data.location = VARYING_SLOT_POS; nir_copy_var(&b, pos_out, pos_in); /* Add one more pass-through attribute. For clear shaders, this is used -- 2.30.2