VirtualBox

Changeset 107715 in vbox


Ignore:
Timestamp:
Jan 13, 2025 4:49:13 PM (7 days ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

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

    r107707 r107715  
    360360}
    361361
    362 #if RTLNX_VER_MIN(4,8,0)
     362#if RTLNX_VER_MIN(5,0,0)
    363363static 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)
     364                        uint32_t size, struct drm_modeset_acquire_ctx *ctx)
    365365{
    366366    return 0;
    367367}
    368 #elif RTLNX_VER_MIN(2,6,29) /* RTLNX_VER_MIN <= 4.8.0 */
     368#elif RTLNX_VER_MIN(4,8,0)
     369static int vbox_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, uint32_t size)
     370{
     371    return 0;
     372}
     373#elif RTLNX_VER_MIN(3,0,0)
    369374static 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 */
     375                         uint32_t start, uint32_t size)
     376{
     377}
     378#elif RTLNX_VER_MIN(2,6,29)
     379static void vbox_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, uint32_t size)
     380{
     381}
     382#endif
    374383
    375384static void vbox_crtc_destroy(struct drm_crtc *crtc)
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