VirtualBox

Changeset 107707 in vbox


Ignore:
Timestamp:
Jan 13, 2025 3:15:14 PM (7 days ago)
Author:
vboxsync
Message:

Additions: Linux: vboxvideo: Restored .gamma_set callback which was removed in r88784, bugref:4567.

This callback is still needed for legacy DRM stack in order to make DRM_IOCTL_MODE_SETGAMMA ioctl
work when triggered from libdrm. Without it, guest graphics can be freezed with the following
messages in system log:

Page flip failed: drmModeCrtcSetGamma on CRTC XX failed: Function not implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r107705 r107707  
    360360}
    361361
     362#if RTLNX_VER_MIN(4,8,0)
     363static int vbox_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b,
     364                               uint32_t size, struct drm_modeset_acquire_ctx *ctx)
     365{
     366    return 0;
     367}
     368#elif RTLNX_VER_MIN(2,6,29) /* RTLNX_VER_MIN <= 4.8.0 */
     369static void vbox_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b,
     370                               uint32_t size, struct drm_modeset_acquire_ctx *ctx)
     371{
     372}
     373#endif /* RTLNX_VER_MIN >= 4.8.0 */
     374
    362375static void vbox_crtc_destroy(struct drm_crtc *crtc)
    363376{
     
    371384    .reset = vbox_crtc_reset,
    372385    .set_config = drm_crtc_helper_set_config,
    373     /* .gamma_set = vbox_crtc_gamma_set, */
     386#if RTLNX_VER_MIN(2,6,29)
     387    .gamma_set = vbox_crtc_gamma_set,
     388#endif
    374389    .page_flip = vbox_crtc_page_flip,
    375390    .destroy = vbox_crtc_destroy,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette