summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_texture.c
AgeCommit message (Collapse)Author
2008-06-23gallium: added support for fixed-point formats, drawingBrian Paul
2008-06-23gallium: fix-up inverted do_copy_texsubimage()Brian Paul
The logic/arithmetic for inverting the src image is a bit simpler now.
2008-06-23gallium: remove dead/prototype codeBrian Paul
2008-06-12gallium: add some #if FEATURE_x testsBrian Paul
2008-06-12gallium: test for FEATURE_convolutionBrian Paul
2008-05-18Merge branch 'gallium-0.1' into gallium-tex-surfacesBrian Paul
2008-05-16gallium: ref counting clean-upsBrian Paul
2008-05-09gallium: depth textures have usage depth_stencil instead of render_targetRoland Scheidegger
2008-05-08gallium: fix out of tex memory crashesBrian Paul
2008-05-07gallium: fix some render to texture bugsBrian Paul
Before, we were sometimes rendering into a stale texture because st_finalize_texture() would discard the old texture and create a new one. Moved st_update_framebuffer atom after texture validation so that we can create a new renderbuffer surface if the texture changes. Also, split texture validation into two parts: finalize_textures and update_textures. Do finalize_textures first to avoid getting into the situtation where we're doing a pipe->surface_copy() mid-way through state validation. Some debug code still in place, but disabled...
2008-05-07Revert "gallium: move setup of dest_surface in do_copy_texsubimage()"Michel Dänzer
This reverts commit f7dbd18371f9cb6686b6a97642b3ca5577e83472. Looks like an accidental revert of commit 650c57f19398800dfdcf357b6e9ec7b68bfa34f1.
2008-05-06gallium: re-enable temporarily disabled code in do_copy_texsubimage()Brian Paul
2008-05-06gallium: create drawing surfaces as GPU_READ/WRITE onlyBrian Paul
Create different temporary surfaces for CPU_READ/WRITE when needed (such as for glReadPixels, glAccum, some glCopy/DrawPixels, glCopyTexSubImage, etc).
2008-05-06gallium: move setup of dest_surface in do_copy_texsubimage()Michal Danzer
2008-05-06gallium: change calculate_first_last_level() to match gallium-tex-surfaces ↵Brian Paul
branch
2008-05-06gallium: sync up texture/sampler changes with masterBrian Paul
2008-05-06gallium: Make sure to release texture surfaces (at the right time).Michel Dänzer
2008-05-06gallium: glCopyTexSubImage improvement.Michel Dänzer
Only get a texture surface for attempting an accelerated copy, and mark it for GPU use only.
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-03gallium: fix some BaseLevel, lastLevel bugsBrian Paul
2008-05-02gallium: minor code, comments clean-upBrian Paul
2008-05-02gallium: in st_finalize_texture() check texture dimensionsBrian Paul
Check dimensions in addition to target, format, etc. Fixes a bug where we failed to detect a change in texture image sizes and wound up using the old texture data.
2008-05-02gallium: Add texture usage flags, special-case allocation of display targetsKeith Whitwell
For many envirionments it's necessary to allocate display targets in a window-system friendly manner. Add facilities so that a driver can tell if a texture is likely to be used to generate a display surface and if use special allocation paths if necessary. Hook up softpipe to call into the winsys->surface_alloc_storage() routine in this case, though we probably want to change that interface slightly also.
2008-05-02gallium: Reallocate pipe_texture in st_TexImage if the texture object was used.Michel Dänzer
Fixes problems with interleaved glTexImage and rendering calls.
2008-05-02Merge branch 'gallium-0.1' into gallium-tex-surfacesKeith Whitwell
2008-05-01gallium: Set sampler->min_lod instead of always reallocating pipe_textures.Michel Dänzer
2008-05-01gallium: tex surface checkpointKeith Whitwell
2008-04-30gallium: fix texture border removal bugBrian Paul
2008-04-29gallium: fix broken GL_DEPTH_COMPONENT case in fallback_copy_texsubimage()Brian Paul
Also, make sure surfaces are suitable for blitting before calling util_blit_pixels().
2008-04-28gallium: fix incorrect level param in copy_image_data_to_texture()Brian Paul
This fixes a weird conform test failure that depended on something that happened several tests earlier. This took waaaaaay too long to find/fix.
2008-04-25gallium: added null ptr checkBrian Paul
2008-04-25gallium: added a null ptr checkBrian Paul
2008-04-25gallium: Use util_blit_pixels() for glCopyTexSubImage when appropriate.Michel Dänzer
2008-04-11gallium: Flush render cache at the beginning of fallback_copy_texsubimage().Michel Dänzer
It may get stale bits otherwise.
2008-04-04gallium: state tracker fixes for compressed texturesRoland Scheidegger
2008-03-24gallium: fix a few texture border/mipmap glitches found w/ conformBrian Paul
2008-03-20gallium: catch some out of memory conditions in the texture image code.Brian Paul
st_finalize_texture()'s return code now indicates success/fail instead of presence of texture border (which we discard earlier).
2008-03-19gallium: add face, dirtyLevels params to pipe->texture_update()Brian Paul
This provides better information about which images in texture object have changed. Also, call texture_update() from more places previously missed.
2008-03-10gallium: disable an unneeded assertion (hit with texwrap.c)Brian
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: mark texture object data dirty in do_copy_texsubimage()Brian
2008-02-20gallium: re-enable GenerateMipmap callsBrian
2008-02-20gallium: state tracker didn't always notify drivers of texobj data changesBrian
Calling glTexSubImage() or glTexImage() to replace texture data didn't reliably cause pipe->set_sampler_texture() to get called so drivers didn't always get notified of new texture data. The st_texture_object->pt pointer doesn't always indicate changed data so added a dirtyData field.
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-13gallium: pipe->surface_copy can flip the contents vertically when necessary.Michel Dänzer
Fixes gears being upside down on the box in demos/gearbox.
2008-02-12gallium: remove dead codeBrian
2008-02-12gallium: added null ptr checkBrian
2008-02-12gallium: remove unused first_level param from st_texture_create()Brian
2008-02-12gallium: clean-up, simplification of mipmapped texturesBrian
Remove pipe_texture->first_level (always implicitly zero). This means there's never any unused mipmap levels at the top. In the state tracker, we no longer re-layout mipmapped textures if the MinLod/MaxLod texture parameters change. It's up to the driver to obey the pipe_sampler->min/max_lod clamps.