gallium: fix surface->destroy use-after-free

regen surface on every update framebuffer

Cc: mesa-stable@lists.freedesktop.org

Reviewed-by: Marek Olšák <marek.olsak@amd.com>

Signed-off-by: liuyujun <liuyujun@uniontech.com>
Part-of: <!12520>
145 jobs for !12520 with main in 72 minutes and 31 seconds (queued for 14 seconds)
latest detached
Status Name Job ID Coverage
  Sanity
passed sanity #13246118

00:00:21

 
  Container
passed debian/arm_build #13246121
aarch64

00:00:16

passed debian/x86_build-base #13246119

00:00:17

passed debian/x86_test-base #13246120

00:00:17

passed fedora/x86_build #13246122

00:00:13

passed windows_build_vs2019 #13246123
windows shell 1809 mesa

00:00:09

 
  Container 2
passed debian/android_build #13246128

00:00:17

passed debian/i386_build #13246125

00:00:17

passed debian/ppc64el_build #13246126

00:00:15

passed debian/s390x_build #13246127

00:00:15

passed debian/x86_build #13246124

00:00:13

passed debian/x86_test-gl #13246129

00:00:21

passed debian/x86_test-vk #13246130

00:00:15

passed kernel+rootfs_amd64 #13246131

00:01:14

passed kernel+rootfs_arm64 #13246132
aarch64

00:00:11

passed kernel+rootfs_armhf #13246133
aarch64

00:00:12

 
  Build X86 64
passed debian-clang #13246140

00:09:45

passed debian-clover #13246141

00:02:39

passed debian-clover-testing #13246136

00:01:16

passed debian-gallium #13246137

00:03:04

passed debian-release #13246138

00:03:02

passed debian-testing #13246134

00:01:45

passed debian-testing-asan #13246135

00:02:36

passed debian-vulkan #13246142

00:01:49

passed fedora-release #13246139

00:01:37

 
  Build Misc
passed debian-android #13246144

00:01:17

passed debian-arm64 #13246146
aarch64

00:02:30

passed debian-arm64-asan #13246147
aarch64

00:02:58

passed debian-arm64-build-test #13246148
aarch64

00:01:18

passed debian-armhf #13246145
aarch64

00:01:35

passed debian/arm_test #13246143

00:00:17

passed debian-i386 #13246150

00:00:55

passed debian-mingw32-x86_64 #13246153

00:01:00

passed debian-ppc64el #13246152

00:02:43

passed debian-s390x #13246151
kvm

00:05:59

passed windows-vs2019 #13246149
windows docker 1809 mesa

00:04:34

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

00:06:03

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

00:17:20

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

00:10:19

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

00:08:40

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

00:07:13

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

00:08:59

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

00:11:37

passed radv-fossils #13246157

00:08:25

passed radv_stoney_vkcts:amd64 1/3 #13246154
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:12:50

passed radv_stoney_vkcts:amd64 2/3 #13246155
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:12:49

passed radv_stoney_vkcts:amd64 3/3 #13246156
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt

00:11:49

 
  Intel
passed iris-amly-traces-performance #13246172
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual

00:08:06

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

00:06:39

passed iris-apl-gles2 #13246165
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:04:02

passed iris-apl-gles3 #13246166
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:05:19

passed iris-apl-gles31 #13246167
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:05:40

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

00:05:43

passed iris-apl-traces-performance #13246170
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral manual

00:08:33

passed iris-cml-traces-performance #13246175
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch manual

00:06:36

passed iris-glk-traces-performance #13246171
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual

00:09:31

passed iris-kbl-traces-performance #13246173
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual

00:05:09

passed iris-whl-traces-performance #13246174
mesa-ci-x86-64-lava-dell-latitude-5400-4305U-sarien manual

00:06:51

 
  Arm
passed lima-mali450-test:arm64 #13246176
mesa-ci-x86-64-lava-lima

00:06:39

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

00:09:27

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

00:09:45

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

00:09:26

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

00:09:29

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

00:05:04

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

00:02:46

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

00:07:13

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

00:07:32

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

00:07:32

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

00:05:36

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

00:06:51

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

00:08:21

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

00:08:55

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

00:08:12

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

00:08:06

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

00:08:32

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

00:09:22

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

00:08:19

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

00:08:00

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

00:08:37

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

00:09:28

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

00:08:40

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

00:09:15

passed v3dv-rpi4-vk:arm64 1/8 #13246203
igalia-rpi4

00:08:17

passed v3dv-rpi4-vk:arm64 2/8 #13246204
igalia-rpi4

00:08:09

passed v3dv-rpi4-vk:arm64 3/8 #13246205
igalia-rpi4

00:07:50

passed v3dv-rpi4-vk:arm64 4/8 #13246206
igalia-rpi4

00:08:30

passed v3dv-rpi4-vk:arm64 5/8 #13246207
igalia-rpi4

00:07:58

passed v3dv-rpi4-vk:arm64 6/8 #13246208
igalia-rpi4

00:08:22

passed v3dv-rpi4-vk:arm64 7/8 #13246209
igalia-rpi4

00:07:45

passed v3dv-rpi4-vk:arm64 8/8 #13246210
igalia-rpi4

00:09:03

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

00:06:58

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

00:06:44

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

00:08:01

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

00:07:22

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

00:07:23

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

00:07:20

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

00:07:05

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

00:07:10

passed a306-traces #13246216
google-freedreno-db410c

00:02:30

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

00:07:29

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

00:08:08

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

00:07:39

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

00:08:04

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

00:07:35

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

00:08:33

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

00:09:15

passed a530-traces #13246224
google-freedreno-db820c

00:06:40

passed a630_egl #13246229
google-freedreno-cheza

00:02:33

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

00:05:42

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

00:06:26

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

00:05:18

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

00:06:00

passed a630_piglit #13246233
google-freedreno-cheza

00:08:23

passed a630-traces #13246234
google-freedreno-cheza

00:04:00

canceled a630-traces-performance #13246236
google-freedreno-cheza allowed to fail manual

00:52:18

passed a630-traces-restricted #13246235
google-freedreno-cheza

00:03:12

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

00:09:15

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

00:09:18

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

00:09:18

 
  Software Renderer
passed lavapipe-nir-stress #13246249

00:01:32

passed lavapipe-vk #13246248

00:03:12

passed lavapipe-vk-asan #13246250

00:02:58

passed llvmpipe-deqp 1/2 #13246241

00:10:17

passed llvmpipe-deqp 2/2 #13246242

00:10:50

passed llvmpipe-egl #13246243

00:00:54

passed llvmpipe-piglit-glslparser #13246238

00:04:18

passed llvmpipe-piglit-quick_gl #13246237

00:06:55

passed llvmpipe-piglit-quick_shader #13246239

00:06:13

passed llvmpipe-traces #13246240

00:01:59

passed softpipe-asan-gles31 #13246246

00:03:38

passed softpipe-deqp 1/2 #13246244

00:10:38

passed softpipe-deqp 2/2 #13246245

00:12:05

passed softpipe-piglit-quick #13246247

00:09:15

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

00:03:16

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

00:13:25

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

00:13:18

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

00:12:34

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

00:12:35

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

00:13:57

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

00:13:17

passed virgl-traces #13246257
kvm

00:03:03

passed zink-lvp-deqp 1/2 #13246260

00:02:13

passed zink-lvp-deqp 2/2 #13246261

00:02:21

passed zink-piglit-no_timelines #13246259

00:04:06

passed zink-piglit-timelines #13246258

00:04:13