[Mesa-dev] [PATCH 09/17] softpipe: Set samples and layers in set_framebuffer_state() cb

Marek Olšák maraeo at gmail.com
Mon Mar 21 15:38:30 UTC 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sat, Mar 19, 2016 at 7:41 AM, Edward O'Callaghan
<eocallaghan at alterapraxis.com> wrote:
> Carries across the number of samples and layers state in the
> 'softpipe_set_framebuffer_state()' callback. This state is
> part of 'ARB_framebuffer_no_attachments' support.
>
> Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
> ---
>  src/gallium/drivers/softpipe/sp_state_surface.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/drivers/softpipe/sp_state_surface.c b/src/gallium/drivers/softpipe/sp_state_surface.c
> index db4b273..1a4bf38 100644
> --- a/src/gallium/drivers/softpipe/sp_state_surface.c
> +++ b/src/gallium/drivers/softpipe/sp_state_surface.c
> @@ -94,6 +94,8 @@ softpipe_set_framebuffer_state(struct pipe_context *pipe,
>
>     sp->framebuffer.width = fb->width;
>     sp->framebuffer.height = fb->height;
> +   sp->framebuffer.samples = fb->samples;
> +   sp->framebuffer.layers = fb->layers;
>
>     sp->dirty |= SP_NEW_FRAMEBUFFER;
>  }
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list