diff options
author | Dave Airlie <airlied@redhat.com> | 2015-12-19 15:18:11 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-01-18 15:33:57 +1000 |
commit | dd7b7bbd464d5287383febdf070b2950d309be1f (patch) | |
tree | 6fe1f19bf1108cf48d607a9664252d36d64480fc | |
parent | 2dbe458bfe20ec5e5aa76a0fe503176e65942e03 (diff) |
mark sm5 for more vertex emit
-rw-r--r-- | src/vrend_shader.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vrend_shader.c b/src/vrend_shader.c index b778aa1..30ed79a 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -1958,18 +1958,20 @@ iter_instruction(struct tgsi_iterate_context *iter, ret = emit_prescale(ctx); if (ret) return FALSE; - if (imd->val[inst->Src[0].Register.SwizzleX].ui > 0) + if (imd->val[inst->Src[0].Register.SwizzleX].ui > 0) { + ctx->uses_gpu_shader5 = true; snprintf(buf, 255, "EmitStreamVertex(%d);\n", imd->val[inst->Src[0].Register.SwizzleX].ui); - else + } else snprintf(buf, 255, "EmitVertex();\n"); EMIT_BUF_WITH_RET(ctx, buf); break; } case TGSI_OPCODE_ENDPRIM: { struct immed *imd = &ctx->imm[(inst->Src[0].Register.Index)]; - if (imd->val[inst->Src[0].Register.SwizzleX].ui > 0) + if (imd->val[inst->Src[0].Register.SwizzleX].ui > 0) { + ctx->uses_gpu_shader5 = true; snprintf(buf, 255, "EndStreamPrimitive(%d);\n", imd->val[inst->Src[0].Register.SwizzleX].ui); - else + } else snprintf(buf, 255, "EndPrimitive();\n"); EMIT_BUF_WITH_RET(ctx, buf); break; |