summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_gen_mipmap.c
AgeCommit message (Collapse)Author
2009-01-30gallium: make p_winsys internalZack Rusin
move it to pipe/internal/p_winsys_screen.h and start converting the state trackers to the screen usage
2009-01-27gallium: standardize api on the prefix "nr"Zack Rusin
2008-12-30gallium: Initialize var before use.José Fonseca
2008-12-19gallium: begin adapting Ian's 3D mipmap gen code to gallium utility libBrian Paul
Unfinished, a big no-op for now.
2008-12-19gallium: Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REVBrian Paul
This is copied from Ian's commit a330933bb75c38148668637cd22b90d75d39506f
2008-12-17gallium: fix memory corruption in u_gen_mipmap.cBrian Paul
Remove the old/initial vbuf allocation in util_create_gen_mipmap(). We were allocating a small vbuf at this point so get_next_slot() didn't have as large of buffer as it expected. So all but the first set_vertex_data() was writing out of bounds. Also added some comments.
2008-12-12gallium: avoid mapping same vertex buffer in subsequent framesKeith Whitwell
Quite a few util modules were maintaining a single vertex buffer over multiple frames, and potentially reusing it in subsequent frames. Unfortunately that would force us into syncrhonous rendering as the buffer manager would be forced to wait for the previous rendering to complete prior to allowing the map. This resolves that issue, but requires the state tracker to issue a few new flush() calls at the end of each frame.
2008-11-14util: Use OpenGL rasterization rules in blits and mipmap generation.Brian Paul
2008-09-04gallium: Fix typo.José Fonseca
2008-09-04gallium: Use pipe_buffer_* inlines as much as possible.José Fonseca
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-07-28Merge tgsi/exec and tgsi/util directories.José Fonseca
2008-07-19gallium: Finer grained is_format_supported.José Fonseca
2008-06-27gallium: Drop pipe_texture->cpp and pipe_surface->cpp.José Fonseca
The chars-per-pixel concept falls apart with compressed and yuv images, where more than one pixel are coded in a single data block.
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: remove 0.5 vertex biases in set_vertex_data()Brian Paul
These should not be needed and were causing garbage to appear along the edges of the mipmap images.
2008-05-02Merge branch 'gallium-0.1' into gallium-tex-surfacesKeith Whitwell
2008-05-01gallium: do something sensible on the error path to try to avoid crashing in ↵Keith Whitwell
release builds
2008-05-01gallium: tex surface checkpointKeith Whitwell
2008-04-30gallium: use the newer PIPE_FORMAT_x_UNORM format namesBrian Paul
2008-04-24gallium: Initial support for pixel formats with unused storage components.Michel Dänzer
Also clarify that RGB formats with no (used) alpha component are treated as having alpha = 1.0.
2008-04-22gallium: update comment about bypass clipping/viewportBrian Paul
2008-04-22gallium: setup an identity viewportBrian Paul
2008-04-21use cso fs/vs handle functionsKeith Whitwell
2008-04-21gallium: Set all state via cso_context in blit/gen_mipmap utils.José Fonseca
cso_restore_* functions are implemented on top of cso_set_*, therefore they require full knowledge of the current pipe state to work correctly. Directly calling pipe's set_*_state functions will lead to undefined state. Also save and restore shaders.
2008-03-27gallium: return pipe_shader_state from the simple shader functionsBrian
Allows us to fix a mem leak (tokens array).
2008-03-27gallium: fix incorrect types for shadersBrian
2008-03-26gallium: Change pipe->flush() interface to optionally return a fence.Michel Dänzer
The cell driver still uses an internal CELL_FLUSH_WAIT flag, in the long run proper fencing should be implemented for it.
2008-03-24gallium: move filter assignment out of loopBrian
2008-03-24gallium: Remove util_gen_mipmap_filter().Michal Krol
2008-03-24gallium: pass the filter mode to util_gen_mipmap().Brian
Remove util_gen_mipmap_filter() when no longer used.
2008-03-24gallium: tweak coords in u_gen_mipmap codeMichal Krol
2008-03-23gallium: Add util_gen_mipmap_filter().Michal Krol
We need a way to specify the type of minification filter used to downsample mipmap levels. The old util_gen_mipmap() retains its behaviour and uses LINEAR filter.
2008-03-20gallium: set fb.width/heightBrian
2008-03-20gallium: use sizeof(vertex buffer)Brian
2008-03-20gallium: create vertex buffer once and re-use.Brian
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-19gallium: implement CSO save/restore functions for use by meta operations ↵Brian
(blit, gen-mipmaps, quad-clear, etc) Also, additional cso_set_*() functions for viewport, framebuffer, blend color, etc. state.
2008-03-18gallium: make the gen_mipmap_state struct privateBrian
2008-03-18gallium: use new simple shader utility routinesBrian
2008-03-18gallium: fix a mix-up in the uint[1] do_row() caseBrian
2008-03-18gallium: Silencium warnings on Windows.Michal Krol
2008-03-17gallium: initial gen mipmap s/w fallback codeBrian
2008-03-17gallium: new mipmap generation codeBrian
Based on code from Mesa's state tracker. Still need to implement fallbacks for those texture formats which can't generally be rendered to.