aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndres Rodriguez <[email protected]>2017-12-21 17:59:07 -0500
committerAndres Rodriguez <[email protected]>2018-01-30 15:13:49 -0500
commit0ebd3cc86318269a1fafc368b0fd95c71b19c634 (patch)
tree9ed5f7344826bcc8bb2cf1bce7a7bf2fa55677c8 /src
parent50b06cbc10dbca1dfee89b529ba9b564cc4ea6f6 (diff)
mesa: fix error codes for importing memory/semaphore FDs
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/externalobjects.c4
1 files changed, 2 insertions, 2 deletions
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;
}