~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to include/GL/internal/dri_interface.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#ifndef DRI_INTERFACE_H
41
41
#define DRI_INTERFACE_H
42
42
 
 
43
#include <stdbool.h>
43
44
#include <stdint.h>
44
45
 
45
46
/**
1634
1635
    *
1635
1636
    * \since 15
1636
1637
    */
1637
 
   unsigned char (*queryDmaBufFormats)(__DRIscreen *screen, int max,
1638
 
                                       int *formats, int *count);
 
1638
   bool (*queryDmaBufFormats)(__DRIscreen *screen, int max, int *formats,
 
1639
                              int *count);
1639
1640
 
1640
1641
   /*
1641
1642
    * dmabuf format modifier query for a given format to support
1656
1657
    *
1657
1658
    * \since 15
1658
1659
    */
1659
 
   unsigned char (*queryDmaBufModifiers)(__DRIscreen *screen, int fourcc,
1660
 
                                         int max, uint64_t *modifiers,
1661
 
                                         unsigned int *external_only,
1662
 
                                         int *count);
 
1660
   bool (*queryDmaBufModifiers)(__DRIscreen *screen, int fourcc, int max,
 
1661
                                uint64_t *modifiers,
 
1662
                                unsigned int *external_only, int *count);
1663
1663
 
1664
1664
   /**
1665
1665
    * dmabuf format modifier attribute query for a given format and modifier.
1675
1675
    *
1676
1676
    * \since 16
1677
1677
    */
1678
 
   unsigned char (*queryDmaBufFormatModifierAttribs)(__DRIscreen *screen,
1679
 
                                                     uint32_t fourcc,
1680
 
                                                     uint64_t modifier,
1681
 
                                                     int attrib,
1682
 
                                                     uint64_t *value);
 
1678
   bool (*queryDmaBufFormatModifierAttribs)(__DRIscreen *screen,
 
1679
                                            uint32_t fourcc, uint64_t modifier,
 
1680
                                            int attrib, uint64_t *value);
1683
1681
 
1684
1682
   /**
1685
1683
    * Create a DRI image from the given renderbuffer.