val_bool and val_int are in a union. val_bool gets the first byte, which
happens to work on LE when setting via the int, but breaks on BE. By
setting the value properly, we are able to use DRI3 on BE architectures.
Tested by running glxgears with a NV34 in a G5 PPC.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
[Emil Velikov: squash the vmwgfx hunk]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
#ifdef GALLIUM_STATIC_TARGETS
static const struct drm_conf_ret throttle_ret = {
- DRM_CONF_INT,
- {2},
+ .type = DRM_CONF_INT,
+ .val.val_int = 2,
};
static const struct drm_conf_ret share_fd_ret = {
- DRM_CONF_BOOL,
- {true},
+ .type = DRM_CONF_BOOL,
+ .val.val_bool = true,
};
static inline const struct drm_conf_ret *
static const struct drm_conf_ret share_fd_ret = {
.type = DRM_CONF_BOOL,
- .val.val_int = true,
+ .val.val_bool = true,
};
static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
static const struct drm_conf_ret share_fd_ret = {
.type = DRM_CONF_BOOL,
- .val.val_int = true,
+ .val.val_bool = true,
};
static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
static const struct drm_conf_ret share_fd_ret = {
.type = DRM_CONF_BOOL,
- .val.val_int = true,
+ .val.val_bool = true,
};
static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
static const struct drm_conf_ret share_fd_ret = {
.type = DRM_CONF_BOOL,
- .val.val_int = true,
+ .val.val_bool = true,
};
static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
static const struct drm_conf_ret share_fd_ret = {
.type = DRM_CONF_BOOL,
- .val.val_int = true,
+ .val.val_bool = true,
};
static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
static const struct drm_conf_ret share_fd_ret = {
.type = DRM_CONF_BOOL,
- .val.val_int = true,
+ .val.val_bool = true,
};
static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
static const struct drm_conf_ret share_fd_ret = {
.type = DRM_CONF_BOOL,
- .val.val_int = true,
+ .val.val_bool = true,
};
static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)