summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
Commit message (Collapse)AuthorAgeFilesLines
* gallium: Reorg texture usage flagsJakob Bornecrantz2010-03-015-9/+9
| | | | | | | | Introduce a new shared usage and rename primary to scanout. The display target usage is more of a windows concept and doesn't mean the same thing as shared. Display target means that the surface should be presentable, for softpipe this means that it should be backed by a hardware buffer.
* gallium: Expose a opaque winsys handle and functions on pipe_screenJakob Bornecrantz2010-03-015-22/+35
| | | | | | | | | | | Instead of having these functions on a side interface like on drm_api create a opaque winsys_handle that is to be passed down into the winsys. Currently the only thing ported to this new interface is drm_api, and of that only the components that builds by default is ported. All the drivers and any extra state trackers needs to be ported before this can go into master.
* python: Don't mention deprecated drivers=trace option.José Fonseca2010-03-011-1/+1
| | | | Now trace always built.
* st/dri: Assert pointer is not null before dereferencing.Vinson Lee2010-02-271-2/+4
|
* st/xorg: Re-enable crtc on resizeJakob Bornecrantz2010-02-271-3/+21
|
* st/xorg: Fix copy-topyJakob Bornecrantz2010-02-271-1/+1
|
* st/xorg: Make resize fail gracefullyJakob Bornecrantz2010-02-271-14/+55
|
* st/xorg: Obey max {width|height} from kernel and GalliumJakob Bornecrantz2010-02-271-2/+23
|
* st/xorg: Encapsulate all customizable stuff in a separate class.Thomas Hellstrom2010-02-272-14/+39
| | | | | | | | | This avoids exposing the ms driver structure to the winsys, and nicely encapsulates driver customizable stuff. In the future more things might be customizable by the winsys, like throttling, 3D readback etc. Signed-off-by: Thomas Hellstrom <[email protected]>
* st/xorg: A bit more debugging infoJakob Bornecrantz2010-02-271-0/+6
|
* st/xorg: Make default of debugging fallbacks smartJakob Bornecrantz2010-02-271-1/+1
| | | | Set it to the same as 2d acceleration
* st/xorg, vmware/xorg: Fix xnfcalloc arguments.Thomas Hellstrom2010-02-271-1/+1
| | | | Signed-off-by: Thomas Hellstrom <[email protected]>
* python: Fix typo.Michal Krol2010-02-252-1/+1
|
* st/egl: Reduce validation round-trips in DRI2 backend.Chia-I Wu2010-02-251-14/+88
| | | | | | | | | | | | This is similar to the changes to reduce the round-trips in ximage backend. When the server supports DRI_InvalidateBuffers, the event is used to update the server stamp (this path is not tested). Otherwise, the server stamp is updated when flush_frontbuffer or swap_buffers is called. This makes sure at least the client APIs get the new buffers when a new frame is started while skipping all round-trips during the drawing.
* st/egl: Reduce validation round-trips in ximage backend.Chia-I Wu2010-02-252-43/+39
| | | | | | | | | | | ximage_surface_validate is called several times per frame. This commit adds the client and server stamps to reduce the round-trips to the server. The idea is to bump the server stamp when flush_frontbuffer or swap_buffers is called, and to skip the round-trip when the client stamp is equal to the server stamp. This makes sure the client APIs get the new buffers when a new frame is started while skipping all round-trips during the drawing. To make this work, egl_g3d_validate_context is no longer called after swap_buffers.
* st/egl: Refactor dri2_surface_get_buffers.Chia-I Wu2010-02-251-51/+67
| | | | | Add dri2_surface_process_drawable_buffers to process the buffers returned by the server.
* st/egl: Add dri2InvalidateBuffers.Chia-I Wu2010-02-254-19/+74
| | | | | | src/glx/dri2.c will call dri2InvalidateBuffers when DRI2_InvalidateBuffers event is received. This fixes a missing symbol error, and paves the way for event-based validation.
* st/glx: improved depth/stencil format selection codeBrian Paul2010-02-233-43/+71
| | | | | Actually ask the gallium screen what Z/stencil format is supported. This will let us remove some hacks in the llvmpipe driver.
* st/glx: added PIPE_FORMAT_Z24S8_UNORM codeBrian Paul2010-02-231-1/+6
|
* st/egl: Unify surface creation.Chia-I Wu2010-02-231-107/+97
| | | | | Add a new function egl_g3d_create_surface and use it to create window, pixmap, buffer, and screen surfaces.
* st/egl: Disable SHM in ximage backend.Chia-I Wu2010-02-211-3/+10
| | | | | | With pipe_screen::update_buffer being called in st_validate_state, it is likely that softpipe will flush tile caches to a detached SHM segment. Disable SHM for now until a better solution is found.
* st/egl: Properly convert vrefresh to refresh rate.Chia-I Wu2010-02-211-1/+4
| | | | | Some kernels have vrefresh = (refresh rate * 1000) while others don't. Use some heuristics here.
* st/egl: Enable extensions before adding configs.Chia-I Wu2010-02-211-6/+6
| | | | | | | Configs are validated before added. The validation depends on the extensions available. If configs are added before enabling extensions, configs with EGL_SCREEN_SURFACE_MESA bit set will never pass the validation for example.
* st/egl: Do not force validate when update_buffer is called.Chia-I Wu2010-02-211-6/+0
| | | | | st/mesa was changed to call pipe_screen::update_buffer in st_validate_state. In most cases there is no need to validate.
* st/egl: Clean up DRI2 surface.Chia-I Wu2010-02-211-130/+182
| | | | | Mainly to move the call to DRI2GetBuffers from dri2_surface_validate to the new dri2_surface_update_buffers.
* st/egl: Clean up ximage surface.Chia-I Wu2010-02-211-61/+109
| | | | | Mainly to move buffer allocation code from ximage_surface_validate to the new ximage_surface_update_buffers.
* st/xlib: Add assert to check for null pointer dereference.Vinson Lee2010-02-201-0/+1
|
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-192-8/+8
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-192-16/+16
|
* mesa: replace old MEMSET macro with memsetBrian Paul2010-02-191-1/+1
|
* mesa: replace old MEMCPY macro with memcpyBrian Paul2010-02-191-1/+1
|
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-191-2/+2
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_atoi in favor of plain atoi.Kenneth Graunke2010-02-191-2/+2
|
* Remove _mesa_strcmp in favor of plain strcmp.Kenneth Graunke2010-02-191-6/+6
|
* Remove _mesa_strncpy in favor of plain strncpy.Kenneth Graunke2010-02-191-1/+1
|
* Revert "st/mesa: Make the frontbuffer visible on st_flush(PIPE_FLUSH_FRAME)."Francisco Jerez2010-02-181-2/+0
| | | | | | We probably don't want to propagate this condition to the pipe driver, this reverts commit f455ca6490fcb65781b21f81c7117bd923e250d1 and the dri_update_buffer flush altogether until an agreement is reached.
* st/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation.Francisco Jerez2010-02-171-2/+2
|
* st/dri2: Use event-driven buffer validation.Francisco Jerez2010-02-163-4/+27
|
* wgl: Be lenient when sharing contexts.José Fonseca2010-02-151-2/+1
| | | | | | | | | | | | | My first reading of MS docs was wrong. It says: All rendering contexts of a shared display list must use an identical pixel format. Otherwise the results depend on the implementation of OpenGL used. That is, it is OK to share contexts with different pixel formats. Adobe Premiere Pro tries to do that: share lists between a rgbx8 and a rgba8 pixel format.
* python: Reconstruct blend state objects from binary blobs.José Fonseca2010-02-151-0/+17
|
* python: Pretty-printing of blend state.José Fonseca2010-02-142-1/+19
|
* xorg: Use util_format_name().José Fonseca2010-02-141-6/+7
|
* python: Tell swig how to index per-rendertarget blend state.José Fonseca2010-02-141-0/+14
|
* python: Pass p_format.h as-is to swig now that it has no inlines.José Fonseca2010-02-142-155/+1
|
* progs/gallium/python: New home for python statetracker scripts.José Fonseca2010-02-1478-5041/+1
|
* st/python: fix build error after gallium-screen-context mergeMarek Olšák2010-02-141-1/+1
|
* wgl: Implement wglSwapMultipleBuffers.José Fonseca2010-02-134-2/+31
|
* st/xlib: Remove unnecessary header.Vinson Lee2010-02-121-1/+0
|
* wgl: Go into dormant state when DLL is unloaded unclealy.José Fonseca2010-02-121-0/+1
| | | | | | When our DLL is unloaded, even if we leave the data structures in memory for sake of future calls, the MS CRT will destroy the heap. Instead we make all calls no-ops by setting stw_dev to NULL.
* st/dri: don't expose visuals we'll have trouble supportingZack Rusin2010-02-121-9/+20
| | | | | without getBuffersWithFormat some visuals will just cause headaches (crashes), so if we're running on an older system simply don't advertise them.