| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This is a step forward for compatibility with really old GLX. But the
real reason for making this change now is so that we can make egl_glx a
built-in driver without having to link to libGL.
|
|
|
|
|
|
|
|
|
| |
In preparation for making egl_dri2 built-in. It also handles
symbol lookup error: /usr/local/lib/egl/egl_dri2.so: undefined symbol:
_glapi_get_proc_address
more gracefully.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a context was made current to another surface, the old code did
this
dri2_dpy->core->bindContext(cctx, ddraw, rdraw);
dri2_dpy->core->unbindContext(old_cctx);
and there will be no current context due to the second line.
unbindContext should be called only when bindContext is not. This fixes
a regression since d19afc57. Thanks to Neil Roberts for noticing the
issue and creating a test case.
|
|
|
|
| |
Signed-off-by: Robert Hooker <[email protected]>
|
|
|
|
| |
Correctly set __DRI_API_OPENGL flag.
|
| |
|
|
|
|
|
|
| |
We want to call glFlush when there is a current context. That is,
old_ctx. This is a regression introduced by
d19afc57fe49816f3f3290410e0124d326577be2.
|
|
|
|
|
|
|
|
|
|
| |
Ensure -L$(TOP)/$(LIB_DIR) (the staging dir for build products), appears
in the link line before any -L in $LDFLAGS, so that we link driver we are
building with libEGL we have just built, and not an installed version
[olv: make a similar change to targets/egl]
Signed-off-by: Jon TURNEY <[email protected]>
|
|
|
|
|
| |
Remove all _egl<Res>IsLinked and _egl<Res>IsBound. Update
_eglBindContext and drivers to do reference counting.
|
|
|
|
|
| |
Mainly to rename _eglAddConfig to _eglLinkConfig, along with a few clean
ups.
|
|
|
|
| |
Avoid code duplications.
|
|
|
|
|
|
| |
The opaque nature of EGLImage implies that extensions almost always
define their own attributes. Move attributes in _EGLImage to
_EGLImageAttribs and add a helper function to parse attribute lists.
|
|
|
|
|
| |
The driver was broken since 6eda3f311bc24999835003e404d5eda5599bc5de.
All configs fail to pass _eglValidateConfig.
|
|
|
|
|
| |
_EGLConfig can be directly dereferenced now. Since egl_glx is the last
user of the macros, drop the macros too.
|
|
|
|
| |
_EGLConfig can be directly dereferenced now.
|
|
|
|
| |
I hate GCC for requiring the (int) cast on sizeof.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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 <[email protected]>
|
|
|
|
| |
Point about needing a better way to do this validated.
|
|
|
|
| |
Allows KMS EGL driver to load. We need a better way of doing this.
|
|
|
|
| |
In other words, skip the __GLcontextModes middle man.
|
|
|
|
| |
This driver doesn't work with any of the DRI drivers in the source tree.
|
| |
|
| |
|
| |
|
|
|
|
| |
This lets the egl_dri2 driver initialize on just a DRM fd.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This commit introduces type-safe platform displays internally. A
platform display consists of a generic pointer and an enum that
specifies the platform.
An EGLDisplay is created from a platform display. Native displays
become platform displays whose platform is determined by
_eglGetNativePlatform(). Platform windows and pixmaps may also be
introduced if needed.
|
| |
|
|
|
|
|
| |
It always returns a valid xcb_connection_t, but if connection failed, it's in the
error state.
|
| |
|
|
|
|
|
| |
Drivers need symbols from libEGL. Without back-linking, the build fails
on Cygwin.
|
|
|
|
|
|
|
| |
This extension allows a color buffer to be used for both rendering and
texturing. EGL allows the use of color buffers of pbuffer drawables
for texturing, this extension extends this to allow the use of color
buffers of pixmaps too.
|
| |
|
|
|
|
|
|
|
|
|
| |
This extension adds a new function which provides an alternative to
eglSwapBuffers. eglSwapBuffersRegionNOK accepts two new parameters in
addition to those in eglSwapBuffers. The new parameters consist of a
pointer to a list of 4-integer blocks defining rectangles (x, y,
width, height) and an integer specifying the number of rectangles in
the list.
|
|
|
|
| |
Don't want to shutdown everything if egl_dri2 fails to initialize.
|
|
|
|
| |
Otherwise testing ->Probe for non-NULL and calling it goes boom.
|
|
|
|
|
| |
There are enough EGL modules that they deserve a subdirectory, to avoid
polluting $(TOP)/$(LIB_DIR).
|
|
|
|
| |
Move glapi to src/mapi/{glapi,es1api,es2api}.
|
|\
| |
| |
| |
| | |
Conflicts:
src/mesa/drivers/dri/common/dri_util.h
|
| | |
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| | |
This patch amends the error output string for the case where the
dri2 egl driver could not open the dri dev node.
Signed-off-by: Brian Paul <[email protected]>
|
|\|
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
progs/egl/Makefile
progs/egl/Makefile is gone on master with the egl demos split into
subdirectories. Will require an additional commit.
|
| |
| |
| |
| |
| |
| |
| |
| | |
eglplatform.h pulls in Xlib.h on X11 platforms. Likewise, the egl glx
driver and egl programs needs to link to libX11. Make sure we use the
locations the user told us about.
Signed-off-by: Dan Nicholson <[email protected]>
|
| |
| |
| |
| | |
Forgot to set the enabled bit when I implemented the extension.
|