[virglrenderer-devel] [PATCH] Fixes dEQP-GLES2.functional.shaders.return.output_write_dynamic_verte test. Calls emmit_prescale before return in vertex shader.
tutankhamen at chromium.org
tutankhamen at chromium.org
Wed Feb 21 00:42:47 UTC 2018
From: Robert Tarasov <tutankhamen at chromium.org>
diff --git src/vrend_shader.c src/vrend_shader.c
index 88784bf..750a157 100644
--- src/vrend_shader.c
+++ src/vrend_shader.c
@@ -2009,6 +2009,12 @@ iter_instruction(struct tgsi_iterate_context *iter,
return FALSE;
break;
case TGSI_OPCODE_RET:
+ if (iter->processor.Processor == TGSI_PROCESSOR_VERTEX) {
+ if (!ctx->key->gs_present) {
+ ret = emit_prescale(ctx);
+ }
+ }
+
EMIT_BUF_WITH_RET(ctx, "return;\n");
break;
case TGSI_OPCODE_ARL:
More information about the virglrenderer-devel
mailing list