History log of /external/mesa3d/include/GL/internal/dri_interface.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
00978098794f723230a33cab1c1152686f1c4fa5 31-Aug-2012 Jakob Bornecrantz <jakob@vmware.com> dri: Rework planar image interface

As discussed with Kristian on #wayland. Pushes the decision of components into
the dri driver giving it greater freedom to allow t to implement YUV samplers
in hardware, and which mode to use.

This interface will also allow drivers like SVGA to implement YUV surfaces
without the need to sub-allocate and instead send 3 seperate buffers for each
channel, currently not implemented.

I have tested these changes on Gallium Svga. Scott tested them on both intel
and Gallium Radeon. Kristan and Pekka tested them on intel.

v2: Fix typo in dri2_from_planar.
v3: Merge in intel changes.

(cherry picked from commit 6a7dea93fa70d670a5954e47a47075a2703209d4)

Tested-by: Scott Moreau <oreaus@gmail.com>
Tested-by: Pekka Paalanen <ppaalanen@gmail.com>
Tested-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/include/GL/internal/dri_interface.h
93ebec87ed46978942464a6f08801ae06e86fa8b 21-Aug-2012 Jakob Bornecrantz <jakob@vmware.com> dri: Make query image WIDTH and HEIGHT be version 4

Tested-by: Scott Moreau <oreaus@gmail.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/include/GL/internal/dri_interface.h
6bb71b8cbe6b17a5d59e369631502e642804406e 15-Aug-2012 Jakob Bornecrantz <jakob@vmware.com> dri: Remove image write function

Since its not used by anything anymore and no release has gone out
where it was being used.

Tested-by: Scott Moreau <oreaus@gmail.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/include/GL/internal/dri_interface.h
a2ce2eba26639327d6080fbf3dd64d4ff5ac3bcb 18-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> dri2: Note that __DRI_API_GLES2 is also used for OpenGL ES 3.0

Unlike 1.x to 2.0, OpenGL ES 3.0 is backwards compatible with 2.0. Use the
same API flag for both. Applications that specifically want 3.0 will specify
this using the major / minor version attributes.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/include/GL/internal/dri_interface.h
44f066b9ffb7749e872c9cc44ab4d6e2973c2372 13-Jul-2012 Kristian Høgsberg <krh@bitplanet.net> gbm: Add new gbm_bo_import entry point

This generalizes and replaces gbm_bo_create_for_egl_image. gbm_bo_import
will create a gbm_bo from either an EGLImage or a struct wl_buffer.
/external/mesa3d/include/GL/internal/dri_interface.h
c0298348089069716cfc1aee2b25d0857c8be450 05-Jul-2012 Kristian Høgsberg <krh@bitplanet.net> __DRIimage: version 5, add new formats and createSubImage

The additions in version 5 enables creating EGLImages for different planes
of a YUV buffer. createImageFromName is still used to create the containing
__DRIimage, and createSubImage can then be used no that __DRIimage to create
__DRIimages that correspond to the y, u, and v planes (__DRI_IMAGE_FORMAT_R8)
or the uv planes (__DRI_IMAGE_FORMAT_RG88) for formats such as NV12 where
the u and v components are interleaved. Packed formats such as YUYV etc
doesn't require any special treatment, we just sample those as a regular
ARGB texture.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
/external/mesa3d/include/GL/internal/dri_interface.h
a8724d85f8cb2f0fb73b9c6c1f268f9084c6d473 03-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> glx/dri2: Add support for GLX_ARB_create_context_robustness

Add the infrastructure required for this extension. There is no
xserver support and no driver support yet. Drivers can enable this be
advertising DRI2 version 4 and accepting the
__DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS flag and the
__DRI_CTX_ATTRIB_RESET_STRATEGY attribute in create context.

Some additional Mesa infrastructure is needed before drivers can do
this. The GL_ARB_robustness spec, which all Mesa drivers already
advertise, requires:

"If the behavior is LOSE_CONTEXT_ON_RESET_ARB, a graphics reset
will result in the loss of all context state, requiring the
recreation of all associated objects."

It is necessary to land this infrastructure now so that the related
infrastructure can land in the xserver. The xserver has very long
release schedules, and the remaining Mesa parts should land long, long
before the next xserver merge window opens.

v2: Expose robustness as a DRI2 extension rather than bumping
__DRI_DRI2_VERSION.

v3: Add a comment explaining why dri2->base.version >= 3 is also
required for GLX_ARB_create_context_robustness.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/include/GL/internal/dri_interface.h
4fddb2ba21add1c1968330e5224ecead59da3995 02-May-2012 Kristian Høgsberg <krh@bitplanet.net> gbm: Add gbm_bo_write entry point

This new gbm entry point allows writing data into a gbm bo. The bo has
to be created with the GBM_BO_USE_WRITE flag, and it's only required to
work for GBM_BO_USE_CURSOR_64X64 bos.

The gbm API is designed to be the glue layer between EGL and KMS, but there
was never a mechanism initialize a buffer suitable for use with KMS
hw cursors. The hw cursor bo is typically not compatible with anything EGL
can render to, and thus there's no way to get data into such a bo.

gbm_bo_write() fills that gap while staying out of the efficient
cpu->gpu pixel transfer business.

Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
/external/mesa3d/include/GL/internal/dri_interface.h
81f95ce13d92f15df2941a831ddb5a415f0f816e 24-Apr-2012 Sean V Kelley <sean.v.kelley@linux.intel.com> egl/android: Add support for RGBX_8888 used in Android native buffers

Add new format __DRI_IMAGE_FORMAT_XBGR8888 to __DRI_IMAGE.
HAL_PIXEL_FORMAT_RGBX_8888 now maps to __DRI_IMAGE_FORMAT_XBGR8888.

Signed-off-by: Sean V Kelley <sean.v.kelley@linux.intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
/external/mesa3d/include/GL/internal/dri_interface.h
8de5c355fa2bf0f30df2c7cf39aee01e793284bf 21-Feb-2012 Jesse Barnes <jbarnes@virtuousgeek.org> gbm: track buffer format through DRI drivers

GBM needs the buffer format in order to communicate with DRM and clients
for things like scanout.

So track the DRI format requested in the various back ends and use it to
return the DRI format back to GBM when requested. GBM will then map
this into the GBM surface type (which is in turn based on the DRM fb
format list).

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
/external/mesa3d/include/GL/internal/dri_interface.h
221c678329fd1c073d5f8dcf387129cd426ecf07 18-Jan-2012 Kristian Høgsberg <krh@bitplanet.net> gbm: Validate usage flags in gbm_bo_create_from_egl_image()

The entry point is supposed to validate that the EGLImage is suitable for
the passed in usage flags, but that was never implemented.
/external/mesa3d/include/GL/internal/dri_interface.h
b5b2081d75105883c3e7452775c674716b665385 01-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> dri2: Add createContextAttribs entry point for DRISW version 3

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/include/GL/internal/dri_interface.h
1ab545494a6750527cb8b945c286f23a6524826a 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> dri2: Add createContextAttribs entry point for DRI2 version 3

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/include/GL/internal/dri_interface.h
511dc295f82c61acefe026d0f4de43d4a31dbf90 10-Oct-2011 Thomas Hellstrom <thellstrom@vmware.com> dri2: Implement a throttle dri extension.

The X server has limited throttle support on the server side,
but doing this in the client has some benefits:

1) X server throttling is per client. Client side throttling can be done
per drawable.

2) It's easier to control the throttling based on what client is run,
for example using "driconf".

3) X server throttling requires drm swap complete events.

So implement a dri2 throttling extension intended to be used by direct
rendering clients.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
/external/mesa3d/include/GL/internal/dri_interface.h
e3cf7b69f24c186310eb3be4c462cccea028e6f2 21-Aug-2011 Chia-I Wu <olv@lunarg.com> dri2: add __DRI_IMAGE_FORMAT_ABGR8888 to __DRI_IMAGE

Add a new format token, __DRI_IMAGE_FORMAT_ABGR8888, to __DRI_IMAGE. It
maps to MESA_FORMAT_RGBA8888_REV in core mesa or
PIPE_FORMAT_R8G8B8A8_UNORM in gallium. The format is used by
translucent surfaces on Android.
/external/mesa3d/include/GL/internal/dri_interface.h
8c409403217cf8c13e1d2dd306ad5e86b566c5c9 15-Aug-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> dri2: Add __DRI_BUFFER_COUNT token

Remove definition from egl_dri2.
Defining this is egl_dri2.h breaks as soon as
a new dri2 buffer token is added like with commit
4501a5d6e8d00fd0d87625352ed5ba1a8861f72e.
/external/mesa3d/include/GL/internal/dri_interface.h
5fbbd4c19fca6486050990893e8e8c1835ba0b4d 09-Mar-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> dri: Add dupImage to DRIimageExtension
/external/mesa3d/include/GL/internal/dri_interface.h
4501a5d6e8d00fd0d87625352ed5ba1a8861f72e 27-May-2011 Chad Versace <chad@chad-versace.us> dri2: Add token for DRI2BufferHiz

CC: Ian Romanick <idr@freedesktop.org>
CC: Kristian Høgsberg <krh@bitplanet.net>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad@chad-versace.us>
/external/mesa3d/include/GL/internal/dri_interface.h
e5169e9615e8391ea369415b356168717b8f7be0 06-May-2011 Kristian Høgsberg <krh@bitplanet.net> egl: Add a cursor use bit to MESA_drm_image
/external/mesa3d/include/GL/internal/dri_interface.h
1b8ef9416bf3a4d2d47fcf9935063af57da2975d 04-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> Add dri2::{Allocate,Release}Buffer extension
/external/mesa3d/include/GL/internal/dri_interface.h
b43a147128a1144a5fe4afcda412ccaba0c0793b 30-Jan-2011 Haitao Feng <haitao.feng@intel.com> swrast: add an interface createNewContextForAPI

This new interface could set up context for OpenGL,
OpenGL ES1 and OpenGL ES2. It will be used by egl_dri2
driver.

Signed-off-by: Haitao Feng <haitao.feng@intel.com>
/external/mesa3d/include/GL/internal/dri_interface.h
476db2bd3d72440f54ff57c23da05dc1d624fee9 28-Jan-2011 Dave Airlie <airlied@gmail.com> dri: add a placeholder for the framebuffer sRGB capable bit.

This is needed to build the X server GLX_EXT_framebuffer_sRGB bits.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/include/GL/internal/dri_interface.h
e59fa4c46c8857f2e04447777dd197464c95b2cb 09-Jan-2011 Juan Zhao <juan.j.zhao@intel.com> dri2: release texture image.

Add release function for texture_from_pixmap extension.
Some platform need to release texture image for texture_from_pixmap
extension, add this interface for those platforms.
/external/mesa3d/include/GL/internal/dri_interface.h
17eace581d25a626a7d75d9d1205d012cbb14a6e 23-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> dri: Pass the __DRIscreen and the __DRIscreen private back to image lookup

We will typically have a current context when we need to lookup the image,
but the lookup implementation don't need it so drop it.
/external/mesa3d/include/GL/internal/dri_interface.h
9ec0b2a45e18c045fd3dbcdf846fad7faf97494c 22-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontext

We can't expect to have a context when this is called, and we don't need one
so just require a __DRIscreen instead.

Reported by Yu Dai <yu.dai@intel.com>
/external/mesa3d/include/GL/internal/dri_interface.h
5aaa53e66cc49bf0d28ec53bdab4e3b7f714e5ba 04-Jun-2010 Kristian Høgsberg <krh@bitplanet.net> egl_dri2: Add support for MESA_image_drm
/external/mesa3d/include/GL/internal/dri_interface.h
cb2a66fd0c095fe03be5aaf88c8d48f5867425d3 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop support for GLX_MESA_allocate_memory

Only r200 implemented it.
/external/mesa3d/include/GL/internal/dri_interface.h
97a6cbc6dd8e62653d7481c6f651f2a5fb10aa0e 11-May-2010 Kristian Høgsberg <krh@bitplanet.net> dri_interface.h: Add new __DRI_USE_INVALIDATE extension

The presence of this extension indicates to the DRI driver that the
loader will call invalidate in the __DRI2_FLUSH extension, whenever
the needs to query for new buffers. This means that the DRI driver
can drop the polling in glViewport().
/external/mesa3d/include/GL/internal/dri_interface.h
0870e4a2022cff79805613ae7cd4b9237a2f564c 02-May-2010 Kristian Høgsberg <krh@bitplanet.net> Merge branch 'gles2-2'

Conflicts:
src/mesa/drivers/dri/common/dri_util.h
a7a9a91d7b28e5b5faed509d00f0f951e3136b1b 27-Apr-2010 Kristian Høgsberg <krh@bitplanet.net> dri: Add DRI entrypoints to create a context for a given API
/external/mesa3d/include/GL/internal/dri_interface.h
234286c0f8b7d30ed49223c648d4c73c1a517ab3 22-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: add config query extension

Add a new DRI2 configuration query extension. Allows for DRI2 client
code to query for common DRI2 configuration options.
/external/mesa3d/include/GL/internal/dri_interface.h
f4e561ce127cf484d7c76c29b8cd026c9ad5cebc 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: make stride issue profound
/external/mesa3d/include/GL/internal/dri_interface.h
0b932284f2294a1dc02004d3b6ef6dfb633bc4bb 19-Mar-2010 George Sapountzis <gsapountzis@gmail.com> dri_inteface: add define for checking presence of drm.h

__NOT_HAVE_DRM_H is a like a feature, defined by default on specific platforms
and allows to be defined externally as well.

__NOT_HAVE_DRM_H should only be used by xserver and mesa swrast_dri drivers
/external/mesa3d/include/GL/internal/dri_interface.h
79cbcb663d738b424466219cf8a1221eac106a6f 11-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> dri_interface.h: Add DRI image and eglImageLookup extensions

These are used for implementing the various EGLImage extensions.
/external/mesa3d/include/GL/internal/dri_interface.h
61d26bc82e7c4100acfb551cbb0ba9d84bbc4ba5 08-Feb-2010 Francisco Jerez <currojerez@riseup.net> dri2: Event driven buffer validation.

When a buffer invalidation event is received from the X server, the
"invalidate" hook of the DRI2 flush extension is executed: A generic
implementation (dri2InvalidateDrawable) is provided that just bumps
the "pStamp" sequence number in __DRIdrawableRec.

For old servers not supporting buffer invalidation events, the
invalidate hook will be called before flushing the fake front/back
buffer (that's typically once per frame -- not a lot worse than the
situation we were in before).

No effort has been made on preserving backwards compatibility with
version 2 of the flush extension, but I think it's acceptable because
AFAIK no released stack is making use of it.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
/external/mesa3d/include/GL/internal/dri_interface.h
debf00e5fc3828f63e0f99d72c7fa6cd6ce012c5 09-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> dri_interface: Introduce DRI tokens for the texBuffer texture formats

This used to take GLX tokens, but the DRI interface can't depend on GLX
defines. We fix this by introducing DRI tokens that have the same value
as the GLX texture format tokens.
/external/mesa3d/include/GL/internal/dri_interface.h
a35f6bb207efe3c959bbd16a37f2049e5aceeea9 17-Jul-2009 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: add SwapBuffers support

Support the new DRI2 protocol request, DRI2SwapBuffers, in both direct
and indirect rendering context. This request allows the display server
to optimize back->front swaps (e.g. through page flipping) and allows us
to more easily support other GLX features like swap interval and the OML
sync extension in DRI2.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
/external/mesa3d/include/GL/internal/dri_interface.h
d18dd6ad11268c7a6c2835f4f5fa999c735da300 23-Apr-2009 Samuel Thibault <samuel.thibault@ens-lyon.org> GNU/Hurd fixes

Here is a couple of fixes for GNU/Hurd:
- dri_interface.h: no libdrm support either.
- configure.ac:
- GNU/Hurd is a GNU OS with _GNU_SOURCE and PTHREADS.
- GNU needs a couple of flags like other OSes

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
/external/mesa3d/include/GL/internal/dri_interface.h
dbf87f23126cc869637575e9ea2cb58774efe888 21-Apr-2009 Ian Romanick <idr@freedesktop.org> DRI2: Implement interface for drivers to access DRI2GetBuffersWithFormat

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
/external/mesa3d/include/GL/internal/dri_interface.h
82634ee8df7328b9235abd8352d33b0b3d953600 06-Apr-2009 Ian Romanick <idr@freedesktop.org> DRI2: Provide an interface for drivers to flush front-buffer rendering

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
/external/mesa3d/include/GL/internal/dri_interface.h
66175aac7609ad314f25fbdff0d3958af310dc24 18-Mar-2009 Eric Anholt <eric@anholt.net> Fix DRI2 accelerated EXT_texture_from_pixmap with GL_RGB format.

This requires upgrading the interface so that the argument to
glXBindTexImageEXT isn't just dropped on the floor. Note that this only
fixes the accelerated path on Intel, as Mesa's texture format support is
missing x8r8g8b8 support (right now, GL_RGB textures get uploaded as a8r8gb8,
but in this case we're not doing the upload so we can't really work around it
that way).

Fixes bugs with compositors trying to use shaders that use alpha channels, on
windows without a valid alpha channel. Bug #19910 and likely others as well.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/include/GL/internal/dri_interface.h
65562453fba69e862d5e3b381d18db9c40d9353c 19-Feb-2009 Alan Hourihane <alanh@vmware.com> glx: add support for a reallyFlush() function before swap occurs.
/external/mesa3d/include/GL/internal/dri_interface.h
396711b840683809565507e47a4311e5b7503ef2 19-Jan-2009 Alan Hourihane <alanh@vmware.com> dri: add fake front definitions
/external/mesa3d/include/GL/internal/dri_interface.h
8e7599892f5dd2f85a74eccf9ff7a80dd277122b 18-Dec-2008 Jon Turney <jon.turney@dronecode.org.uk> dri: fix for Cygwin compilation, bug 19144
/external/mesa3d/include/GL/internal/dri_interface.h
f56b569e9af356c11869ee49a4669bb01b75397e 13-Aug-2008 Kristian Høgsberg <krh@redhat.com> DRI2: Drop sarea, implement swap buffers in the X server.
/external/mesa3d/include/GL/internal/dri_interface.h
01ac4540f04d47b64aeead8984c92e39b436b5f9 08-Aug-2008 Jeremy Huddleston <jeremyhu@freedesktop.org> Apple: Some changes to fix compilation problems on OSX
/external/mesa3d/include/GL/internal/dri_interface.h
280bf89bd4a6bb7977abb00b88d59234d2c80844 11-May-2008 George Sapountzis <gsap7@yahoo.gr> Add DRI driver that uses the mesa swrast module.
/external/mesa3d/include/GL/internal/dri_interface.h
e82dd8c6e1fa2fff5b960de26961080ba5e9651d 27-Mar-2008 Kristian Høgsberg <krh@redhat.com> DRI interface changes and DRI2 direct rendering support.

Add DRI2 direct rendering support to libGL and add DRI2 client side
protocol code. Extend the GLX 1.3 create drawable functions in
glx_pbuffer.c to call into the DRI driver when possible.

Introduce __DRIconfig, opaque struct that represents a DRI driver
configuration. Get's rid of the open coded __GLcontextModes in the
DRI driver interface and the context modes create and destroy
functions that the loader was requires to provide. glcore.h is no
longer part of the DRI driver interface. The DRI config is GL binding
agnostic, that is, not specific to GLX, EGL or other bindings.

The core API is now also an extension, and the driver exports a list
of extensions as the symbol __driDriverExtensions, which the loader
must dlsym() for. The list of extension will always include the DRI
core extension, which allows creating and manipulating DRI screens,
drawables and contexts. The DRI legacy extension, when available,
provides alternative entry points for creating the DRI objects that
work with the XF86DRI infrastructure.

Change DRI2 client code to not use drm drawables or contexts. We
never used drm_drawable_t's and the only use for drm_context_t was as
a unique identifier when taking the lock. We now just allocate a
unique lock ID out of the DRILock sarea block. Once we get rid of the
lock entirely, we can drop this hack.

Change the interface between dri_util.c and the drivers, so that the
drivers now export the DriverAPI struct as driDriverAPI instead of the
InitScreen entry point. This lets us avoid dlsym()'ing for the DRI2
init screen function to see if DRI2 is supported by the driver.
/external/mesa3d/include/GL/internal/dri_interface.h
dcbe215c015c8dc48440f578023c2b9d12b934e4 10-Mar-2008 Kristian Høgsberg <krh@sasori.boston.redhat.com> DRI2: Make setTexBuffer take a __DRIdrawable instead of a BO handle.

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 0bba0e5be7a4a7275dad1edc34bdcc134ea1f424 to pass in the
event buffer head index on drawable creation.
/external/mesa3d/include/GL/internal/dri_interface.h
0bba0e5be7a4a7275dad1edc34bdcc134ea1f424 10-Mar-2008 Kristian Høgsberg <krh@sasori.boston.redhat.com> DRI2: Add event buffer head as an argument to driCreateNewDrawable().

The DRI driver needs to know where in the buffer to start reading.
/external/mesa3d/include/GL/internal/dri_interface.h
3d608c7a2d451b862ae19b1e01d7299b2c46fe78 04-Mar-2008 Kristian Høgsberg <krh@redhat.com> [dri2] Add tail pointer to reemitDrawableInfo callback.

When the DRI doesn't parse the event buffer for a while, the X server
may overwrite data that the driver didn't get a chance to look at. The
reemitDrawableInfo callback requests that the X server reemit all info
for the specified drawable. To make use of this, the drive needs to know
the new tail pointer so it know where to start reading from.
/external/mesa3d/include/GL/internal/dri_interface.h
6cb3f5c4d8618a14bb7ad1d9df10ed7e648a7b2b 28-Feb-2008 Kristian Høgsberg <krh@redhat.com> Use __DRIextension mechanism providing loader functionality to the driver.

Instead of passing in a fixed struct, the loader now passes in a list
of __DRIextension structs, to advertise the functionality it can provide
to the driver. Each extension is individually versioned and can be
extended or phased out as the interface develops.
/external/mesa3d/include/GL/internal/dri_interface.h
16242a8007f41ab63f9a28bb9a750857c8cdb8af 26-Feb-2008 Kristian Høgsberg <krh@redhat.com> Reduce the versioning madness required to create a DRI2 screen.

Right now the DRI2 screen constructor takes 3 different versions:
DRI, DDX and DRM. This is mostly useless, though:

DRI: The DRI driver doesn't actually care about the DRI protocol,
it only talks to the loader, which in turn speaks DRI protocol. Thus,
the DRI protocol version is of not interest to the DRI driver, but it
needs to know what functionality the loader provides. At this point
that's reflected in the __DRIinterfaceMethods struct and the
internal_version integer.

DDX: The DDX version number is essentially used to track extensions
to the SAREA. With DRI2 the SAREA consists of a number of versioned,
self-describing blocks, so the DDX version is no longer interesting.

DRM: We have the fd, lets just ask the kernel ourselves.
/external/mesa3d/include/GL/internal/dri_interface.h
6e8d21d72f35767e07081a8bee4323aaaf5e2aae 25-Feb-2008 Kristian Høgsberg <krh@redhat.com> Remove GetMSC DriverAPI function.

The DriverAPI is internal to the DRI drivers and GetDrawableMSC
obsoletes GetMSC. Also, since the DRI driver interface has not yet
been released, just drop the getMSC function from the DRI interface
instead using the ABI preserving version mechanism.

Finally, using void pointer privates in the DRI interface is not allowed,
always pass the actual types around (__DRIdrawable in this case) to
enhance type safety and readability of the code.
/external/mesa3d/include/GL/internal/dri_interface.h
6d48779c7e5c9002d1bec4b1266ca05a474218ef 15-Feb-2008 Kristian Høgsberg <krh@redhat.com> Add TTM buffer object based texture from pixmap implementation.

Currently only implemented for intel hw.
/external/mesa3d/include/GL/internal/dri_interface.h
7da5705b090d9c97a9b765d786c5e89afe9d1f25 15-Jan-2008 Kristian Høgsberg <krh@temari.boston.redhat.com> Add new DRI2 infrastructure.
/external/mesa3d/include/GL/internal/dri_interface.h
38fdb47d26055e19d50cd407266b56ed4317ae0a 29-Oct-2007 Jesse Barnes <jesse.barnes@intel.com> Refactor and fix core vblank support

Consolidate support for synchronizing to and retrieving vblank counters. Also
fix the core vblank code to return monotonic MSC counters, which are required
by some GLX extensions. Adding support for multiple pipes to a low level
driver is fairly easy, the Intel 965 driver provides simple example code (see
intel_buffers.c:intelWindowMoved()).

The new code bumps the media stream counter extension version to 2 and adds a
new getDrawableMSC callback. This callback takes a drawablePrivate pointer,
which is used to calculate the MSC value seen by clients based on the actual
vblank counter(s) returned from the kernel. The new drawable private fields
are as follows:
- vblSeq - used for tracking vblank counts for buffer swapping
- vblFlags - flags (e.g. current pipe), updated by low level driver
- msc_base - MSC counter from the last time the current pipe changed
- vblank_base - kernel DRM vblank counter from the last time the pipe changed

Using the above variables, the core vblank code (in vblank.c) can calculate a
monotonic MSC value. The low level DRI drivers are responsible for updating
the current pipe (by setting VBLANK_FLAG_SECONDARY for example in vblFlags)
along with msc_base and vblank_base whenever the pipe associated with a given
drawable changes (again, see intelWindowMoved for an example of this).

Drivers should fill in the GetDrawableMSC DriverAPIRec field to point to
driDrawableGetMSC32 and add code for pipe switching as outlined above to fully
support the new scheme.
/external/mesa3d/include/GL/internal/dri_interface.h
ccff0cb26378ce370fc8697a2a2ada138d2e119e 08-Jun-2007 Kristian Høgsberg <krh@redhat.com> Add a version field to __DRIextension.
/external/mesa3d/include/GL/internal/dri_interface.h
f29f0ae8383888a6493b615edc3bab254cf6df39 22-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move new texOffset extension to the new extension mechanism.
/external/mesa3d/include/GL/internal/dri_interface.h
ecdb45cb29e3209287cc297081596126e955ff2b 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Convert a left-over private void * to __DRIcontext *.
/external/mesa3d/include/GL/internal/dri_interface.h
594006d8b2960b9e49b57c02682289ae900ffc71 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Remove now unused getProcAddress from DRIinterfaceMethods.
/external/mesa3d/include/GL/internal/dri_interface.h
f968f67e6214416f04b8875ce59a94a02f464c81 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Add a DRI_ReadDrawable marker extension to signal read drawable capability.
/external/mesa3d/include/GL/internal/dri_interface.h
106a6f29bbdc71982afd629bdf89369cefd1459e 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move media stream counter entry points to new extension.
/external/mesa3d/include/GL/internal/dri_interface.h
a7a0a2beb54dcb78d7e0ab64cf2f5a6ede8191a4 16-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move GLX_MESA_swap_frame_usage DRI entry points to the new mechanism.
/external/mesa3d/include/GL/internal/dri_interface.h
78a6aa57a0155d72280dd91c05513c847bf76f3b 16-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move GLX_MESA_allocate_memory related functions to new extension mechanism.
/external/mesa3d/include/GL/internal/dri_interface.h
efaf90b03e8b69e04909bce071f8ef6b65cc0e9d 15-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move swap_interval to new extension mechanism.
/external/mesa3d/include/GL/internal/dri_interface.h
ac3e838fa748c8c8a6ffc04d1ab13da71f75f103 15-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move the copySubBuffer extension over to the new mechanism.
/external/mesa3d/include/GL/internal/dri_interface.h
f616a263a25eda135800bea7d3a863c569b93e30 15-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Implement new screen extension API.

This new API lets the loader examine DRI level extensions provided by the
driver in a forward compatible manner.

Much of the churn in the DRI interface is adding support for new
extensions or removing old, unused extensions. This new extension
mechanism lets the loader query the extensions provided by the driver
and implement the extensions it knows about. Deprecating extensions
is done by not exporting that extension in the list, which doesn't
require keeping old function pointers around to preserve ABI.
/external/mesa3d/include/GL/internal/dri_interface.h
295dc2d225ccac1951c0fcc2c08119f31d1b575c 14-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Stop passing in unused fbconfigs to createNewScreen.
/external/mesa3d/include/GL/internal/dri_interface.h
5987a03f994af2bb413d1cf984ab01aa095c0943 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Convert all DRI entrypoints to take pointers to __DRI* types.

The entrypoints take a mix of __DRIscreen * and void * (screen private)
arguments (similarly for contexts and drawables). This patch does away
with passing the private void pointer and always only passes the fully
typed __DRIscreen pointer and always as the first argument.

This makes the interface more consistent and increases type safety, and
catches a bug where we would pass a screen private to DRIdrawable::getSBC.
/external/mesa3d/include/GL/internal/dri_interface.h
aac367f48afc62176faf67aa6f329fbeae2004b4 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Remove screenConfigs from __DRIscreen.

The screenConfigs field of __DRIscreen points back to the containing
__GLXscreenConfigs struct. This is a serious abstraction violation; it
assumes that the loader is libGL and that there *is* a __GLXscreenConfigs
type in the loader.

Using the containerOf macro, we can get from the __DRIscreen pointer to
the containing __GLXscreenConfigs struct, at a place in the stack
where the above is a valid assumption. Besides, the __DRI* structs shouldn't
hold state other than the private pointer.
/external/mesa3d/include/GL/internal/dri_interface.h
fa72013adaab4d0755e852805e2e44d1a879a204 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop mostly unused __DRIid typedef.
/external/mesa3d/include/GL/internal/dri_interface.h
8ed5c7ca0572a09375bdfd411c3804456dac78d6 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop createContext and destroyContext from DRIinterfaceMethods.

As for createDrawable and destroyDrawable, these functions immediately
upon entry to driCreateNewContext and immediately before exit from
driDestroyContext. Instead of passing function pointers back and forth
just obtain the drm_context_t prior to calling DRIscreen::createNewContext
and pass it as a parameter.

This change also lets us keep the DRI context XID in the libGL loader only.
/external/mesa3d/include/GL/internal/dri_interface.h
4ff95e78e19e5902352ea3759d32d9f013255f42 10-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop createDrawable and destroyDrawable fron DRIinterfaceMethods.

All the DRI driver did was call the createDrawable callback immediately
upon entry to DRIscreen::createNewDrawable to get the drm_drawable_t.
We can just call that before calling into the DRI driver and pass the
returned drm_drawable_t as an argument to the DRI entry point.

Likewise for destroyDrawable.

Also, DRIdrawablePrivate::draw isn't used anywhere, and since the
driver no longer needs the XID of the drawable we can now drop that.
/external/mesa3d/include/GL/internal/dri_interface.h
aceccda56b08338e217991e54607f1c9f18fc3e6 10-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop __DRInativeDisplay and pass in __DRIscreen pointers instead.

Many DRI entry points took a __DRInativeDisplay pointer and a screen
index as arguments. The only use for the native display pointer was to
pass it back to the loader when looking up the __DRIscreen for the given
screen index.

Instead, let's just pass in the __DRIscreen pointer directly, which
let's drop the __DRInativeDisplay type and the getScreen function.

The assumption is now that the loader will be able to retrieve context
from the __DRIscreen pointer when necessary.
/external/mesa3d/include/GL/internal/dri_interface.h
b42152061c50e870dc2698ea1d860980ce1198b1 01-May-2007 Kristian Høgsberg <krh@redhat.com> Add macros to generate CreateNewScreen entrypoint.
/external/mesa3d/include/GL/internal/dri_interface.h
4a22ae8d446855d839cc199df8eb1b057045cb88 07-Jan-2007 Kristian Høgsberg <krh@redhat.com> Remove XIDs from DRI interface (see #5714).
/external/mesa3d/include/GL/internal/dri_interface.h
043d219b6da0636886f739613380cf44e334f268 22-May-2007 Michel Dänzer <michel@tungstengraphics.com> Add interfaces for overriding texture images with driver specific 'offsets'.

To be used by AIGLX for GLX_EXT_texture_from_pixmap without several
additional data copies.
/external/mesa3d/include/GL/internal/dri_interface.h
c2b185cff82a6cdb723cda4e05ffe1a213a9de3e 06-Jan-2007 Eric Anholt <eric@anholt.net> Add reporting of damage by DRI drivers when the extension support is available.

With this, tools like ximagesrc in gstreamer correctly see updates from GL
rendering. Support requires that the Xdamage library be current (but will be
disabled if not present) plus a new X Server with support for the new
XDamagePost request. libGL now has a new interface version, and also links
against libXdamage and libXfixes to support it, but backwards compatibility
is retained.

Currently, all drivers report damage at SwapBuffers time through common code --
front buffer rendering doesn't result in damage being reported. Also, the
damage is against the root window, as our drivers don't yet render to backing
store when they should (composited environments).
/external/mesa3d/include/GL/internal/dri_interface.h
f2ad1b60c0da11283b399008f491792790cea294 31-Mar-2006 Brian Paul <brian.paul@tungstengraphics.com> Dave Reveman's patch for GLX_MESA_copy_sub_buffer support
/external/mesa3d/include/GL/internal/dri_interface.h
96f216565e09032021bafa7a805aa7707777fda1 30-Nov-2005 Brian Paul <brian.paul@tungstengraphics.com> assorted fixes for server-side direct rendering (bug 5199)
/external/mesa3d/include/GL/internal/dri_interface.h
68679d2b9e526a351c37c89c78ec50e36f2c9087 28-Jul-2005 Ian Romanick <idr@us.ibm.com> Remove '#if 0' block that was accidentally left in.
/external/mesa3d/include/GL/internal/dri_interface.h
1585c234e0db4bfb7cd85c4111594f6da1582e6f 28-Jul-2005 Ian Romanick <idr@us.ibm.com> Major rip-up of internal function insertion interface. The old
_glapi_add_entrypoint has been replaced by a new routine called
_glapi_add_dispatch. This new routine dynamically assignes dispatch offsets
to functions added. This allows IHVs to add support for extension functions
that do not have assigned dispatch offsets.

It also means that a driver has no idea what offset will be assigned to a
function. The vast majority of the changes in this commit account for that.
An additional table, driDispatchRemapTable, is added. Functions not in the
Linux OpenGL ABI (i.e., anything not in GL 1.2 + ARB_multitexture) has a
fixed offset in this new table. The entry in this table specifies the
offset in of the function in the real dispatch table.

The internal interface was also bumped from version 20050725 to 20050727.

This has been tested with various programs in progs/demos on:

radeon (Radeon Mobility M6)
r128 (Rage 128 Pro)
mga (G400)
/external/mesa3d/include/GL/internal/dri_interface.h
5c6fd3dd4c1b8e95c4da8cc4a52aa310ad324d45 26-Jul-2005 Ian Romanick <idr@us.ibm.com> No, really, get rid of all the remaining references to DRI_USE_NEW_INTERFACE.
A couple other remnants of the old interfaces hit the dust too. Thanks
Jon. :)
/external/mesa3d/include/GL/internal/dri_interface.h
5f1ba3e21b62cee1a4f900a2e6964728f3eeea9b 26-Jul-2005 Ian Romanick <idr@us.ibm.com> Fixes the glXGetProcAddress portion of the interface. Most of the functions
that are currently obtained via glXGetProcAddress and all of the XF86DRI
functions are replaced with a funciton table. This table will be passed to
__driCreateNewScreen.

One of the functions in the table is getProcAddress. This allows some
loaders to expose functionality not in all loaders. This will be immediatly
used for glxEnableExtension (formerly known to drivers as
__glXScrEnableExtension). libGL (and in the future libglx) expose this
function so that drivers can enable GLX extensions. libEGL should exposed
eglEnableExtension to enable EGL extensions. The same function cannot be
used for both because the extensions have different names and (possibly)
different semantics. Drivers can optionally use one, both, or neither.

The key parts are in the __DRIinterfaceMethodsRec structure in
dri_interface.h. A pointer to one of these structures is passed into
__driCreateNewScreen. Because of this, the version of the API is bumped to
20050725. Since the previous version(s) were never in a release, their
existance is erased.

I was actually a little surprised by how much code this cuts from the
drivers. A lot of glXGetProcAddress calls disappear, and a lot of
version checks go with them. Nice.

The one thing I'm not sure of is removing __glXInitialize. For some
reason that function was in the glXGetProcAddress table, but *nothing*
in the Mesa tree used it. Did something with DRI conf. use this
function? It seems odd...
/external/mesa3d/include/GL/internal/dri_interface.h
e9dbe58b8b541d0abb9be9e1000a63776abe678c 24-Jul-2005 Ian Romanick <idr@us.ibm.com> Gut a few more dead bits. Replace uses of the CreateNewScreenFunc typedef
(from glxclient.h) with PFNCREATENEWSCREEN (from dri_interface.h).

Remove the prototype for __driCreateScreen and fix the prototype for
__driCreateNewScreen (append the API version) in dri_interface.h.
/external/mesa3d/include/GL/internal/dri_interface.h
c39bf5e273a4995a279ae2af59fc29e06ab47e29 24-Jul-2005 Ian Romanick <idr@us.ibm.com> All elements of pre-DRI_NEW_INTERFACE_ONLY are removed. This allows
1,402 lines of code to be removed from Mesa (drivers and libGL). The
big winner is dri_util.c.

Primary changes are:

1. Remove all "deprecated" entry-points from the various structures in
dri_interface.h.

2. Rename the remaining fields to removed "version numbers." So,
bindContext3 becomes bindContext. Functions with "New" in the name
(e.g., CreateNewContext) were *not* changed, but that is an option.
Having "New" in the name is less annoying to me than having "3" in the name.

3. Remove all compatibility code that handles cases where the driver or
the loader is too old to support the latest interfaces.

4. Append the API version to the __driCreateNewScreen function name.
This is currently done by hand. In the future (i.e., the next time we
make an incompatible change to the interface) we'll want to come up with
a better way to do this. This prevents old loaders from being able to load
new (incompatible) drivers.

5. Bump the API version to 20050722. All drivers (by way of dri_util.c)
require this version.

6. All drivers are *required* to expose GLX_SGIX_fbconfig and
GLX_OML_swap_method (or the moral equivalents). Support for these
functions in implicit in the use of the "new" interface.

7. Some cases still exist that need to be compiled differently in a loader
or core Mesa versus in a driver. These are identified by the define
IN_DRI_DRIVER.
/external/mesa3d/include/GL/internal/dri_interface.h
86356155018fce96ba3367fd1a48a18cd6db3c40 08-Dec-2004 Alan Hourihane <alanh@tungstengraphics.com> Check for some header defines before redefining functions. Silences warnings.
/external/mesa3d/include/GL/internal/dri_interface.h
c2bffec91a5b6ba72514c875b70dbc96ac97431d 26-Jun-2004 Jon Smirl <jonsmirl@gmail.com> Mesa-solo builds with these changes. There are still more fixups needed to
get individual drivers working again. This converts miniglx to the new
dri interface. Thanks to Erdi Chen for the new interface code.
/external/mesa3d/include/GL/internal/dri_interface.h
ba3d643c49ce16f8dcddac56308588839c55bc87 03-Jun-2004 Jon Smirl <jonsmirl@gmail.com> kill __driRegisterExtensions(), none of the functions did anything
/external/mesa3d/include/GL/internal/dri_interface.h
749e842953a9ea6e1c9070af7f7211bfc48aa1fd 02-Jun-2004 Ian Romanick <idr@us.ibm.com> Replace Bool with GLboolean.
/external/mesa3d/include/GL/internal/dri_interface.h
318aa8409983f3292b4919196df2ca42f4de6a16 02-Jun-2004 Ian Romanick <idr@us.ibm.com> XF86DRIDestroyContext, XF86DRICreateDrawable, and
XF86DRIDestroyDrawable are all called directly from DRI drivers using
the new interface. Therefore, prototypes, using available datatypes,
must be available in dri_interface.h. Since the prototypes are
available there, xf86dri.h is no longer needed for
DRI_NEW_INTERFACE_ONLY builds.
/external/mesa3d/include/GL/internal/dri_interface.h
60b0e12830310e7c05b4043857ed277b28b1c781 01-Jun-2004 Ian Romanick <idr@us.ibm.com> Convert 'Display *' to '__DRInativeDisplay *'. Only portions of the
interface that are not *strictly* part of the old interface were
changed. Replace GetDrawableInfo type (dri_util.h) with
PFNGLXGETDRAWABLEINFOPROC (dri_interface.h). Wrap __driCreateScreen
(in drivers that use the new interface) with '#ifndef
DRI_NEW_INTERFACE_ONLY'.
/external/mesa3d/include/GL/internal/dri_interface.h
fabe2b9ba38e95bd21a35b265bfc403fa3cb2883 01-Jun-2004 Ian Romanick <idr@us.ibm.com> Replace all occurances of XF86DRIClipRect (and related typedefs) with
drm_clip_rect_t.
/external/mesa3d/include/GL/internal/dri_interface.h
74d563cdfbfb07cc666d60dc909e90ddb9949cbb 29-Apr-2004 Keith Whitwell <keith@tungstengraphics.com> Allow *_dri.so to build in Mesa tree with the 'linux-dri' target.
/external/mesa3d/include/GL/internal/dri_interface.h
ab37fddbfdb08d339e6a271b104ecd8c636f4c4c 15-Apr-2004 Ian Romanick <idr@us.ibm.com> Correct the comments about when the bindContext3 / unbindContext3
interface was added.
/external/mesa3d/include/GL/internal/dri_interface.h
192c988c7360d026a6f345b21acc2cdf41977915 23-Mar-2004 Brian Paul <brian.paul@tungstengraphics.com> new DRI interface header
/external/mesa3d/include/GL/internal/dri_interface.h