summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers
AgeCommit message (Collapse)AuthorFilesLines
2010-07-03st/egl: Remove unnecessary headers.Vinson Lee1-3/+0
2010-06-30st/egl: Manually free configs on terminate.Chia-I Wu1-1/+13
The configs should be FREE()ed, not free()ed. We cannot rely on _eglCleanupDisplay here.
2010-06-30egl: Store screens in a dynamic array.Chia-I Wu1-7/+10
2010-06-30egl: Store configs in a dynamic array.Chia-I Wu1-3/+3
2010-06-30st/vega: Match MALLOC/FREE for vg_shader.Chia-I Wu1-1/+1
A vg_shader is destroyed with FREE.
2010-06-30st/vega: s/free/FREE for matching MALLOC/CALLOCnobled9-15/+15
[Manually fix a conflict in vg_context.c by Chia-I Wu]
2010-06-30st/xorg: s/free/FREE for matching MALLOC/CALLOCnobled1-1/+1
2010-06-30st/egl: Add egl-gdi target.Chia-I Wu1-1/+1
The target supports OpenVG on Windows with software rasterizer. The egl_g3d_loader defined by the target supports arbitrary client APIs and window systems. It is the SConscript that limits the support to OpenVG and GDI. This commit also fixes a typo in gdi backend.
2010-06-29egl: Remove st/egl probe code.Chia-I Wu8-149/+1
It is no longer needed.
2010-06-29st/egl: Build a single EGL driver.Chia-I Wu1-74/+2
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: Move module loading code to targets.Chia-I Wu18-389/+213
Several changes are made. libegl.a no longer defines _eglMain. It defines functions to create and destroy a _EGLDriver instead. The creation function is called by the targets. It takes an egl_g3d_loader as its argument. The loader is defined by the targets and is in charge of creating st_api and pipe_screen. This allows us to move the module loading code to targets. Lastly, the modules are now loaded as the respective contexts are created.
2010-06-29st/egl: Reorganize targets.Chia-I Wu2-7/+7
Merge all targets into targets/egl/. The target produces egl_gallium_<HW>.so for each pipe driver and st_<API>.so for each client APIs. This enables us to further merge egl_gallium_<HW>.so into egl_gallium.so later.
2010-06-29st/egl: One driver per hardware.Chia-I Wu9-31/+90
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-29st/egl: Introduce native_platform.Chia-I Wu8-107/+137
Move native_get_name, native_create_probe, native_get_probe_result, and native_create_display into struct native_platform, and add native_get_platform to get a handle to the struct.
2010-06-29st_api: Remove st_context::is_visual_supported.Chia-I Wu4-21/+34
The callback is used by st/vega to check if a visual specifies the depth/stencil format. It forces st/vega to be loaded by st/egl to perform the check. As noted in EGL spec, the depth/stencil format of a visual should not affect OpenVG. It should be better to ignore the field and always allocate the depth/stencil texture.
2010-06-28Merge branch 'gallium-drm-driver-drescriptor'Jakob Bornecrantz12-99/+35
Conflicts: src/gallium/state_trackers/egl/x11/native_dri2.c src/gallium/state_trackers/egl/x11/native_x11.c src/gallium/state_trackers/egl/x11/native_x11.h src/gallium/state_trackers/xorg/xorg_driver.c src/gallium/winsys/radeon/drm/radeon_drm.c
2010-06-23egl: Introduce platform displays internally.Chia-I Wu10-28/+23
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 Wu1-3/+3
A platform is already used to mean a window system in EGL. No need to use a different term.
2010-06-11st/egl: Add fbdev backend.Chia-I Wu2-3/+484
The backend is pure software. It implements EGL_MESA_screen_surface extension, and is kept simple by only exporting the current mode.
2010-06-10st/egl: Remove unnecessary header.Vinson Lee1-1/+0
2010-06-09st/xorg: Add a customizable option to disable 3D.Thomas Hellstrom2-3/+17
If no customizer is present, 3D will be enabled by default. Otherwise the option will default to the customizer value. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-06-06gallium: Convert state trackers to drm driver interfaceJakob Bornecrantz12-98/+34
2010-06-04st/egl: Fix compiler warnings.Chia-I Wu1-0/+1
Forgot to stage this chunk in last commit.
2010-06-04st/egl: Move sw screen creation to native helper.Chia-I Wu5-93/+52
The code is shared by ximage and gdi backend.
2010-06-03Merge branch 'gallium-newclear'Roland Scheidegger1-8/+35
Conflicts: src/gallium/state_trackers/python/p_context.i
2010-06-03gallium: rename clearRT / clearDS to clear_render_target / clear_depth_stencilRoland Scheidegger1-13/+13
more consistent with rest of gallium naming conventions. Also rename driver-internal names for these the same.
2010-06-03gallium: add interpolation parameter to simple shader functionsBrian Paul1-1/+2
This lets us specify linear interpolation instead of perspective interpolation for blit operations. Might be a bit faster.
2010-05-31st/xorg, vmware: Make throttling configurable.Thomas Hellstrom4-20/+72
The xorg state tracker gets two new options to let the user choose whether to enable / disable dirty throttling and swapbuffer throttling. The default value of these options are enabled, unless the winsys supplies a customizer with other values. The customizer record has been extended to allow this, and also to set winsys-based throttling on a per- context basis. The vmware part of this patch disables the dirty throttling if the kernel supports command submission throttling, and also in that case sets kernel based throttling for everything but swapbuffers. The vmware winsys does not set throttling per context, even if it theoretically could, but instead sets throttling per screen. This should perhaps be changed, should the xorg state tracker start to use multiple rendering contexts. Kernel throttling is off by default for all new screens/contexts, so the dri state tracker is not affected. This significantly improves interactivity of the vmware xorg driver. Cherry-picked from commit a8f3b3f88acc1f0193fa740e76e9d815f07f32ab Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2010-05-31st/xorg: Fix Xv cliprect scaling.Thomas Hellstrom3-9/+9
Due to a quantization error, different cliprects of scaled video windows may not have identical x / y scale. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-05-31st/xorg Avoid advertizing rotation / reflection support.Thomas Hellstrom1-3/+6
We don't support it yet since we don't implement the shadow allocate functions. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-05-31st/egl: Use stamps only to avoid unnecessary geometry update.Chia-I Wu2-20/+16
resource_surface_add_resources should still be called even when the stamps match. For example, a caller may ask for two different sets of attachments.
2010-05-31gallium: fix TFP on galliumDave Airlie1-0/+2
This fixes an uninitialised value use in the dri2 st when doing TFP. It uses the driContextPriv which isn't initialised at alloc time. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-05-31st/egl: Update KMS backend to use resource_surface.Chia-I Wu2-50/+28
2010-05-31st/egl: Update GDI backend to use resource_surface.Chia-I Wu1-146/+51
2010-05-31st/egl: Update ximage backend to use resource_surface.Chia-I Wu1-186/+52
2010-05-31st/egl: Add helper functions for use by backends.Chia-I Wu3-0/+306
There is only resource_surface for now. It helps manage the resources of a software-based native surface such as XImage or GDI.
2010-05-31st/vega: Use SConscript for Windows build.Chia-I Wu4-9/+61
Fix several portability issues and add SConscript for Windows build.
2010-05-31st/egl: Use OS-specific module suffices.Chia-I Wu1-6/+17
At least, .dll is used on Windows.
2010-05-31st/egl: Add GDI backend.Chia-I Wu3-1/+556
The backend uses Windows GDI driver to provide a software EGL implementation on Windows.
2010-05-30st/python: Expose region_copy/fill_region instead of deprecated ↵José Fonseca1-52/+20
surface_copy/fill
2010-05-30st/vega: Use FREE.Chia-I Wu1-1/+1
Match MALLOC with FREE. Otherwise, it causes weird segfaults when built with memory debugging.
2010-05-30st/egl: Hook eglCreatePbufferFromClientBuffer.Chia-I Wu3-20/+141
This is some refactoring works. Creating a pbuffer from an EGL_OPENVG_IMAGE is still not supported.
2010-05-30st/egl: Fix eglCopyBuffers.Chia-I Wu1-2/+1
It was broken since surface_copy -> resource_copy_region transition.
2010-05-30st/egl: Initialize KMS backend from an fd.Chia-I Wu1-6/+31
Check if the native native is EGL_DEFAULT_DISPLAY. If not, treat it as an fd.
2010-05-29st/python: adapt to clear interface changesRoland Scheidegger1-13/+26
2010-05-27egl/mks: remove extra param from function callBrian Paul1-1/+1
2010-05-27egl_g3d: add missing param to egl_g3d_st_manager_get_egl_image()Brian Paul1-0/+1
2010-05-26st/xorg: Remove unnecessary headers.Vinson Lee2-2/+0
2010-05-26st/dri: Remove dri.c from SCons build.Vinson Lee1-1/+0
This was missed in commit f501230db3a94c9328b8e769d9c17b2c3792e19c. Fixes SCons build.
2010-05-25drm_api: Remove type argument from create screen callbackJakob Bornecrantz3-3/+3
With the removal of DRI1 support there where no use of this argument, some drivers didn't even properly check it.