Returns a valid fd in vkGetFenceFdKHR for signaled VkFence

ANGLE will directly use the fd returned from vkGetFenceFdKHR to
implement eglDupNativeFenceFDANDROID, which will return -1 if
vkGetFenceFdKHR returns a -1 fd, but -1 should be only returned when
error occurs. From the spec:

    Accepted by the <attrib_list> parameter of eglCreateSyncKHR, and returned
    by eglDupNativeFenceFDANDROID in the event of an error:

    EGL_NO_NATIVE_FENCE_FD_ANDROID         -1

This change will fix the bug for ANGLE.

Bug: b/210049299

Test: run the emulator and the game, the video plays
Change-Id: I758de1b4160ddf77866e2adfd593a68b02d34b40
1 file changed