Commit 923bdbf4 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

mesa_glinterop: rename MESA_GLINTEROP_INVALID_{VALUE,VERSION}

Be more explicit what it actually does.
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Tested-by: default avatarTom Stellard <thomas.stellard@amd.com>
parent c196de23
...@@ -71,7 +71,7 @@ enum { ...@@ -71,7 +71,7 @@ enum {
MESA_GLINTEROP_OUT_OF_RESOURCES, MESA_GLINTEROP_OUT_OF_RESOURCES,
MESA_GLINTEROP_OUT_OF_HOST_MEMORY, MESA_GLINTEROP_OUT_OF_HOST_MEMORY,
MESA_GLINTEROP_INVALID_OPERATION, MESA_GLINTEROP_INVALID_OPERATION,
MESA_GLINTEROP_INVALID_VALUE, MESA_GLINTEROP_INVALID_VERSION,
MESA_GLINTEROP_INVALID_DISPLAY, MESA_GLINTEROP_INVALID_DISPLAY,
MESA_GLINTEROP_INVALID_CONTEXT, MESA_GLINTEROP_INVALID_CONTEXT,
MESA_GLINTEROP_INVALID_TARGET, MESA_GLINTEROP_INVALID_TARGET,
......
...@@ -1469,7 +1469,7 @@ dri2_interop_query_device_info(__DRIcontext *_ctx, ...@@ -1469,7 +1469,7 @@ dri2_interop_query_device_info(__DRIcontext *_ctx,
struct pipe_screen *screen = dri_context(_ctx)->st->pipe->screen; struct pipe_screen *screen = dri_context(_ctx)->st->pipe->screen;
if (!out->version) if (!out->version)
return MESA_GLINTEROP_INVALID_VALUE; return MESA_GLINTEROP_INVALID_VERSION;
out->pci_segment_group = screen->get_param(screen, PIPE_CAP_PCI_GROUP); out->pci_segment_group = screen->get_param(screen, PIPE_CAP_PCI_GROUP);
out->pci_bus = screen->get_param(screen, PIPE_CAP_PCI_BUS); out->pci_bus = screen->get_param(screen, PIPE_CAP_PCI_BUS);
...@@ -1498,7 +1498,7 @@ dri2_interop_export_object(__DRIcontext *_ctx, ...@@ -1498,7 +1498,7 @@ dri2_interop_export_object(__DRIcontext *_ctx,
boolean success; boolean success;
if (!in->version || !out->version) if (!in->version || !out->version)
return MESA_GLINTEROP_INVALID_VALUE; return MESA_GLINTEROP_INVALID_VERSION;
/* Validate the target. */ /* Validate the target. */
switch (in->target) { switch (in->target) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment