Skip to content
  • Kristian Høgsberg's avatar
    DRI2: Make setTexBuffer take a __DRIdrawable instead of a BO handle. · dcbe215c
    Kristian Høgsberg authored
    This fixes a problem where texturing from the same Pixmap more than
    once per batchbuffer would hang the DRI driver.  We just use the region
    associated with the front left renderbuffer of the __DRIdrawable for
    texturing, which avoids creating different regions for the same BO.
    
    This change also make GLX_EXT_texture_from_pixmap work for direct
    rendering, since tracking the __DRIdrawable -> BO handle now uses
    the standard DRI2 event buffer.  Of course, DRI2 direct rendering
    doesn't exist yet.
    
    Finally, this commit bumps the DRI interface version again, accounting
    for the change in the DRI_TEX_BUFFER extension and the change in
    commit 0bba0e5b to pass in the
    event buffer head index on drawable creation.
    dcbe215c