diff options
author | Charmaine Lee <[email protected]> | 2017-12-01 20:59:42 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-09-10 13:07:30 -0600 |
commit | 5f144441842c9833b0c04c8431fb259ff9d2a4e0 (patch) | |
tree | bc236c1b226993f62430a9a0bac3eb0f813cb118 /src/gallium/drivers/svga | |
parent | 026e1ad7bba6afa275903f108d9d99d0898eecde (diff) |
svga: src surface for IntraSurfaceCopy cannot be multisample
Fixes SVGA Driver Errors with piglit test arb_copy_image-targets
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Neha Bhende <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_blit.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |