[Mesa-dev] [PATCH] st/dri: don't set PIPE_BIND_SCANOUT for MSAA surfaces

Brian Paul brianp at vmware.com
Tue Jul 7 10:02:11 PDT 2015


On 07/07/2015 10:29 AM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
>   src/gallium/state_trackers/dri/dri2.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c
> index a8323a3..5aa785c 100644
> --- a/src/gallium/state_trackers/dri/dri2.c
> +++ b/src/gallium/state_trackers/dri/dri2.c
> @@ -556,7 +556,7 @@ dri2_allocate_textures(struct dri_context *ctx,
>
>            if (drawable->textures[statt]) {
>               templ.format = drawable->textures[statt]->format;
> -            templ.bind = drawable->textures[statt]->bind;
> +            templ.bind = drawable->textures[statt]->bind & ~PIPE_BIND_SCANOUT;
>               templ.nr_samples = drawable->stvis.samples;
>
>               /* Try to reuse the resource.
>

LGTM.

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list