... and make them more explicit.
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>
{
struct pipe_screen *screen = dri_context(_ctx)->st->pipe->screen;
- if (!out->version)
+ /* There is no version 0, thus we do not support it */
+ if (out->version == 0)
return MESA_GLINTEROP_INVALID_VERSION;
out->pci_segment_group = screen->get_param(screen, PIPE_CAP_PCI_GROUP);
unsigned target, usage;
boolean success;
- if (!in->version || !out->version)
+ /* There is no version 0, thus we do not support it */
+ if (in->version == 0 || out->version == 0)
return MESA_GLINTEROP_INVALID_VERSION;
/* Validate the target. */