softpipe: Set samples and layers in set_framebuffer_state() cb
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Fri, 12 Feb 2016 10:11:57 +0000 (21:11 +1100)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Apr 2016 02:03:58 +0000 (12:03 +1000)
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@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/softpipe/sp_state_surface.c

index db4b2735d58c76c402587dca938f217ec6b7fb96..1a4bf384b2ae7aba4eb20babaf426caec0f84bb1 100644 (file)
@@ -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;
 }