simple-dmabuf-drm: 0 is a valid fd (freedreno)

Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Guido Günther 2018-03-20 09:41:58 +01:00 committed by Pekka Paalanen
parent 029583e56e
commit 324cdf294d
1 changed files with 1 additions and 4 deletions

View File

@ -244,10 +244,7 @@ static int
fd_bo_export_to_prime(struct buffer *buf)
{
buf->dmabuf_fd = fd_bo_dmabuf(buf->fd_bo);
if (buf->dmabuf_fd > 0)
return 0;
return 1;
return buf->dmabuf_fd < 0;
}
static int