[Mesa-dev] [PATCH] nv50, nvc0: fix integer MS resolves using 2d engine

Karol Herbst kherbst at redhat.com
Thu Feb 22 13:05:55 UTC 2018


Tested-by: Karol Herbst <kherbst at redhat.com>

On Thu, Feb 22, 2018 at 5:34 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> We don't want filtering for integer textures, same as depth/stencil.
>
> Fixes: KHR-GL45.direct_state_access.renderbuffers_storage_multisample
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/gallium/drivers/nouveau/nv50/nv50_blit.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/nouveau/nv50/nv50_blit.h b/src/gallium/drivers/nouveau/nv50/nv50_blit.h
> index 0ccec568d3a..10fe5274b10 100644
> --- a/src/gallium/drivers/nouveau/nv50/nv50_blit.h
> +++ b/src/gallium/drivers/nouveau/nv50/nv50_blit.h
> @@ -85,7 +85,8 @@ static inline unsigned
>  nv50_blit_get_filter(const struct pipe_blit_info *info)
>  {
>     if (info->dst.resource->nr_samples < info->src.resource->nr_samples)
> -      return util_format_is_depth_or_stencil(info->src.format) ? 0 : 1;
> +      return (util_format_is_depth_or_stencil(info->src.format) ||
> +              util_format_is_pure_integer(info->src.format)) ? 0 : 1;
>
>     if (info->filter != PIPE_TEX_FILTER_LINEAR)
>        return 0;
> --
> 2.16.1
>
> _______________________________________________
> 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