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>
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,
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);
boolean success;
if (!in->version || !out->version)
- return MESA_GLINTEROP_INVALID_VALUE;
+ return MESA_GLINTEROP_INVALID_VERSION;
/* Validate the target. */
switch (in->target) {