[Mesa-dev] [PATCH 08/17] mesa/st: Update framebuffer state with no.of samples, layers
Marek Olšák
maraeo at gmail.com
Mon Mar 21 15:38:07 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:
> Handle the case of ARB_framebuffer_no_attachment.
> Also, kill off a dead debug printf() call while we are here.
>
> Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
> ---
> src/mesa/state_tracker/st_atom_framebuffer.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c
> index 111f64e..7ca6d57 100644
> --- a/src/mesa/state_tracker/st_atom_framebuffer.c
> +++ b/src/mesa/state_tracker/st_atom_framebuffer.c
> @@ -43,6 +43,7 @@
> #include "util/u_math.h"
> #include "util/u_inlines.h"
> #include "util/u_format.h"
> +#include "main/framebuffer.h"
>
>
> /**
> @@ -103,8 +104,6 @@ update_framebuffer_state( struct st_context *st )
> st_flush_bitmap_cache(st);
>
> st->state.fb_orientation = st_fb_orientation(fb);
> - framebuffer->width = UINT_MAX;
> - framebuffer->height = UINT_MAX;
>
> /**
> * Quantize the derived default number of samples:
> @@ -117,7 +116,10 @@ update_framebuffer_state( struct st_context *st )
> fb->DefaultGeometry._NumSamples =
> framebuffer_quantize_num_samples(supported_msaa_modes, fb->DefaultGeometry.NumSamples);
>
> - /*printf("------ fb size %d x %d\n", fb->Width, fb->Height);*/
> + framebuffer->width = _mesa_geometric_width(fb);
> + framebuffer->height = _mesa_geometric_height(fb);
> + framebuffer->samples = _mesa_geometric_samples(fb);
> + framebuffer->layers = _mesa_geometric_layers(fb);
>
> /* Examine Mesa's ctx->DrawBuffer->_ColorDrawBuffers state
> * to determine which surfaces to draw to
> --
> 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