[Mesa-dev] [PATCH] r600/shader: tess_input_info is needed by TES for gl_PatchVerticesIn
Dave Airlie
airlied at gmail.com
Thu Feb 8 23:54:46 UTC 2018
From: Dave Airlie <airlied at redhat.com>
This fixes:
KHR-GL45.tessellation_shader.tessellation_control_to_tessellation_evaluation.gl_PatchVerticesIn
---
src/gallium/drivers/r600/r600_shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 884819ed01..1722e9fceb 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -3553,7 +3553,7 @@ static int r600_shader_from_tgsi(struct r600_context *rctx,
ctx.tess_input_info = ++regno;
ctx.tess_output_info = ++regno;
} else if (ctx.type == PIPE_SHADER_TESS_EVAL) {
- ctx.tess_input_info = 0;
+ ctx.tess_input_info = ++regno;
ctx.tess_output_info = ++regno;
} else if (ctx.type == PIPE_SHADER_GEOMETRY) {
ctx.gs_export_gpr_tregs[0] = ++regno;
--
2.14.3
More information about the mesa-dev
mailing list