diff options
author | Ilia Mirkin <[email protected]> | 2018-02-21 23:32:49 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2018-02-22 20:47:48 -0500 |
commit | d73f1f2ad879d0c6712931b75f2bfb995c2c9fcb (patch) | |
tree | 31fdb92484c4be467b92498d3cd27067e1f9f08c /src | |
parent | 33ce3569c5b87523e2ed94c383d2ee245f1beaaf (diff) |
nv50,nvc0: fix integer MS resolves using 2d engine
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 <[email protected]>
Tested-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_blit.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |