[Mesa-dev] [PATCH 3/6] radeonsi: Flesh out support for depth/stencil exports from the pixel shader.

Christian König deathsimple at vodafone.de
Fri Nov 23 00:43:25 PST 2012


On 22.11.2012 18:57, Michel Dänzer wrote:
> +				if (si_shader_ctx->type == TGSI_PROCESSOR_VERTEX) {
> +			case TGSI_SEMANTIC_PSIZE:
> +					target = V_008DFC_SQ_EXP_POS;
> +				} else {
> +			case TGSI_SEMANTIC_STENCIL:
> +					if (d->Semantic.Name == TGSI_SEMANTIC_STENCIL)
> +						stencil_index = index;
> +					else
> +						depth_index = index;
> +					continue;
> +				}

Is it just me or does this code look rather strange?

Its probably just some comment or disabled part of code, otherwise I 
have my doubts that this would compile otherwise.

Christian.


More information about the mesa-dev mailing list