aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_tile_cache.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'gallium-texture-transfer'Michel Dänzer2009-02-181-70/+92
|\ | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_tile_cache.c
| * gallium: Fix a couple of potential NULL pointer dereferences.Michel Dänzer2009-02-121-22/+33
| | | | | | | | A lot more test programs work.
| * softpipe: Unbreak keeping track of cached surface.Michel Dänzer2009-02-121-4/+3
| | | | | | | | glxgears works.
| * Cosmetic: Rename struct pipe_transfer pointers from 'ps' to 'pt'.Michel Dänzer2009-02-121-14/+14
| | | | | | | | Missed these for the initial gallium-texture-transfer commit.
| * gallium: No longer allow CPU mapping surfaces directly.Michel Dänzer2009-02-051-69/+81
| | | | | | | | | | | | | | | | | | | | 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.
* | softpipe: some improvements to texture tile cacheBrian Paul2009-02-161-4/+12
|/ | | | | | | | | Use a somewhat better function in tex_cache_pos() to get better caching. Increase number of cache entries to 50. Also fix a texture invalidation bug. If texture is marked as modified, invalidate all texture tiles.
* gallium: remove pipe_buffer from surfacesZack Rusin2009-02-021-1/+1
| | | | | | | 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.
* softpipe: remove old/unneeded dependencies between TGSI exec and softpipeBrian2008-11-231-2/+2
| | | | | Use tgsi_sampler struct as a base class. Softpipe subclasses it and adds the fields it needs.
* gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul2008-08-241-2/+2
| | | | Also, rename p_tile.[ch] to u_tile.[ch]
* softpipe: add support for PIPE_FORMAT_X8Z24_UNORM, PIPE_FORMAT_Z24X8_UNORMBrian Paul2008-08-071-0/+2
|
* softpipe: Remove unused variables.José Fonseca2008-07-241-2/+0
|
* util: Eliminate pipe from the arguments to pipe_get/put_tile_xxx functions.José Fonseca2008-07-131-8/+8
| | | | | You don't need a pipe_context * for this, and all other necessary info is already inside pipe_surface.
* gallium: fix some surface usage bugsBrian Paul2008-06-201-0/+10
| | | | | | | | | When a surface is created with GPU_WRITE that really means "GPU render" and that can involve reads (blending). Set surface usage to PIPE_BUFFER_USAGE_CPU_READ + WRITE. Fixes progs/demos/lodbias demo. Also, mark texture as 'modified' when mapped for writing so that the tile cache can know when to freshen a cached tile. Fixes glTexSubImage2D().
* gallium: fix some PIPE_FORMAT_Z24S8_UNORM bugs in softpipe driverBrian Paul2008-05-301-0/+1
|
* Merge commit 'origin/gallium-0.1' into gallium-tex-surfacesKeith Whitwell2008-05-061-6/+6
|\ | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_atom_sampler.c src/mesa/state_tracker/st_cb_texture.c
| * gallium: fix typos, comments, whitespaceBrian Paul2008-05-021-6/+6
| |
* | softpipe: use CPU flags for mappingKeith Whitwell2008-05-011-7/+7
| | | | | | | | But when creating surfaces, adjust incoming flags from GPU->CPU usage.
* | gallium: tex surface checkpointKeith Whitwell2008-05-011-14/+22
|/
* gallium: replace old PIPE_FORMAT_U_S8 with PIPE_FORMAT_S8_UNORMBrian Paul2008-04-301-1/+1
|
* softpipe: make NUM_ENTRIES 32 so that div/mods are easierKeith Whitwell2008-04-221-1/+1
|
* gallium: set tc->surface_map = NULL after unmappingBrian2008-03-191-0/+1
|
* gallium: remove pipe_context->texture_create/release/get_tex_surface()Brian2008-02-271-1/+2
| | | | These functions are now per-screen, not per-context.
* gallium: remove pipe parameter from pipe_texture_reference()Brian2008-02-261-1/+1
| | | | | Added pipe field to pipe_texture (temporary, see comments). First step toward context-less texture creation...
* gallium: new pipe->texture_update() functionBrian2008-02-201-19/+26
| | | | | Called whenever texture data is changed (glTexImage, glTexSubImage, glCopyTexSubImage, etc).
* gallium: use pipe_texture_reference() in sp_tile_cache_set_texture()Brian2008-02-201-2/+3
|
* Code reorganization: update build.José Fonseca2008-02-151-1/+1
| | | | | | | | | Update the Makefiles and includes for the new paths. Note that there hasn't been no separation of the Makefiles yet, and make is jumping all over the place. That will be taken care shortly. But for now, make should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm might require some minor tweaks.
* Code reorganization: move files into their places.José Fonseca2008-02-151-0/+585
This is in a separate commit to ensure renames are properly preserved.