[Mesa-dev] [PATCH 1/3] gallium/util: fix blitter sampler view target initialization

Marek Olšák maraeo at gmail.com
Wed May 13 01:52:46 PDT 2015


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

Marek

On Wed, May 13, 2015 at 4:36 AM,  <sroland at vmware.com> wrote:
> From: Roland Scheidegger <sroland at vmware.com>
>
> This was missing, and drivers relying on the target in the view could get
> into quite some trouble.
> ---
>  src/gallium/auxiliary/util/u_blitter.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
> index 9d087fe..24a5b93 100644
> --- a/src/gallium/auxiliary/util/u_blitter.c
> +++ b/src/gallium/auxiliary/util/u_blitter.c
> @@ -1306,6 +1306,7 @@ void util_blitter_default_src_texture(struct pipe_sampler_view *src_templ,
>                                        unsigned srclevel)
>  {
>      memset(src_templ, 0, sizeof(*src_templ));
> +    src_templ->target = src->target;
>      src_templ->format = util_format_linear(src->format);
>      src_templ->u.tex.first_level = srclevel;
>      src_templ->u.tex.last_level = srclevel;
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list