From 0ebd3cc86318269a1fafc368b0fd95c71b19c634 Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Date: Thu, 21 Dec 2017 17:59:07 -0500 Subject: mesa: fix error codes for importing memory/semaphore FDs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following piglit tests: spec/ext_semaphore_fd/api-errors/import-semaphore-fd-bad-enum spec/ext_memory_object_fd/api-errors/import-memory-fd-bad-enum Signed-off-by: Andres Rodriguez Reviewed-by: Marek Olšák --- src/mesa/main/externalobjects.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/main/externalobjects.c b/src/mesa/main/externalobjects.c index 8f31ba4c354..463debd268a 100644 --- a/src/mesa/main/externalobjects.c +++ b/src/mesa/main/externalobjects.c @@ -809,7 +809,7 @@ _mesa_ImportMemoryFdEXT(GLuint memory, } if (handleType != GL_HANDLE_TYPE_OPAQUE_FD_EXT) { - _mesa_error(ctx, GL_INVALID_VALUE, "%s(handleType=%u)", func, handleType); + _mesa_error(ctx, GL_INVALID_ENUM, "%s(handleType=%u)", func, handleType); return; } @@ -836,7 +836,7 @@ _mesa_ImportSemaphoreFdEXT(GLuint semaphore, } if (handleType != GL_HANDLE_TYPE_OPAQUE_FD_EXT) { - _mesa_error(ctx, GL_INVALID_VALUE, "%s(handleType=%u)", func, handleType); + _mesa_error(ctx, GL_INVALID_ENUM, "%s(handleType=%u)", func, handleType); return; } -- cgit v1.2.3