summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-05-03 11:10:54 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-05-24 23:03:00 +0100
commit923bdbf48c4113326773e98c786e4405b2e1838b (patch)
treee0a9737b27bf2c744bd4b020d459f07898718a45
parentc196de23aece3cea7b30da6d7356b614ee254dae (diff)
downloadexternal_mesa3d-923bdbf48c4113326773e98c786e4405b2e1838b.zip
external_mesa3d-923bdbf48c4113326773e98c786e4405b2e1838b.tar.gz
external_mesa3d-923bdbf48c4113326773e98c786e4405b2e1838b.tar.bz2
mesa_glinterop: rename MESA_GLINTEROP_INVALID_{VALUE,VERSION}
Be more explicit what it actually does. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Tested-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r--include/GL/mesa_glinterop.h2
-rw-r--r--src/gallium/state_trackers/dri/dri2.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h
index a187a12..ff3235e 100644
--- a/include/GL/mesa_glinterop.h
+++ b/include/GL/mesa_glinterop.h
@@ -71,7 +71,7 @@ enum {
MESA_GLINTEROP_OUT_OF_RESOURCES,
MESA_GLINTEROP_OUT_OF_HOST_MEMORY,
MESA_GLINTEROP_INVALID_OPERATION,
- MESA_GLINTEROP_INVALID_VALUE,
+ MESA_GLINTEROP_INVALID_VERSION,
MESA_GLINTEROP_INVALID_DISPLAY,
MESA_GLINTEROP_INVALID_CONTEXT,
MESA_GLINTEROP_INVALID_TARGET,
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c
index bcca2f2..8b6af60 100644
--- a/src/gallium/state_trackers/dri/dri2.c
+++ b/src/gallium/state_trackers/dri/dri2.c
@@ -1469,7 +1469,7 @@ dri2_interop_query_device_info(__DRIcontext *_ctx,
struct pipe_screen *screen = dri_context(_ctx)->st->pipe->screen;
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_bus = screen->get_param(screen, PIPE_CAP_PCI_BUS);
@@ -1498,7 +1498,7 @@ dri2_interop_export_object(__DRIcontext *_ctx,
boolean success;
if (!in->version || !out->version)
- return MESA_GLINTEROP_INVALID_VALUE;
+ return MESA_GLINTEROP_INVALID_VERSION;
/* Validate the target. */
switch (in->target) {