Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

chivakker
Copy link
Contributor

with libva > 2.0.0 hybrid driver can operate with it as well
so make this load generic to libva installed version

Signed-off-by: Daniel Charles [email protected]

with libva > 2.0.0 hybrid driver can operate with it as well
so make this load generic to libva installed version

Signed-off-by: Daniel Charles <[email protected]>
#include <stdbool.h>
#include "media_drv_defines.h"
#define LIBVA_X11_NAME "libva-x11.so.1"
#define LIBVA_X11_NAME "libva-x11.so"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch seems wrong. The SONAME in libva-2.0.0+ is libva-x11.so.2 and end-users system should not have the unversionned symlink

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this IMHO does not belong here, but just in the implementation file.

There, it can be made dependent on if VA_CHECK_VERSION(1,0,0), so the file name matches the symbols table.

#include <stdbool.h>
#include "media_drv_defines.h"
#define LIBVA_X11_NAME "libva-x11.so.1"
#define LIBVA_X11_NAME "libva-x11.so"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this IMHO does not belong here, but just in the implementation file.

There, it can be made dependent on if VA_CHECK_VERSION(1,0,0), so the file name matches the symbols table.

struct dso_handle *dso_handle;
struct dri_vtable *dri_vtable;

static const struct dso_symbol symbols[] = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other option is to have both versions, here (e.g. symbols[2][] = { { /* .so.1 stuff */ }, { /* .so.2 stuff */ } }) and try both libraries in turn below (handle = dso_open(*.so.2); if (!handle) dso_open(*.so.1); ).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants