From: Charmaine Lee Date: Sat, 2 Dec 2017 04:59:42 +0000 (-0800) Subject: svga: src surface for IntraSurfaceCopy cannot be multisample X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f144441842c9833b0c04c8431fb259ff9d2a4e0;p=mesa.git svga: src surface for IntraSurfaceCopy cannot be multisample Fixes SVGA Driver Errors with piglit test arb_copy_image-targets Reviewed-by: Brian Paul Reviewed-by: Neha Bhende --- diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c index a3579ba98c2..55eee9220bf 100644 --- a/src/gallium/drivers/svga/svga_pipe_blit.c +++ b/src/gallium/drivers/svga/svga_pipe_blit.c @@ -350,6 +350,10 @@ can_blit_via_intra_surface_copy(struct svga_context *svga, if (!svga_have_vgpu10(svga)) return false; + /* src surface cannot be multisample */ + if (blit_info->src.resource->nr_samples > 1) + return false; + if (!sws->have_intra_surface_copy) return false;