[Mesa-dev] [PATCH 1/2] r600g: set CB_COLOR_INFO to INVALID for disabled colorbuffers on r600-r700

Michel Dänzer michel at daenzer.net
Wed Aug 15 22:40:55 PDT 2012


On Mit, 2012-08-15 at 19:48 +0200, Marek Olšák wrote: 
> ---
>  src/gallium/drivers/r600/r600_state.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
> index d2ef68e..e024907 100644
> --- a/src/gallium/drivers/r600/r600_state.c
> +++ b/src/gallium/drivers/r600/r600_state.c
> @@ -1438,6 +1438,9 @@ static void r600_set_framebuffer_state(struct pipe_context *ctx,
>  					   surf->cb_color_info, res, RADEON_USAGE_READWRITE);
>  		i++;
>  	}
> +	for (; i < 8 ; i++) {
> +		r600_pipe_state_add_reg(rstate, R_0280A0_CB_COLOR0_INFO + i * 4, 0);
> +	}

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the mesa-dev mailing list