summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
Commit message (Collapse)AuthorAgeFilesLines
* gallium: Fix p_refcnt.h for C++ compilers.Michel Dänzer2009-03-091-0/+3
|
* gallium: Use consistent semantics for map ranges in gallium.José Fonseca2009-03-042-12/+20
| | | | | Which are slightly different from ARB_map_buffer_range semantics, since gallium still supports more than one mapping of the same buffer.
* gallium: Ensure map ranges are valid.José Fonseca2009-03-041-0/+4
|
* Merge commit 'origin/master' into gallium-map-rangeJosé Fonseca2009-03-046-139/+126
|\
| * gallium: Unify reference counting.Michel Dänzer2009-03-045-138/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create().
| * st/drm: s/hocks/hooks/Jakob Bornecrantz2009-03-031-1/+1
| |
* | gallium: Massage the interface to more closely resemble ARB_map_buffer_rangeJosé Fonseca2009-03-032-71/+36
| |
* | Merge commit 'origin/master' into gallium-map-rangeJosé Fonseca2009-03-031-0/+1
|\|
| * Merge commit 'origin/gallium-0.1'Keith Whitwell2009-03-031-0/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: scons/gallium.py src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/include/pipe/p_defines.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_exec_draw.c
| | * gallium: New PIPE_BUFFER_USAGE_DONTBLOCK flag.José Fonseca2009-03-021-0/+2
| | | | | | | | | | | | To prevent blocking when mapping a buffer.
| | * tgsi: add tgsi_declaration fields for centroid sampling, invariant optimizationBrian Paul2009-01-061-1/+3
| | | | | | | | | | | | (cherry picked from commit 434e255eae90b0f3d836d452b7d3b0c5aadf78b8)
| | * gallium: Fix PIPE_FORMAT_X8B8G8R8_SNORM definition.Michal Krol2008-12-151-1/+1
| | |
* | | Merge commit 'origin/master' into gallium-map-rangeJosé Fonseca2009-03-023-11/+29
|\| |
| * | Include p_compiler.h in drm_api.h for boolean typedef.Corbin Simpson2009-02-271-0/+2
| | |
| * | st/drm: Seperate get handle for global buffer idsJakob Bornecrantz2009-02-271-3/+12
| | |
| * | gallium: Add support for BSD operating systems, tested with FreeBSDBenjamin Close2009-02-252-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BSD supports pipe in the same way as linux hence options which are safe for linux are also safe for BSD. Define PIPE_OS_BSD in include/pipe/p_config.h and adjust the defines to make use of it. Also define MAP_ANONYMOUS for BSD systems which use MAP_ANON Signed-off-by: Benjamin Close <[email protected]>
| * | st/drm: Bring drm_api.h up to date with latest changesJakob Bornecrantz2009-02-251-4/+7
| | |
* | | gallium: Allow to specify how much will be read / was written in buffer ↵José Fonseca2009-02-242-6/+93
|/ / | | | | | | | | | | | | map/unmap. This allows the pipe driver to do more efficient DMA upload/downloads, by avoiding to read/write unneeded/unmodified data.
* | gallium: Add pipe_buffer_write/read inlines.José Fonseca2009-02-241-0/+38
| | | | | | | | Saves code, and will simplify future interface changes.
* | gallium: add winsys interface for viewport changes to support DRI2Alan Hourihane2009-02-231-0/+5
| |
* | gallium: Define PIPE_PRIM_MAX.José Fonseca2009-02-231-0/+1
| |
* | gallium: Add pipe_transfer_reference().Michel Dänzer2009-02-181-0/+25
| |
* | Merge branch 'gallium-texture-transfer'Michel Dänzer2009-02-184-32/+53
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_tile_cache.c
| * \ Merge branch 'master' into gallium-texture-transferKeith Whitwell2009-02-164-7/+11
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_cb_accum.c src/mesa/state_tracker/st_cb_drawpixels.c
| * | | gallium: No longer allow CPU mapping surfaces directly.Michel Dänzer2009-02-054-32/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, a new pipe_transfer object has to be created and mapped for transferring data between the CPU and a texture. This gives the driver more flexibility for textures in address spaces that aren't CPU accessible. This is a first pass; softpipe/xlib builds and runs glxgears, but it only shows a black window. Looks like something's off related to the Z buffer, so the depth test always fails.
* | | | util: Move p_debug.h into util module.José Fonseca2009-02-182-362/+2
| |/ / |/| | | | | | | | | | | The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
* | | gallium: Rename Size member of TGSI token to NrTokens.Michal Krol2009-02-101-5/+5
| | | | | | | | | | | | | | | Driver writers often got confused and assumed Size to be the number of immediate values in Immediate declaration.
* | | gallium: fixup #includes: p_screen.h does not need anything in p_state.hBrian Paul2009-02-051-1/+3
| | |
* | | gallium: move 'struct pipe_winsys'Brian Paul2009-02-053-1/+3
|/ / | | | | | | Not used in p_state.h but used in p_context.h and p_screen.h
* | gallium: remove pipe_buffer from surfacesZack Rusin2009-02-021-1/+0
| | | | | | | | | | | | | | this change disassociates, at least from the driver perspective, the surface from buffer. surfaces are technically now views on the textures so make it so by hiding the buffer in the internals of textures.
* | gallium: add a convience wrapper for simple screensZack Rusin2009-01-301-1/+0
| | | | | | | | forwards screen calls to the winsys
* | gallium: make p_winsys internalZack Rusin2009-01-303-30/+50
| | | | | | | | | | move it to pipe/internal/p_winsys_screen.h and start converting the state trackers to the screen usage
* | gallium: give the screen priority when it comes to buffer allocationsZack Rusin2009-01-293-37/+107
| | | | | | | | | | | | allows the driver to overwrite buffer allocation, first step on the way to making winsys interface internal to the drivers. state trackers and the code above it will go through the screen
* | gallium: remove redundant size from the constant bufferZack Rusin2009-01-271-1/+0
| | | | | | | | reuse the size of the actual buffer
* | gallium: it's a reference value, not a reference numberZack Rusin2009-01-271-1/+1
| |
* | gallium: standardize api on the prefix "nr"Zack Rusin2009-01-271-1/+1
| |
* | gallium: standardize naming of masksZack Rusin2009-01-271-3/+3
| |
* | gallium: standardize on stride instead of pitch in the interfaceZack Rusin2009-01-272-2/+2
| |
* | gallium: Remove the standalone surfaces.José Fonseca2009-01-203-53/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is mostly just a cosmetic change that cleans-up the interfaces, replacing pipe_winsys::surface_* calls by /** * Allocate storage for a display target surface. * * Often surfaces which are meant to be blitted to the front screen (i.e., * display targets) must be allocated with special characteristics, memory * pools, or obtained directly from the windowing system. * * This callback is invoked by the pipe_screenwhen creating a texture marked * with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET flag to get the underlying * buffer storage. */ struct pipe_buffer *(*surface_buffer_create)(struct pipe_winsys *ws, unsigned width, unsigned height, enum pipe_format format, unsigned usage, unsigned *stride); Most drivers were updated but not all were tested. Use the softpipe pipe driver and the xlib winsys changes as a reference when fixing other drivers.
* | gallium: minor reformattingBrian Paul2009-01-191-6/+9
| |
* | Merge commit 'origin/gallium-0.2' into gallium-xlib-reworkKeith Whitwell2009-01-192-0/+34
|\ \
| * | gallium: Add PIPE_BUFFER_USAGE_DISCARD.Younes Manton2009-01-181-0/+1
| | | | | | | | | | | | | | | | | | When passed to map() signals that the buffer's previous contents are not required, allowing the driver to allocate a new buffer if the current buffer can not be mapped immediately.
| * | egl: Add a egl state_tracker that use GalliumJakob Bornecrantz2009-01-181-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This works on top Gallium and KMS. The only thing that does not work currently is swap buffers for shown mesa screens. So the only fun thing this will produce is a white screen. The driver wishing to us the state_tracker needs to implement the intrace as define in drm_api.h located in gallium/include/state_tracker. And also have a working KMS implementation.
* | | debug: add noprefix version of debug_dump_enumKeith Whitwell2009-01-171-0/+5
|/ /
* | gallium: Define PIPE_TEXTURE_USAGE_DYNAMIC.Younes Manton2009-01-101-0/+1
| | | | | | | | | | Knowing how the client intends to use the texture will give the driver the opportunity to optimize for such cases.
* | gallium: Replace uint64 by standard uint64_t.José Fonseca2009-01-082-2/+1
| | | | | | | | | | uint64 is not (so?) standard, and often redefined by third parties, causing name clashes.
* | gallium: Don't redefine INLINE.José Fonseca2008-12-301-14/+16
| | | | | | | | INLINE is commonly used in third-party headers.
* | gallium: Fix PIPE_FORMAT_X8B8G8R8_SNORM definition.Michal Krol2008-12-151-1/+1
| |
* | gallium: fixes for srgb, new srgb formatsRoland Scheidegger2008-12-121-8/+27
| | | | | | | | | | | | | | | | add some more srgb texture formats, including compressed ones various fixes relating to srgb formats issues: the util code for generating mipmaps will not handle srgb formats correctly (would need to use a linear->srgb conversion shader)
* | gallium: added PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS queryBrian2008-12-041-0/+1
| |