diff options
author | Michel Dänzer <[email protected]> | 2013-05-03 17:59:34 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2013-05-21 17:50:12 +0200 |
commit | 4730dea5f5ddd5f94091aeb423c0e0cce4e64fdb (patch) | |
tree | d80d2425e74d412732feb82a8856f03569c23bb7 /src/gallium/drivers/radeonsi/radeonsi_shader.c | |
parent | 2eac0aa1d8d6fbdbbee43e44b24cff7f71733764 (diff) |
radeonsi: Fix handling of TGSI_SEMANTIC_PSIZE
Two more little piglits.
NOTE: This is a candidate for the 9.1 branch.
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_shader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index bea2895bf0c..e6ed5459cea 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_shader.c +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c @@ -612,7 +612,9 @@ static void si_llvm_emit_epilogue(struct lp_build_tgsi_context * bld_base) /* Select the correct target */ switch(d->Semantic.Name) { case TGSI_SEMANTIC_PSIZE: - target = V_008DFC_SQ_EXP_POS; + shader->vs_out_misc_write = 1; + shader->vs_out_point_size = 1; + target = V_008DFC_SQ_EXP_POS + 1; break; case TGSI_SEMANTIC_POSITION: if (si_shader_ctx->type == TGSI_PROCESSOR_VERTEX) { |