freedreno: Remove assert

In multi-context scenarios, one context writing to a resource can race
with a pctx->flush_resource() on another context/thread.  Which means
that by the end of flush_resource() we can have a new write_batch.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <!11200>
138 jobs for !11200 with fd/traces-hang in 23 minutes and 16 seconds (queued for 7 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #10683284
sanity

00:00:08

 
  Container
passed #10683287
aarch64
arm_build

00:00:28

passed #10683288
windows shell 1809 mesa
windows_build_vs2019

00:00:11

passed #10683285
x86_build-base

00:00:28

passed #10683286
x86_test-base

00:00:27

 
  Container 2
passed #10683293
android_build

00:00:25

passed #10683290
i386_build

00:00:27

passed #10683296
kernel+rootfs_amd64

00:00:24

passed #10683297
aarch64
kernel+rootfs_arm64

00:01:13

passed #10683298
aarch64
kernel+rootfs_armhf

00:00:13

passed #10683291
ppc64el_build

00:00:24

passed #10683292
s390x_build

00:00:27

passed #10683289
x86_build

00:00:26

passed #10683294
x86_test-gl

00:00:23

passed #10683295
x86_test-vk

00:00:23

 
  Meson X86 64
passed #10683304
meson-clang

00:10:55

passed #10683305
meson-clover

00:02:38

passed #10683301
meson-clover-testing

00:03:33

passed #10683302
meson-gallium

00:08:54

passed #10683303
meson-release

00:07:08

passed #10683299
meson-testing

00:04:00

passed #10683300
meson-testing-asan

00:07:47

passed #10683306
meson-vulkan

00:02:33

 
  Build Misc
passed #10683307
arm_test

00:00:26

passed #10683308
meson-android

00:00:49

passed #10683310
aarch64
meson-arm64

00:01:30

passed #10683311
aarch64
meson-arm64-asan

00:03:46

passed #10683312
aarch64
meson-arm64-build-test

00:01:24

passed #10683309
aarch64
meson-armhf

00:01:42

passed #10683314
meson-i386

00:02:32

passed #10683317
meson-mingw32-x86_64

00:02:33

passed #10683316
meson-ppc64el

00:03:57

passed #10683315
kvm
meson-s390x

00:03:35

passed #10683313
mesa windows docker 1809
meson-windows-vs2019

00:05:16

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

00:07:57

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

00:16:37

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

00:16:27

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

00:09:59

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

00:09:08

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

00:18:03

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

00:16:45

 
  Intel
passed #10683329
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-egl

00:07:23

passed #10683328
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-gl

00:09:45

passed #10683325
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-gles2

00:07:18

passed #10683326
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-gles3

00:09:36

passed #10683327
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-gles31

00:12:49

passed #10683330
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-traces

00:16:46

 
  Arm
passed #10683340
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
panfrost-g52-gles31:arm64

00:11:10

passed #10683338
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
panfrost-g52-gles3:arm64 1/2

00:08:40

passed #10683339
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
panfrost-g52-gles3:arm64 2/2

00:09:02

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

00:09:25

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

00:07:05

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

00:11:55

passed #10683336
mesa-ci-x86-64-lava-rk3399-gru-kevin
panfrost-t860-gles31:arm64

00:08:02

passed #10683334
mesa-ci-x86-64-lava-rk3399-gru-kevin
panfrost-t860-gles3:arm64 1/2

00:07:54

passed #10683335
mesa-ci-x86-64-lava-rk3399-gru-kevin
panfrost-t860-gles3:arm64 2/2

00:07:50

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

00:05:51

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

00:06:45

passed #10683353
igalia-rpi4
v3d-rpi4-gles2:armhf

00:07:08

passed #10683347
igalia-rpi4
v3d-rpi4-gles31:armhf 1/2

00:09:39

passed #10683348
igalia-rpi4
v3d-rpi4-gles31:armhf 2/2

00:10:00

passed #10683349
igalia-rpi4
v3d-rpi4-gles3:armhf 1/4

00:09:12

passed #10683350
igalia-rpi4
v3d-rpi4-gles3:armhf 2/4

00:09:43

passed #10683351
igalia-rpi4
v3d-rpi4-gles3:armhf 3/4

00:07:53

passed #10683352
igalia-rpi4
v3d-rpi4-gles3:armhf 4/4

00:08:51

passed #10683356
igalia-rpi4
v3d-rpi4-khr-gles2:armhf

00:01:57

passed #10683354
igalia-rpi4
v3d-rpi4-khr-gles31:armhf

00:03:09

passed #10683355
igalia-rpi4
v3d-rpi4-khr-gles3:armhf

00:03:59

passed #10683358
igalia-rpi4
v3d-rpi4-piglit:armhf 1/3

00:11:08

passed #10683359
igalia-rpi4
v3d-rpi4-piglit:armhf 2/3

00:10:35

passed #10683360
igalia-rpi4
v3d-rpi4-piglit:armhf 3/3

00:11:05

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

00:06:58

passed #10683341
igalia-rpi3
vc4-rpi3-gles2:armhf 1/4

00:04:15

passed #10683342
igalia-rpi3
vc4-rpi3-gles2:armhf 2/4

00:04:01

passed #10683343
igalia-rpi3
vc4-rpi3-gles2:armhf 3/4

00:04:13

passed #10683344
igalia-rpi3
vc4-rpi3-gles2:armhf 4/4

00:05:29

passed #10683345
igalia-rpi3
vc4-rpi3-khr-gles2:armhf

00:01:52

 
  Freedreno
passed #10683361
google-freedreno-db410c
a306_gles2

00:04:55

passed #10683362
google-freedreno-db410c
a306_gles3 1/3

00:09:14

passed #10683363
google-freedreno-db410c
a306_gles3 2/3

00:08:55

passed #10683364
google-freedreno-db410c
a306_gles3 3/3

00:09:08

passed #10683365
google-freedreno-db410c
a306_gles3_options

00:03:52

passed #10683366
google-freedreno-db410c
a306-traces

00:03:09

passed #10683367
google-freedreno-db820c
a530_gles2

00:06:12

passed #10683370
google-freedreno-db820c
a530_gles31 1/2

00:06:10

passed #10683368
google-freedreno-db820c
a530_gles3 1/2

00:08:32

passed #10683371
google-freedreno-db820c
a530_gles31 2/2

00:07:52

passed #10683369
google-freedreno-db820c
a530_gles3 2/2

00:07:27

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

00:08:57

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

00:09:36

passed #10683374
google-freedreno-db820c
a530-traces

00:09:44

passed #10683379
google-freedreno-cheza
a630_egl

00:02:24

passed #10683378
google-freedreno-cheza
a630_gl

00:01:29

passed #10683375
google-freedreno-cheza
a630_gles2

00:01:39

passed #10683377
google-freedreno-cheza
a630_gles3

00:04:50

passed #10683376
google-freedreno-cheza
a630_gles31

00:04:08

passed #10683380
google-freedreno-cheza
a630_gles_others

00:02:51

passed #10683384
google-freedreno-cheza
a630_piglit

00:09:35

passed #10683385
google-freedreno-cheza
a630-traces

00:04:21

passed #10683381
google-freedreno-cheza
a630_vk 1/2

00:10:52

passed #10683382
google-freedreno-cheza
a630_vk 2/2

00:10:41

passed #10683383
google-freedreno-cheza
a630_vk_sysmem

00:02:15

 
  Software Renderer
passed #10683408
lavapipe-nir-stress

00:02:02

passed #10683407
lavapipe-vk

00:03:09

passed #10683396
llvmpipe-egl

00:00:55

passed #10683394
llvmpipe-gl

00:01:51

passed #10683391
llvmpipe-gles2

00:02:53

passed #10683392
llvmpipe-gles3

00:05:19

passed #10683393
llvmpipe-gles31

00:09:56

passed #10683395
llvmpipe-khr-gles2

00:00:30

passed #10683386
llvmpipe-piglit-cl

00:01:45

passed #10683388
llvmpipe-piglit-glslparser

00:04:33

passed #10683387
llvmpipe-piglit-quick_gl

00:07:01

passed #10683389
llvmpipe-piglit-quick_shader

00:07:49

passed #10683390
llvmpipe-traces

00:02:05

passed #10683404
softpipe-asan-gles31

00:01:28

passed #10683406
softpipe-gl

00:01:08

passed #10683397
softpipe-gles2

00:01:50

passed #10683398
softpipe-gles3

00:03:01

passed #10683399
softpipe-gles31 1/2

00:05:54

passed #10683400
softpipe-gles31 2/2

00:05:46

passed #10683401
softpipe-khr-gles2

00:00:44

passed #10683402
softpipe-khr-gles3

00:00:48

passed #10683403
softpipe-khr-gles31

00:00:40

passed #10683405
softpipe-piglit-quick

00:09:00

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

00:03:23

passed #10683413
virgl-gl30-on-gl

00:00:37

passed #10683414
virgl-gl31-on-gl

00:01:07

passed #10683415
virgl-gl32-on-gl

00:01:10

passed #10683409
virgl-gles2-on-gl

00:02:15

passed #10683411
virgl-gles31-on-gl 1/2

00:04:31

passed #10683412
virgl-gles31-on-gl 2/2

00:03:02

passed #10683410
virgl-gles3-on-gl

00:02:56

passed #10683416
kvm
virgl-traces

00:05:40

passed #10683420
zink-lvp-gl

00:01:50

passed #10683418
zink-lvp-gles2

00:02:49

passed #10683419
zink-lvp-gles3

00:03:26

passed #10683417
zink-piglit-quick_gl

00:03:26