drisw: do an MSAA resolve when copying the backbuffer

When calling glXCopySubBuffer, we must resolve the backbuffer before
copying it the frontbuffer.

Fixes piglit's glx/glx-copy-sub-buffer on virgl.

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <!11714>
140 jobs for !11714 with fix-glx-copy-sub-buffer in 33 minutes and 31 seconds (queued for 24 seconds)
latest detached
Status Name Job ID Coverage
  Sanity
passed sanity #13660855

00:00:16

 
  Container
passed debian/android_build #13660861

00:00:31

passed debian/arm_build #13660865
aarch64

00:00:43

passed debian/arm_test #13660870

00:00:26

passed debian/i386_build #13660858

00:00:28

passed debian/ppc64el_build #13660859

00:00:30

passed debian/s390x_build #13660860

00:00:29

passed debian/x86_build #13660857

00:00:31

passed debian/x86_build-base #13660856

00:00:25

passed debian/x86_test-base #13660862

00:00:25

passed debian/x86_test-gl #13660863

00:00:29

passed debian/x86_test-vk #13660864

00:00:31

passed fedora/x86_build #13660866

00:00:26

passed kernel+rootfs_amd64 #13660867

00:00:13

passed kernel+rootfs_arm64 #13660868
aarch64

00:01:00

passed kernel+rootfs_armhf #13660869
aarch64

00:00:11

passed windows_build_vs2019 #13660871
windows shell 1809 mesa

00:00:12

 
  Build X86 64
passed debian-clang #13660878

00:05:11

passed debian-clover #13660879

00:01:23

passed debian-clover-testing #13660874

00:02:01

passed debian-gallium #13660875

00:07:18

passed debian-release #13660876

00:03:42

passed debian-testing #13660872

00:02:05

passed debian-testing-asan #13660873

00:02:49

passed debian-vulkan #13660880

00:01:12

passed fedora-release #13660877

00:01:03

 
  Build Misc
passed debian-android #13660881

00:01:04

passed debian-arm64 #13660883
aarch64

00:01:33

passed debian-arm64-asan #13660884
aarch64

00:02:58

passed debian-arm64-build-test #13660885
aarch64

00:01:47

passed debian-armhf #13660882
aarch64

00:01:35

passed debian-i386 #13660887

00:01:59

passed debian-mingw32-x86_64 #13660890

00:01:19

passed debian-ppc64el #13660889

00:01:20

passed debian-s390x #13660888
kvm

00:03:35

passed windows-vs2019 #13725471
docker windows 1809 mesa

00:05:07

failed windows-vs2019 #13660886
windows docker 1809 mesa

00:04:49

 
  Amd
passed radeonsi-stoney-gles2:amd64 #13660891
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:07:07

passed radeonsi-stoney-gles31:amd64 1/2 #13660894
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:10:53

passed radeonsi-stoney-gles31:amd64 2/2 #13660895
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:10:21

passed radeonsi-stoney-gles3:amd64 1/2 #13660892
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:11:04

passed radeonsi-stoney-gles3:amd64 2/2 #13660893
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:08:09

passed radeonsi-stoney-piglit-gl:amd64 #13660897
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:08:05

passed radeonsi-stoney-traces:amd64 #13660896
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:09:02

 
  Intel
manual iris-amly-traces-performance #13660905
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus allowed to fail manual
passed iris-apl-deqp 1/3 #13660898
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:08:25

passed iris-apl-deqp 2/3 #13660899
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:10:16

passed iris-apl-deqp 3/3 #13660900
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:09:36

passed iris-apl-egl #13660901
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:07:44

passed iris-apl-traces #13660902
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:04:25

manual iris-apl-traces-performance #13660903
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral allowed to fail manual
manual iris-cml-traces-performance #13660908
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch allowed to fail manual
manual iris-glk-traces-performance #13660904
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus allowed to fail manual
manual iris-kbl-traces-performance #13660906
mesa-ci-x86-64-lava-hp-x360-14-G1-sona allowed to fail manual
manual iris-whl-traces-performance #13660907
mesa-ci-x86-64-lava-dell-latitude-5400-4305U-sarien allowed to fail manual
 
  Arm
passed lima-mali450-test:arm64 #13660909
mesa-ci-x86-64-lava-lima

00:06:44

passed panfrost-g52-gl:arm64 1/3 #13660917
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3

00:09:17

passed panfrost-g52-gl:arm64 2/3 #13660918
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3

00:06:33

passed panfrost-g52-gl:arm64 3/3 #13660919
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3

00:06:32

passed panfrost-g72-gl:arm64 1/3 #13660920
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16

00:07:28

passed panfrost-g72-gl:arm64 2/3 #13660921
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16

00:07:42

passed panfrost-g72-gl:arm64 3/3 #13660922
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16

00:08:12

passed panfrost-t720-gles2:arm64 #13660910
mesa-ci-x86-64-lava-sun50i-h6-pine-h64

00:09:01

passed panfrost-t760-gles2:armhf #13660911
mesa-ci-x86-64-lava-rk3288-veyron-jaq

00:10:37

passed panfrost-t760-traces:armhf #13660912
mesa-ci-x86-64-lava-rk3288-veyron-jaq

00:08:26

passed panfrost-t860-gl:arm64 1/3 #13660913
mesa-ci-x86-64-lava-rk3399-gru-kevin

00:07:13

passed panfrost-t860-gl:arm64 2/3 #13660914
mesa-ci-x86-64-lava-rk3399-gru-kevin

00:06:46

passed panfrost-t860-gl:arm64 3/3 #13660915
mesa-ci-x86-64-lava-rk3399-gru-kevin

00:06:45

passed panfrost-t860-traces:arm64 #13660916
mesa-ci-x86-64-lava-rk3399-gru-kevin

00:09:45

 
  Broadcom
passed v3d-rpi4-egl:armhf #13660934
igalia-rpi4

00:07:10

passed v3d-rpi4-gles:armhf 1/8 #13660926
igalia-rpi4

00:08:14

passed v3d-rpi4-gles:armhf 2/8 #13660927
igalia-rpi4

00:21:49

passed v3d-rpi4-gles:armhf 3/8 #13660928
igalia-rpi4

00:08:10

passed v3d-rpi4-gles:armhf 4/8 #13660929
igalia-rpi4

00:08:04

passed v3d-rpi4-gles:armhf 5/8 #13660930
igalia-rpi4

00:08:33

passed v3d-rpi4-gles:armhf 6/8 #13660931
igalia-rpi4

00:09:12

passed v3d-rpi4-gles:armhf 7/8 #13660932
igalia-rpi4

00:08:42

passed v3d-rpi4-gles:armhf 8/8 #13660933
igalia-rpi4

00:08:25

passed v3d-rpi4-piglit:armhf 1/4 #13660935
igalia-rpi4

00:09:06

passed v3d-rpi4-piglit:armhf 2/4 #13660936
igalia-rpi4

00:09:50

passed v3d-rpi4-piglit:armhf 3/4 #13660937
igalia-rpi4

00:09:11

passed v3d-rpi4-piglit:armhf 4/4 #13660938
igalia-rpi4

00:09:49

passed vc4-rpi3-egl:armhf #13660925
igalia-rpi3

00:07:21

passed vc4-rpi3-gles:armhf 1/2 #13660923
igalia-rpi3

00:06:59

passed vc4-rpi3-gles:armhf 2/2 #13660924
igalia-rpi3

00:07:14

 
  Freedreno
passed a306_gl 1/5 #13660939
google-freedreno-db410c

00:07:30

passed a306_gl 2/5 #13660940
google-freedreno-db410c

00:07:34

passed a306_gl 3/5 #13660941
google-freedreno-db410c

00:07:35

passed a306_gl 4/5 #13660942
google-freedreno-db410c

00:07:11

passed a306_gl 5/5 #13660943
google-freedreno-db410c

00:07:11

passed a306-traces #13660944
google-freedreno-db410c

00:02:41

passed a530_gl 1/5 #13660945
google-freedreno-db820c

00:07:28

passed a530_gl 2/5 #13660946
google-freedreno-db820c

00:08:35

passed a530_gl 3/5 #13660947
google-freedreno-db820c

00:07:30

passed a530_gl 4/5 #13660948
google-freedreno-db820c

00:07:36

passed a530_gl 5/5 #13660949
google-freedreno-db820c

00:07:48

passed a530_piglit_shader 1/2 #13660950
google-freedreno-db820c

00:08:25

passed a530_piglit_shader 2/2 #13660951
google-freedreno-db820c

00:08:11

passed a530-traces #13660952
google-freedreno-db820c

00:07:29

passed a630_egl #13660957
google-freedreno-cheza

00:02:28

passed a630_gl 1/4 #13660953
google-freedreno-cheza

00:05:39

passed a630_gl 2/4 #13660954
google-freedreno-cheza

00:06:20

passed a630_gl 3/4 #13660955
google-freedreno-cheza

00:05:08

passed a630_gl 4/4 #13660956
google-freedreno-cheza

00:05:54

passed a630_piglit #13660961
google-freedreno-cheza

00:08:33

passed a630-traces #13660962
google-freedreno-cheza

00:03:53

manual a630-traces-performance #13660964
google-freedreno-cheza allowed to fail manual
passed a630-traces-restricted #13660963
google-freedreno-cheza

00:03:15

passed a630_vk 1/3 #13660958
google-freedreno-cheza

00:08:13

passed a630_vk 2/3 #13660959
google-freedreno-cheza

00:09:20

passed a630_vk 3/3 #13660960
google-freedreno-cheza

00:09:04

 
  Software Renderer
passed lavapipe-nir-stress #13660979

00:00:58

passed lavapipe-vk #13660978

00:07:13

passed lavapipe-vk-asan #13660980

00:04:31

passed llvmpipe-deqp 1/2 #13660970

00:04:21

passed llvmpipe-deqp 2/2 #13660971

00:04:14

passed llvmpipe-deqp-asan #13660972

00:02:56

passed llvmpipe-egl #13660973

00:01:40

passed llvmpipe-piglit-cl #13660965

00:02:32

passed llvmpipe-piglit-glslparser #13660967

00:04:06

passed llvmpipe-piglit-quick_gl #13660966

00:05:15

passed llvmpipe-piglit-quick_shader #13660968

00:06:30

passed llvmpipe-traces #13660969

00:01:56

passed softpipe-asan-gles31 #13660976

00:02:39

passed softpipe-deqp 1/2 #13660974

00:04:38

passed softpipe-deqp 2/2 #13660975

00:05:31

passed softpipe-piglit-quick #13660977

00:05:19

 
  Layered Backends
passed test-d3d12-windows #13660993
windows docker 1809 mesa

00:03:23

passed virgl-on-gl 1/6 #13660981
kvm

00:12:32

passed virgl-on-gl 2/6 #13660982
kvm

00:13:14

passed virgl-on-gl 3/6 #13660983
kvm

00:13:03

passed virgl-on-gl 4/6 #13660984
kvm

00:13:32

passed virgl-on-gl 5/6 #13660985
kvm

00:14:16

passed virgl-on-gl 6/6 #13660986
kvm

00:13:30

passed virgl-traces #13660987
kvm

00:03:41

passed zink-lvp-deqp 1/2 #13660991

00:02:55

passed zink-lvp-deqp 2/2 #13660992

00:04:46

passed zink-piglit-lazy #13660990

00:04:37

passed zink-piglit-no_timelines #13660989

00:04:53

passed zink-piglit-timelines #13660988

00:04:48