diff options
author | Ilia Mirkin <[email protected]> | 2017-04-18 00:00:40 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-04-29 14:32:20 +0100 |
commit | 6af14778a3f68030c4ad6426c75fe25d726235d5 (patch) | |
tree | 9f694af9da634e1ac838209e8e9f15b75b895cb0 /src/gallium/auxiliary | |
parent | e5c24adc22ab2aaa6a1969799a5fb3d21dd1493c (diff) |
gallium/targets: fix bool setting on BE architectures
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 <[email protected]>
Cc: [email protected]
[Emil Velikov: squash the vmwgfx hunk]
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c index aba814b9283..a4f5cfc03c0 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c @@ -64,13 +64,13 @@ static const struct pipe_loader_ops pipe_loader_drm_ops; #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 * |