aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_gen_mipmap.c
Commit message (Collapse)AuthorAgeFilesLines
* gallium: remove pipe_buffer from surfacesZack Rusin2009-02-021-6/+6
| | | | | | | 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.
* mesa: handle some cases of 0x0 render targetsAlan Hourihane2009-01-141-1/+6
|
* mesa: fix incorrect parameter orderBrian Paul2008-09-261-3/+3
|
* gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.José Fonseca2008-09-031-4/+4
| | | | | We want to use the pipe_buffer_* inlines everywhere, but a pipe context is not always available nor is it needed.
* gallium: Finer grained is_format_supported.José Fonseca2008-07-191-1/+2
|
* gallium: Drop pipe_texture->cpp and pipe_surface->cpp.José Fonseca2008-06-271-2/+2
| | | | | The chars-per-pixel concept falls apart with compressed and yuv images, where more than one pixel are coded in a single data block.
* gallium: remove unneeded #includeBrian Paul2008-06-201-1/+0
|
* Merge branch 'gallium-0.1' into gallium-tex-surfacesBrian Paul2008-05-201-1/+1
|\
| * gallium: replace assignment with pipe_texture_reference()Brian Paul2008-05-201-1/+1
| |
* | gallium: tex surface checkpointKeith Whitwell2008-05-011-2/+4
|/
* gallium: use new buffer wrapper functions in p_inlines.hBrian Paul2008-04-301-8/+6
| | | | This allows us to remove most of the direct references to winsys in the state tracker.
* gallium: Use CSO cache for shaders.Michel Dänzer2008-04-211-6/+0
|
* gallium: pass the filter mode to util_gen_mipmap().Brian2008-03-241-1/+2
| | | | Remove util_gen_mipmap_filter() when no longer used.
* gallium: implement CSO save/restore functions for use by meta operations ↵Brian2008-03-191-14/+6
| | | | | | | (blit, gen-mipmaps, quad-clear, etc) Also, additional cso_set_*() functions for viewport, framebuffer, blend color, etc. state.
* gallium: fix typosBrian2008-03-181-1/+1
|
* gallium: use new gallium utility code for generating mipmapsBrian2008-03-171-218/+7
|
* gallium: set min_mip_filter = PIPE_TEX_MIPFILTER_NEARESTBrian Paul2008-03-171-10/+5
| | | | Plus, comments, clean-ups.
* gallium: in gen_mipmap, also set sampler lod_bias and do a flush() after ↵Brian Paul2008-03-171-0/+6
| | | | rendering each level
* gallium: rework CSO-related code in state trackerBrian2008-03-111-16/+18
| | | | | | | | | | Use the code in cso_context.c rather than st_cache.c. Basically, binding of state objects now goes through the CSO module. But Vertex/fragment shaders go through pipe->bind_fs/vs_state() since they're not cached by the CSO module at this time. Also, update softpipe driver to handle NULL state objects in various places. This happens during context destruction. May need to update other drivers...
* gallium: michel's patch to rework texture/sampler binding interfaceKeith Whitwell2008-03-051-5/+6
| | | | | Bind all the samplers/textures at once rather than piecemeal. This is easier for drivers to understand.
* gallium: change st->state.sampler_texture[] to store pipe_texture pointersBrian Paul2008-02-291-2/+1
| | | | | This is a better fix for the previous check-in. Fixes texadd.c conform test, and probably other bugs.
* gallium: remove pipe_context->texture_create/release/get_tex_surface()Brian2008-02-271-3/+4
| | | | These functions are now per-screen, not per-context.
* gallium: move is_format_supported() to pipe_screen structBrian2008-02-271-1/+2
|
* gallium: fill in some blend/rasterizer template fields to make sure they're ↵Brian2008-02-211-0/+8
| | | | all valid, even if not relevant
* gallium: state tracker didn't always notify drivers of texobj data changesBrian2008-02-201-1/+3
| | | | | | | | 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.
* 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.
* gallium: rename st_fragment_program's fs field to cso to match st_vertex_programBrian2008-02-121-1/+1
|
* gallium: move gen-mipmap global/static vars into st_contextBrian2008-02-121-28/+13
| | | | This fixes potential problems with multi-context programs.
* gallium: clean-up, simplification of mipmapped texturesBrian2008-02-121-18/+25
| | | | | | | | 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.
* gallium: take pitch/stride into account in mipmap generationBrian2008-02-111-1/+2
|
* gallium: comments about mipmap genBrian2008-02-111-0/+5
|
* gallium: implement software fallback for mipmap generationBrian2008-02-111-8/+60
| | | | | This is used when we can't render to the surface type of the texture (such as luminance/alpha).
* gallium: include st_cb_drawpixels.hBrian2008-02-081-0/+1
|
* gallium: initial implemenation of auto mipmap generation in state trackerBrian2008-02-081-0/+362
Use hardware rendering to compute/render mipmap levels. The fallback path (which will be used for non-renderable texture formats) isn't working yet.