Ticket #10486: accelerantv2-r1.diff

File accelerantv2-r1.diff, 1.1 KB (added by kallisti5, 10 years ago)

revision 1 of the proposed changes, likely needs expanding.

  • headers/os/add-ons/graphics/Accelerant.h

    diff --git a/headers/os/add-ons/graphics/Accelerant.h b/headers/os/add-ons/graphics/Accelerant.h
    index 1322c35..443a853 100644
    a b  
    1616
    1717
    1818#define B_ACCELERANT_ENTRY_POINT    "get_accelerant_hook"
    19 #define B_ACCELERANT_VERSION        1
     19#define B_ACCELERANT_VERSION        2
    2020
    2121
    2222typedef void* (*GetAccelerantHook)(uint32, void*);
    enum {  
    3333    B_UNINIT_ACCELERANT,                /* required */
    3434    B_GET_ACCELERANT_DEVICE_INFO,       /* required */
    3535    B_ACCELERANT_RETRACE_SEMAPHORE,     /* optional */
     36    B_GET_ACCELERANT_HEAD_COUNT,        /* optional */
    3637
    3738    /* mode configuration */
    3839    B_ACCELERANT_MODE_COUNT = 0x100,    /* required */
    typedef struct {  
    176177    uint32  min_vertical_frequency;     /* in Hz */
    177178    uint32  max_vertical_frequency;
    178179    uint32  max_pixel_clock;            /* in kHz */
     180    uint32  connector_type;
     181    uint32  encoder_type;
    179182} monitor_info;
    180183
    181184
    typedef struct {  
    261264
    262265enum {  /* engine capabilities */
    263266    B_2D_ACCELERATION = 1 << 0,
    264     B_3D_ACCELERATION = 1 << 1
     267    B_3D_ACCELERATION = 1 << 1,
     268    B_COMPUTE_ACCELERATION = 1 << 2
    265269};
    266270
    267271