mesa_glinterop: rename MESA_GLINTEROP_INVALID_{VALUE,VERSION}
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 3 May 2016 10:10:54 +0000 (11:10 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 May 2016 22:03:00 +0000 (23:03 +0100)
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>
include/GL/mesa_glinterop.h
src/gallium/state_trackers/dri/dri2.c

index a187a121242f723e440870129b082e750038371d..ff3235e958afa0a7440de53b39d8b96337a47c2e 100644 (file)
@@ -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,
index bcca2f21780c41bcc1ea3efd6c831680f7299a8f..8b6af600e3221c6a1804839b206ae3a6105a108a 100644 (file)
@@ -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) {