d3d12: Validate opened D3D12 resource matches pipe template

Unlike Linux dma-bufs, D3D12 resources are strongly typed, and
can't necessarily just reinterpret the memory arbitrarily.

Allow importing resources with no description coming from the frontend,
and populate the resource desc from the driver instead. If there was
a template, make sure that it matches the incoming resource.
174 jobs for !13054 with misc-gles-patches in 7 seconds (queued for 14 seconds)
detached
Status Name Job ID Coverage
  Sanity
passed sanity #15128418

00:00:07

 
  Container
created debian/android_build #15128433
manual debian/arm_build #15128437
aarch64 manual
created debian/arm_test #15128442
created debian/i386_build #15128429
created debian/ppc64el_build #15128430
created debian/s390x_build #15128431
created debian/x86_build #15128426
manual debian/x86_build-base #15128421
manual
manual debian/x86_test-base #15128434
manual
created debian/x86_test-gl #15128435
created debian/x86_test-vk #15128436
manual fedora/x86_build #15128438
manual
created kernel+rootfs_amd64 #15128439
created kernel+rootfs_arm64 #15128440
aarch64
created kernel+rootfs_armhf #15128441
aarch64
manual windows_build_vs2019 #15128443
windows shell 1809 mesa manual
 
  Build X86 64
created debian-clang #15128450
created debian-clover #15128451
created debian-clover-testing #15128446
created debian-gallium #15128447
created debian-release #15128448
created debian-testing #15128444
created debian-testing-asan #15128445
created debian-vulkan #15128452
created fedora-release #15128449
 
  Build Misc
created debian-android #15128453
created debian-arm64 #15128455
aarch64
created debian-arm64-asan #15128456
aarch64
created debian-arm64-build-test #15128457
aarch64
created debian-armhf #15128454
aarch64
created debian-i386 #15128459
created debian-mingw32-x86_64 #15128462
created debian-ppc64el #15128461
created debian-s390x #15128460
kvm
created windows-vs2019 #15128458
windows docker 1809 mesa
 
  Amd
created radeonsi-stoney-gles2:amd64 #15128467
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles31:amd64 1/2 #15128470
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles31:amd64 2/2 #15128471
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles3:amd64 1/2 #15128468
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles3:amd64 2/2 #15128469
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-piglit-gl:amd64 #15128473
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-traces:amd64 #15128472
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv-fossils #15128466
created radv_stoney_vkcts:amd64 1/3 #15128463
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv_stoney_vkcts:amd64 2/3 #15128464
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv_stoney_vkcts:amd64 3/3 #15128465
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
 
  Intel
created i915-g33-deqp #15128474
anholt-g33 manual
created i915-g33-piglit #15128475
anholt-g33 manual
created i915-g33-traces #15128476
anholt-g33 manual
created iris-amly-deqp 1/3 #15128484
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-deqp 2/3 #15128485
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-deqp 3/3 #15128486
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-egl #15128493
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-piglit 1/3 #15128494
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-piglit 2/3 #15128495
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-piglit 3/3 #15128496
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-traces #15128499
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-apl-deqp 1/3 #15128477
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-deqp 2/3 #15128478
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-deqp 3/3 #15128479
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-egl #15128480
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-traces #15128497
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-cml-deqp 1/2 #15128491
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch manual
created iris-cml-deqp 2/2 #15128492
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch manual
created iris-cml-traces #15128502
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch manual
created iris-glk-deqp 1/2 #15128481
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-deqp 2/2 #15128482
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-egl #15128483
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-traces #15128498
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-kbl-deqp 1/3 #15128487
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-kbl-deqp 2/3 #15128488
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-kbl-deqp 3/3 #15128489
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-kbl-traces #15128500
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-whl-deqp #15128490
mesa-ci-x86-64-lava-dell-latitude-5400-4305U-sarien manual
created iris-whl-traces #15128501
mesa-ci-x86-64-lava-dell-latitude-5400-4305U-sarien manual
 
  Arm
created lima-mali450-test:arm64 #15128503
mesa-ci-x86-64-lava-lima
created panfrost-g52-gl:arm64 1/3 #15128511
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-gl:arm64 2/3 #15128512
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-gl:arm64 3/3 #15128513
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-piglit-gl:arm64 1/2 #15128515
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3 manual
created panfrost-g52-piglit-gl:arm64 2/2 #15128516
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3 manual
created panfrost-g52-vk:arm64 #15128514
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g72-gl:arm64 1/3 #15128517
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16
created panfrost-g72-gl:arm64 2/3 #15128518
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16
created panfrost-g72-gl:arm64 3/3 #15128519
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16
created panfrost-t720-gles2:arm64 #15128504
mesa-ci-x86-64-lava-sun50i-h6-pine-h64
created panfrost-t760-gles2:armhf #15128505
mesa-ci-x86-64-lava-rk3288-veyron-jaq
created panfrost-t760-traces:armhf #15128506
mesa-ci-x86-64-lava-rk3288-veyron-jaq
created panfrost-t860-gl:arm64 1/3 #15128507
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-gl:arm64 2/3 #15128508
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-gl:arm64 3/3 #15128509
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-traces:arm64 #15128510
mesa-ci-x86-64-lava-rk3399-gru-kevin
 
  Broadcom
created v3d-rpi4-egl:armhf #15128531
igalia-rpi4
created v3d-rpi4-gles:armhf 1/8 #15128523
igalia-rpi4
created v3d-rpi4-gles:armhf 2/8 #15128524
igalia-rpi4
created v3d-rpi4-gles:armhf 3/8 #15128525
igalia-rpi4
created v3d-rpi4-gles:armhf 4/8 #15128526
igalia-rpi4
created v3d-rpi4-gles:armhf 5/8 #15128527
igalia-rpi4
created v3d-rpi4-gles:armhf 6/8 #15128528
igalia-rpi4
created v3d-rpi4-gles:armhf 7/8 #15128529
igalia-rpi4
created v3d-rpi4-gles:armhf 8/8 #15128530
igalia-rpi4
created v3d-rpi4-piglit:armhf 1/4 #15128532
igalia-rpi4
created v3d-rpi4-piglit:armhf 2/4 #15128533
igalia-rpi4
created v3d-rpi4-piglit:armhf 3/4 #15128534
igalia-rpi4
created v3d-rpi4-piglit:armhf 4/4 #15128535
igalia-rpi4
created v3dv-rpi4-vk:arm64 1/8 #15128536
igalia-rpi4
created v3dv-rpi4-vk:arm64 2/8 #15128537
igalia-rpi4
created v3dv-rpi4-vk:arm64 3/8 #15128538
igalia-rpi4
created v3dv-rpi4-vk:arm64 4/8 #15128539
igalia-rpi4
created v3dv-rpi4-vk:arm64 5/8 #15128540
igalia-rpi4
created v3dv-rpi4-vk:arm64 6/8 #15128541
igalia-rpi4
created v3dv-rpi4-vk:arm64 7/8 #15128542
igalia-rpi4
created v3dv-rpi4-vk:arm64 8/8 #15128543
igalia-rpi4
created vc4-rpi3-egl:armhf #15128522
igalia-rpi3
created vc4-rpi3-gles:armhf 1/2 #15128520
igalia-rpi3
created vc4-rpi3-gles:armhf 2/2 #15128521
igalia-rpi3
 
  Freedreno
created a306_gl 1/5 #15128544
google-freedreno-db410c
created a306_gl 2/5 #15128545
google-freedreno-db410c
created a306_gl 3/5 #15128546
google-freedreno-db410c
created a306_gl 4/5 #15128547
google-freedreno-db410c
created a306_gl 5/5 #15128548
google-freedreno-db410c
created a306-traces #15128549
google-freedreno-db410c
created a530_gl 1/5 #15128550
google-freedreno-db820c manual
created a530_gl 2/5 #15128551
google-freedreno-db820c manual
created a530_gl 3/5 #15128552
google-freedreno-db820c manual
created a530_gl 4/5 #15128553
google-freedreno-db820c manual
created a530_gl 5/5 #15128554
google-freedreno-db820c manual
created a530_piglit_gl #15128555
google-freedreno-db820c manual
created a530_piglit_shader 1/2 #15128556
google-freedreno-db820c manual
created a530_piglit_shader 2/2 #15128557
google-freedreno-db820c manual
created a530-traces #15128558
google-freedreno-db820c manual
created a630_egl #15128563
google-freedreno-cheza
created a630_gl 1/4 #15128559
google-freedreno-cheza
created a630_gl 2/4 #15128560
google-freedreno-cheza
created a630_gl 3/4 #15128561
google-freedreno-cheza
created a630_gl 4/4 #15128562
google-freedreno-cheza
created a630_piglit #15128569
google-freedreno-cheza
created a630-traces #15128570
google-freedreno-cheza
created a630_vk 1/3 #15128564
google-freedreno-cheza
created a630_vk 2/3 #15128565
google-freedreno-cheza
created a630_vk 3/3 #15128566
google-freedreno-cheza
created a630_vk_full 1/2 #15128567
google-freedreno-cheza manual
created a630_vk_full 2/2 #15128568
google-freedreno-cheza manual
 
  Etnaviv
created gc2000_gles2 #15128571
etnaviv-gc2000 manual
 
  Software Renderer
created lavapipe-nir-stress #15128586
created lavapipe-vk #15128585
created lavapipe-vk-asan #15128587
created llvmpipe-deqp 1/2 #15128577
created llvmpipe-deqp 2/2 #15128578
created llvmpipe-deqp-asan #15128579
created llvmpipe-egl #15128580
created llvmpipe-piglit-cl #15128572
created llvmpipe-piglit-glslparser #15128574
created llvmpipe-piglit-quick_gl #15128573
created llvmpipe-piglit-quick_shader #15128575
created llvmpipe-traces #15128576
created softpipe-asan-gles31 #15128583
created softpipe-deqp 1/2 #15128581
created softpipe-deqp 2/2 #15128582
created softpipe-piglit-quick #15128584
 
  Layered Backends
created test-d3d12-windows #15128600
windows docker 1809 mesa
created virgl-on-gl 1/6 #15128588
kvm
created virgl-on-gl 2/6 #15128589
kvm
created virgl-on-gl 3/6 #15128590
kvm
created virgl-on-gl 4/6 #15128591
kvm
created virgl-on-gl 5/6 #15128592
kvm
created virgl-on-gl 6/6 #15128593
kvm
created virgl-traces #15128594
kvm
created zink-lvp-deqp 1/2 #15128598
created zink-lvp-deqp 2/2 #15128599
created zink-piglit-lazy #15128597
created zink-piglit-no_timelines #15128596
created zink-piglit-timelines #15128595