Ticket #10486: accelerantv2-r2.diff

File accelerantv2-r2.diff, 1.2 KB (added by kallisti5, 10 years ago)

revision 2 of the proposed changes, added hook to set display to focus on.

  • 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..2cdde77 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 */
     37    B_SET_ACCELERANT_HEAD_INDEX,        /* optional */
    3638
    3739    /* mode configuration */
    3840    B_ACCELERANT_MODE_COUNT = 0x100,    /* required */
    typedef struct {  
    176178    uint32  min_vertical_frequency;     /* in Hz */
    177179    uint32  max_vertical_frequency;
    178180    uint32  max_pixel_clock;            /* in kHz */
     181    uint32  connector_type;
     182    uint32  encoder_type;
    179183} monitor_info;
    180184
    181185
    typedef struct {  
    261265
    262266enum {  /* engine capabilities */
    263267    B_2D_ACCELERATION = 1 << 0,
    264     B_3D_ACCELERATION = 1 << 1
     268    B_3D_ACCELERATION = 1 << 1,
     269    B_COMPUTE_ACCELERATION = 1 << 2
    265270};
    266271
    267272