diff --git a/src/vrend_shader.c b/src/vrend_shader.c index d8b45e9..a7c7e2d 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -4577,9 +4577,10 @@ static char *emit_ios(struct dump_ctx *ctx, char *glsl_hdr) ctx->outputs[i].fbfetch_used ? "inout" : "out", ctx->outputs[i].glsl_name); STRCAT_WITH_RET(glsl_hdr, buf); - } else if (ctx->outputs[i].invariant) { - snprintf(buf, 255, "%s %s;\n", - ctx->outputs[i].invariant ? "invariant " : "", + } else if (ctx->outputs[i].invariant || ctx->outputs[i].precise) { + snprintf(buf, 255, "%s%s;\n", + ctx->outputs[i].precise ? "precise " : + (ctx->outputs[i].invariant ? "invariant " : ""), ctx->outputs[i].glsl_name); STRCAT_WITH_RET(glsl_hdr, buf); }