summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_tile_cache.c
AgeCommit message (Collapse)Author
2009-04-06softpipe: clean up the buffer clear and tile cache code a littleBrian Paul
2009-04-03softpipe: add additional surface formats in tile cache codeBrian Paul
2009-03-18softpipe: more texture transfer fixes.Brian Paul
Need to null-out pointers after freeing transfer objects. Fix mix-ups between tc->transfer and tc->tex_trans fields.
2009-03-18softpipe: need to set tc->transfer=NULL after destroying the transfer objectBrian Paul
This fixes a number of crashes/regressions in programs such as lodbias.c, mipmap_limits.c, etc.
2009-03-04gallium: Unify reference counting.Michel Dänzer
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().
2009-02-18Merge branch 'gallium-texture-transfer'Michel Dänzer
Conflicts: src/gallium/drivers/softpipe/sp_tile_cache.c
2009-02-16softpipe: some improvements to texture tile cacheBrian Paul
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.
2009-02-12gallium: Fix a couple of potential NULL pointer dereferences.Michel Dänzer
A lot more test programs work.
2009-02-12softpipe: Unbreak keeping track of cached surface.Michel Dänzer
glxgears works.
2009-02-12Cosmetic: Rename struct pipe_transfer pointers from 'ps' to 'pt'.Michel Dänzer
Missed these for the initial gallium-texture-transfer commit.
2009-02-05gallium: No longer allow CPU mapping surfaces directly.Michel Dänzer
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.
2009-02-02gallium: remove pipe_buffer from surfacesZack Rusin
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.
2008-11-23softpipe: remove old/unneeded dependencies between TGSI exec and softpipeBrian
Use tgsi_sampler struct as a base class. Softpipe subclasses it and adds the fields it needs.
2008-08-24gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul
Also, rename p_tile.[ch] to u_tile.[ch]
2008-08-07softpipe: add support for PIPE_FORMAT_X8Z24_UNORM, PIPE_FORMAT_Z24X8_UNORMBrian Paul
2008-07-24softpipe: Remove unused variables.José Fonseca
2008-07-13util: Eliminate pipe from the arguments to pipe_get/put_tile_xxx functions.José Fonseca
You don't need a pipe_context * for this, and all other necessary info is already inside pipe_surface.
2008-06-20gallium: fix some surface usage bugsBrian Paul
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().
2008-05-30gallium: fix some PIPE_FORMAT_Z24S8_UNORM bugs in softpipe driverBrian Paul
2008-05-06Merge commit 'origin/gallium-0.1' into gallium-tex-surfacesKeith Whitwell
Conflicts: src/mesa/state_tracker/st_atom_sampler.c src/mesa/state_tracker/st_cb_texture.c
2008-05-02gallium: fix typos, comments, whitespaceBrian Paul
2008-05-01softpipe: use CPU flags for mappingKeith Whitwell
But when creating surfaces, adjust incoming flags from GPU->CPU usage.
2008-05-01gallium: tex surface checkpointKeith Whitwell
2008-04-30gallium: replace old PIPE_FORMAT_U_S8 with PIPE_FORMAT_S8_UNORMBrian Paul
2008-04-22softpipe: make NUM_ENTRIES 32 so that div/mods are easierKeith Whitwell
2008-03-19gallium: set tc->surface_map = NULL after unmappingBrian
2008-02-27gallium: remove pipe_context->texture_create/release/get_tex_surface()Brian
These functions are now per-screen, not per-context.
2008-02-26gallium: remove pipe parameter from pipe_texture_reference()Brian
Added pipe field to pipe_texture (temporary, see comments). First step toward context-less texture creation...
2008-02-20gallium: new pipe->texture_update() functionBrian
Called whenever texture data is changed (glTexImage, glTexSubImage, glCopyTexSubImage, etc).
2008-02-20gallium: use pipe_texture_reference() in sp_tile_cache_set_texture()Brian
2008-02-15Code reorganization: update build.José Fonseca
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.
2008-02-15Code reorganization: move files into their places.José Fonseca
This is in a separate commit to ensure renames are properly preserved.