summaryrefslogtreecommitdiff
path: root/src/egl
AgeCommit message (Collapse)Author
2010-09-24egl: Fix several 'comparison between signed and unsigned integer' warningsIan Romanick
I hate GCC for requiring the (int) cast on sizeof.
2010-09-24egl_glx: Silence piles of 'unused variable' warningsIan Romanick
2010-09-24EGL DRI2: Silence 'missing initializer' warningsIan Romanick
2010-09-24EGL DRI2: Silence piles of 'unused variable' warningsIan Romanick
2010-09-22dri: Pass the __DRIscreen and the __DRIscreen private back to image lookupKristian Høgsberg
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.
2010-09-22dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontextKristian Høgsberg
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>
2010-09-19st/egl: Rename kms backend to drm.Chia-I Wu
The main use of the backend is to support EGL_MESA_drm_display. drm should be a better name.
2010-09-13EGL DRI2: 0xa011 is Pineview not IronlakeJesse Barnes
Point about needing a better way to do this validated.
2010-09-13EGL DRI2: add PCI ID for Ironlake mobileJesse Barnes
Allows KMS EGL driver to load. We need a better way of doing this.
2010-09-10egl: Simplify _eglBindContext.Chia-I Wu
Remove the hard-to-get-right _eglBindContextToSurfaces. As well as fix an assertion failure from b90a3e7d8b1bcd412ddbf2a4803de2756dacd436 when such call sequence is hit eglMakeCurrent(dpy, surf1, surf1, ctx1); eglMakeCurrent(dpy, surf2, surf2, ctx2); eglMakeCurrent(dpy, surf1, surf1, ctx1);
2010-09-09eglglx: Convert glx visuals/fbconfigs straight to EGL configsKristian Høgsberg
In other words, skip the __GLcontextModes middle man.
2010-09-09egl: Remove old egldri driverKristian Høgsberg
This driver doesn't work with any of the DRI drivers in the source tree.
2010-09-10egl: Use _EGL_CHECK_DISPLAY in eglCreateContext.Chia-I Wu
_EGL_CHECK_DISPLAY checks the display and returns from eglCreateContext on error.
2010-09-10egl: Display may be NULL in _eglLookup*.Chia-I Wu
This fixes several NULL dereferences.
2010-08-31egl: Mark EGL_MESA_screen_surface as obsolete.Chia-I Wu
EGL_MESA_drm_{display,image} can achieve the same functionality.
2010-08-25egl_dri2: Add support for MESA_image_drmKristian Høgsberg
2010-08-25egl: Add EGL_MESA_drm_image extensionKristian Høgsberg
Create EGLImages from DRM buffer handles.
2010-08-20egl: Fix context API check and be verbose.Chia-I Wu
The API of the context was not checked against EGL_RENDERABLE_TYPE when there was no attribute list. Move the check to _eglInitContext, and be verbose about common mistakes (EGL_RENDERABLE_TYPE not set, EGL_CONTEXT_CLIENT_VERSION not set, or eglBindAPI not called).
2010-08-20egl: Add egl.def for win32 build.Chia-I Wu
Without the .def file, function names are decorated and cannot be queried by GetProcAddress easily.
2010-08-20egl: Allow core functions to be queried.Chia-I Wu
When _EGL_GET_CORE_ADDRESSES is defined, eglGetProcAddress can be used to query core functions. This is non-standard, but some apps expect it.
2010-08-19st/egl: Fix win32 build.Chia-I Wu
Add new source files to SConscripts.
2010-08-17egl: Add support for EGL_KHR_fence_sync.Chia-I Wu
Individual drivers still need to support and enable the extension.
2010-08-17egl: Add support for EGL_KHR_reusable_sync.Chia-I Wu
Individual drivers still need to support and enable the extension.
2010-07-31egl: Fix '_eglAddAtExitCall' implicit declaration warning.Vinson Lee
2010-07-31egl: Add checks for EGL_MESA_screen_surface.Chia-I Wu
This allows Mesa EGL to be compiled with eglext.h that does not define EGL_MESA_screen_surface.
2010-07-29egl_dri2: Set API version for DRM displayKristian Høgsberg
2010-07-28egl: Fix deref before NULL-checkKristian Høgsberg
2010-07-28egl_dri2: Implement EGL_KHR_surfaceless_* extensionsKristian Høgsberg
2010-07-28egl: EGL_KHR_surfaceless_* extensionsKristian Høgsberg
These extensions allow an application to make a context current by passing EGL_NO_SURFACE for the write and read surface in the call to eglMakeCurrent. The motivation is that applications that only want to render to client API targets (such as OpenGL framebuffer objects) should not need to create a throw-away EGL surface just to get a current context.
2010-07-15egl: Return the correct array size in _eglFlattenArray.Chia-I Wu
The function is used by _eglGetConfigs and _eglGetScreens. The array size should not be limited by the buffer size when the buffer is NULL. This fixes fdo bug #29052.
2010-07-08egl_dri2: Support _EGL_PLATFORM_DRMKristian Høgsberg
This lets the egl_dri2 driver initialize on just a DRM fd.
2010-07-06egl: Remove unnecessary headers.Vinson Lee
2010-07-06egl: Rework driver loading.Chia-I Wu
Driver loading is now splitted into two stages. In the first stage, an _EGLModule is created for each driver: user driver, default drivers, and all files in the search directories that start with "egl_". Modules are not loaded at this stage. In the second stage, each module is loaded to initialize a display. The process stops at the first module that can initialize the display. If eglGetProcAddress is called before eglInitialize, the same code path will be taken to find the first module that supports EGL_DEFAULT_DISPLAY. Because we do not want to initialize the display, drv->Probe is used instead in this case.
2010-07-03egl: Always use EGLAPIENTRY in api function prototypesnobled
Fixes the build on Windows.
2010-06-30egl: Update MaxSize when a dynamic array is grown.Chia-I Wu
2010-06-30egl: Make _eglUnloadDrivers no-op on Windows.Chia-I Wu
Windows unloads DLLs before atexit. Make _eglUnloadDrivers no-op on Windows for now.
2010-06-30egl: Store screens in a dynamic array.Chia-I Wu
2010-06-30egl: Store configs in a dynamic array.Chia-I Wu
2010-06-30egl: Add dynamic array.Chia-I Wu
Dynamic arrays will be used to store configs and screens of a display.
2010-06-29egl: Remove st/egl probe code.Chia-I Wu
It is no longer needed.
2010-06-29egl: Do not call drv->Initialize with global mutex locked.Chia-I Wu
2010-06-29st/egl: Build a single EGL driver.Chia-I Wu
This change makes st/egl build a single egl_gallium.so and multiple st_<API>.so and pipe_<HW>.so. When a display is initialized, the corresponding pipe driver will be loaded. When a context is created, the corresponding state tracker will be loaded. Unlike DRI drivers, no ABI compatibility is maintained. egl_gallium, pipe drivers and state trackers should always be distributed as a single package. As such, there is only a single src/gallium/targets/egl/ that builds everything for the package.
2010-06-29st/egl: One driver per hardware.Chia-I Wu
Merge multiple egl_<platform>_<pipe>.so into a single egl_gallium_<pipe>.so. The environment variable EGL_PLATFORM is now used to modify the return value of _eglGetNativePlatform.
2010-06-23egl: Add support for EGL_MESA_drm_display.Chia-I Wu
The extension defines eglGetDRMDisplay that creates an EGLDisplay from a DRM fd. Calling eglCreateWindowSurace or eglCreatePixmapSurface with such displays will generate EGL_BAD_NATIVE_WINDOW or EGL_BAD_NATIVE_PIXMAP.
2010-06-23egl: Introduce platform displays internally.Chia-I Wu
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.
2010-06-17egl: s/EGL_DISPLAY/EGL_PLATFORM/.Chia-I Wu
A platform is already used to mean a window system in EGL. No need to use a different term.
2010-06-17egl: s/_EGL_PLATFORM/_EGL_OS/ and s/POSIX/UNIX/.Chia-I Wu
A platform means a native window system in EGL. Use OS that follows Gallium instead.
2010-05-31egl: Use SConscript for Windows build.Chia-I Wu
Fix several portability issues and add SConscript for Windows build.
2010-05-31Define PUBLIC to dllexport on MSVC.Chia-I Wu
Define PUBLIC to __declspec(dllexport) when _MVC_VER is defined.
2010-05-31Always define int32_t in compiler headers.Chia-I Wu
eglplatform.h no longer defines int32_t.