[Mesa-dev] [PATCH] target/haiku-softpipe: Fix viewport issues

Alexander von Gluck IV kallisti5 at unixzen.com
Mon Nov 4 14:08:32 PST 2013


On Mon, Nov 4, 2013 at 1:05 PM, Alexander von Gluck IV 
<kallisti5 at unixzen.com> wrote:
> * Call mesa viewport call on winndow resize
> * Add initial postprocessing code
> * Pass hgl_context to private statetracker
>   as it is more useful than GalliumContext
> * Use Lock and Unlock functions to standardize
>   GalliumContext locking
> * Create texture resources in texture validation
> ---
> +			switch(statts[i]) {
> +				case ST_ATTACHMENT_FRONT_LEFT:
> +					format = context->stVisual->color_format;
> +					bind = PIPE_BIND_RENDER_TARGET;
> +				case ST_ATTACHMENT_DEPTH_STENCIL:
> +					format = context->stVisual->depth_stencil_format;
> +					bind = PIPE_BIND_DEPTH_STENCIL;
> +				case ST_ATTACHMENT_ACCUM:
> +					format = context->stVisual->accum_format;
> +					bind = PIPE_BIND_RENDER_TARGET;
> +				default:
> +					ERROR("%s: Unexpected attachment type!\n", __func__);
> +			}
> 
Just realized that I forgot to put break's here in the switch.

Will fix before pushing if this patch is approved / ack'ed

 -- Alex



More information about the mesa-dev mailing list