nv50,nvc0: fix integer MS resolves using 2d engine
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 22 Feb 2018 04:32:49 +0000 (23:32 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 23 Feb 2018 01:47:48 +0000 (20:47 -0500)
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@alum.mit.edu>
Tested-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/nv50/nv50_blit.h

index 0ccec568d3abc789621135b33068d8b1f595d01e..10fe5274b10164f5fb1d38c9ea8eb539031b76c4 100644 (file)
@@ -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;