iris: Do not call syncobj ioctls if handle is invalid

Skip syncobj-handle-to-fd or syncobj-fd-to-handle drm-ioctls in case
arg.handle is invalid

v2: error print out in case it fails to create syncobj in
    iris_fence_create_fd

Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
43 jobs for !3984 with dev/temp-optimized-error-iris-fence in 22 minutes and 29 seconds (queued for 3 seconds)
latest detached
Status Job ID Name Coverage
  Container
passed #1833295
aarch64
arm_build

00:00:27

passed #1833296
aarch64
arm_test

00:00:28

passed #1833292
x86_build

00:00:21

passed #1833294
x86_build_old

00:00:21

passed #1833293
x86_test-gl

00:00:19

 
  Build
passed #1833300
aarch64
meson-arm64

00:10:19

passed #1833301
aarch64
meson-arm64-build-test

00:10:26

passed #1833299
aarch64
meson-armhf

00:11:08

passed #1833302
meson-clang

00:08:42

passed #1833305
meson-clover

00:08:06

passed #1833306
meson-clover-old-llvm

00:07:27

passed #1833308
meson-i386

00:04:34

passed #1833298
meson-main

00:06:24

passed #1833311
meson-mingw32-x86_64

00:04:50

passed #1833310
gstreamer
meson-ppc64el

00:04:16

passed #1833309
gstreamer
meson-s390x

00:05:01

passed #1833297
meson-testing

00:05:59

passed #1833307
meson-vulkan

00:05:11

passed #1833312
scons

00:06:17

passed #1833313
scons-old-llvm

00:04:43

passed #1833303
scons-swr

00:06:03

passed #1833304
scons-win64

00:07:02

 
  Test
passed #1833333
db410c
arm64_a306_gles2

00:05:50

passed #1833330
mesa-cheza
arm64_a630_gles2

00:01:34

passed #1833332
mesa-cheza
arm64_a630_gles3

00:11:33

passed #1833331
mesa-cheza
arm64_a630_gles31

00:04:19

passed #1833318
lava-meson-gxl-s905x-libretech-cc
lima-mali450-test:arm64

00:06:02

passed #1833334
llvmpipe-traces

00:00:29

passed #1833314
lava-sun50i-h6-pine-h64
panfrost-t720-gles2:arm64

00:07:33

passed #1833315
lava-rk3288-veyron-jaq
panfrost-t760-gles2:armhf

00:04:44

passed #1833316
lava-rk3399-gru-kevin
panfrost-t860-gles2:arm64

00:08:35

passed #1833317
lava-rk3399-gru-kevin
panfrost-t860-gles3:arm64

00:10:27

passed #1833320
piglit-glslparser

00:04:31

passed #1833319
piglit-quick_gl

00:07:26

passed #1833321
piglit-quick_shader

00:06:16

passed #1833322
test-llvmpipe-gles2

00:03:44

passed #1833323
test-softpipe-gles2

00:01:43

passed #1833326
test-softpipe-gles31 1/4

00:03:15

passed #1833324
test-softpipe-gles3 1/2

00:05:07

passed #1833327
test-softpipe-gles31 2/4

00:04:18

passed #1833328
test-softpipe-gles31 3/4

00:05:04

passed #1833329
test-softpipe-gles31 4/4

00:02:35

passed #1833325
test-softpipe-gles3 2/2

00:04:00