radeonsi: Handle TGSI_SEMANTIC_PSIZE
authorTom Stellard <thomas.stellard@amd.com>
Thu, 30 Aug 2012 14:35:36 +0000 (10:35 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 31 Aug 2012 16:53:51 +0000 (12:53 -0400)
The relevant POINT_SIZE registers are being set using the
pipe_rasterizer_state, so we just need to tell the shader compiler which
export type to use.

This fixes several of the glean glsl tests.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c

index d07b050799d17e44e37079a1c55b516889f2630d..2f417ecda52ec23c3ca95f2f535fb57f3d407bef 100644 (file)
@@ -502,6 +502,7 @@ static void si_llvm_emit_epilogue(struct lp_build_tgsi_context * bld_base)
                for (index = d->Range.First; index <= d->Range.Last; index++) {
                        /* Select the correct target */
                        switch(d->Semantic.Name) {
+                       case TGSI_SEMANTIC_PSIZE:
                        case TGSI_SEMANTIC_POSITION:
                                target = V_008DFC_SQ_EXP_POS;
                                break;