One cannot use a single version to control both export_in and export_out
versions. Using this forces us to always extend/bump both structs at the
same time.
An alternative scheme is coming with next patch.
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>
uint32_t vendor_id;
uint32_t device_id;
- /* The interop version determines what behavior the caller should expect
- * out of all functions.
- *
- * Interop version 1:
- * - mesa_glinterop_export_in is not read beyond "out_driver_data"
- * - mesa_glinterop_export_out is not written beyond "out_driver_data_written"
- * - mesa_glinterop_device_info is not written beyond "interop_version"
- */
- uint32_t interop_version;
/* Structure version 1 ends here. */
} mesa_glinterop_device_info;
out->vendor_id = screen->get_param(screen, PIPE_CAP_VENDOR_ID);
out->device_id = screen->get_param(screen, PIPE_CAP_DEVICE_ID);
- out->interop_version = 1;
-
return MESA_GLINTEROP_SUCCESS;
}