From f6e7290cbcd3468466e422390117f8d83445e089 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Mon, 29 Jun 2020 11:15:25 +0200 Subject: [PATCH] v3dv: fix GFXH-930 workaround We want to check if the coordinate shader is reading attributes, not the vertex shader. Part-of: --- src/broadcom/vulkan/v3dv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_cmd_buffer.c b/src/broadcom/vulkan/v3dv_cmd_buffer.c index 6471a7124c1..887212ff928 100644 --- a/src/broadcom/vulkan/v3dv_cmd_buffer.c +++ b/src/broadcom/vulkan/v3dv_cmd_buffer.c @@ -3451,7 +3451,7 @@ emit_gl_shader_state(struct v3dv_cmd_buffer *cmd_buffer) * CS's VPM inputs. (Since CS is just dead-code-elimination compared * to VS, we can't have CS loading but not VS). */ - if (prog_data_vs->vattr_sizes[location]) + if (prog_data_vs_bin->vattr_sizes[location]) cs_loaded_any = true; if (binding == pipeline->va_count - 1 && !cs_loaded_any) {