diff options
author | Dave Airlie <airlied@redhat.com> | 2015-11-03 13:24:24 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-11-03 13:25:08 +1000 |
commit | 031d582bc12399b085de2ec7dd50ba77ccff1d5a (patch) | |
tree | b4557aca76be40f5b7661504b26404c7aa7fa343 | |
parent | 9ce005e5a2a7f248f4798e349a50a6ce594b708a (diff) |
renderer: emit clip distances before emitting position
This fixes piglit fixed-clip-enables test.
-rw-r--r-- | src/vrend_shader.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 46cc05b..5e00c8e 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -1740,15 +1740,15 @@ iter_instruction(struct tgsi_iterate_context *iter, if (ret) return FALSE; } + ret = emit_clip_dist_movs(ctx); + if (ret) + return FALSE; if (!ctx->key->gs_present) { ret = emit_prescale(ctx); if (ret) return FALSE; } - ret = emit_clip_dist_movs(ctx); - if (ret) - return FALSE; } else if (iter->processor.Processor == TGSI_PROCESSOR_GEOMETRY) { } else if (iter->processor.Processor == TGSI_PROCESSOR_FRAGMENT) { @@ -1805,10 +1805,10 @@ iter_instruction(struct tgsi_iterate_context *iter, if (ctx->so && ctx->key->gs_present) { emit_so_movs(ctx); } - ret = emit_prescale(ctx); + ret = emit_clip_dist_movs(ctx); if (ret) return FALSE; - ret = emit_clip_dist_movs(ctx); + ret = emit_prescale(ctx); if (ret) return FALSE; snprintf(buf, 255, "EmitVertex();\n"); |