summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/cso_cache
AgeCommit message (Collapse)Author
2010-02-11gallium: give pipe_stencil_ref its own cso_save/restore functionsRoland Scheidegger
seems cleaner, and other dynamic state like viewport is handled that way too
2010-02-11gallium: also save/restore stencil_ref in cso_save/restore_depth_stencil_alphaRoland Scheidegger
makes life of state trackers easier
2010-02-09gallium: don't put stencil ref value in pipe_depth_stencil_alpha_stateRoland Scheidegger
This will make driver's life a bit harder, however it makes sense that stencil reference value is not part of the pipe_depth_stencil_alpha_state, because it often (there are some algorithms which require this) changes more frequently than the rest of the dsa state. This is also encouraged by some graphic APIs. Treat it similar to pipe_blend_color.
2010-02-02gallium: pipe/p_inlines.h -> util/u_inlines.hJosé Fonseca
2010-01-30gallium: fix blend state csoRoland Scheidegger
if independent blend state was disabled, only the data from first rt was stored, however the comparison used the full state, hence there never was a match and always a new object was created. Fixes a huge performance drop with llvmpipe due to recompilation.
2010-01-25gallium: fix cast for size calc of pipe_blend_stateRoland Scheidegger
2010-01-20gallium: prepare for per-rendertarget blend enables, writemasks, blend funcsRoland Scheidegger
GL 3.0 (EXT_draw_buffers2) and other APIs allow independent blend enables and write masks per render target, ARB_draw_buffers_blend (and other APIs) also allow independent blend functions. Things like dithering, logic ops however are not extended to be per rendertarget, that might be conceptually possible however it doesn't look like any API wants to expose this.
2010-01-18cso: Add set_vertex_samplers functionJakob Bornecrantz
2010-01-01gallium: Generate a single library for auxiliaries with Make too.José Fonseca
2010-01-01scons: Aggregate all tiny libraries in a single library.José Fonseca
Makes integration of gallium into out of tree components much easier. No pratical change for components in this tree,
2009-12-25gallium: add geometry shader support to galliumZack Rusin
2009-12-02cso: check if pipe_context::bind_vertex_sampler_states is non-nullBrian Paul
Fixes segfaults upon exit when the CSO module is releasing its objects.
2009-12-01cso: Fix function prototype.Michal Krol
2009-12-01cso: Add support for separate vertex sampler state.Michal Krol
2009-10-25gallium: Move enum pipe_error into p_defines.h.José Fonseca
It's really just another define. No need for its own header.
2009-10-02gallium: replace // comments with /* */Brian Paul
2009-07-06gallium: rearrange some members to avoid memory holes/paddingZack Rusin
plus it saves us a cacheline in the cso
2009-07-06cso: possible null pointer dereferenceZack Rusin
reported by clang static analyzer
2009-03-04gallium: Remove some superfluous instances of #include "p_inlines.h".Michel Dänzer
2009-02-20gallium: Improve makefiles for librariesJakob Bornecrantz
The template makefile that most libraries in gallium included was based on dri and had a bunch unrelevant junk in it. Update it and improve the depending makefiles.
2009-02-18util: Move p_debug.h into util module.José Fonseca
The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
2009-01-27gallium: standardize api on the prefix "nr"Zack Rusin
2008-09-24add cso_hash_contains() functionAlan Hourihane
2008-09-18gallium: fix surface object memory leak in cso moduleBrian Paul
2008-09-17gallium: fix lack of surface reference counting in ↵Brian Paul
cso_set/save/restore_framebuffer() Fixes asst problems with FBO / render to texture.
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-05-25cso: use memcpy rather than structure asignment for copyingKeith Whitwell
Apparently gcc will omit to copy hidden padding bytes under some circumstances, which means later on memcmp() will indicate a difference between structs even though all the visible members are identical.
2008-05-08Merge branch 'gallium-0.1' into gallium-tex-surfacesMichel Dänzer
2008-05-08cso_cache: Fix test for currently bound blend state.Michel Dänzer
2008-05-02cso: can memcmp-compare pipe_framebuffer_state now it includes fb dimensionsKeith Whitwell
2008-04-30try to fix the deleting of the bound cso during cleanup of the hashZack Rusin
2008-04-24gallium: make cso_release_all() publicBrian Paul
2008-04-24gallium: minor clean-ups, commentsBrian Paul
2008-04-24gallium: tweak the new shader delete funcsBrian Paul
2008-04-24gallium: added cso_delete_vertex_fragment_shader() functionsBrian Paul
The state tracker now uses these functions to free shaders, rather than the pipe->delete_vs/fs-state() functions. Before, we could get in a situation where we free() a shader and happen to alloc() a new one at the same address. The cso_set_vertex/fragment_shader() function would no-op the state change since the pointers were the same. This led to problems elsewhere, of course. The new delete functions null-out the CSO's current shader pointers.
2008-04-23Create a sharable translate_cache and use it.Zack Rusin
2008-04-23fix the simple hash finding function and use itZack Rusin
2008-04-24gallium: Fix texture refcount leak.José Fonseca
2008-04-22In case the 'func' is deleting the state move the iterator beforeZack Rusin
calling it.
2008-04-22gallium: remove assertionsBrian Paul
It's possible the current vs/fs is null when cso_save_vertex/fragment_shader() is called.
2008-04-22cso: fix vs/fs confusionKeith Whitwell
2008-04-22cso: Fix build on Win32.Michal Krol
2008-04-21make the api consistent (all set functions return pipe_error status)Zack Rusin
2008-04-21handle some of the possible allocation failures within the hash itselfZack Rusin
2008-04-21initial stab at error handling in csoZack Rusin
2008-04-21cso: disable not-really-working cso_set_*_shader() funcsKeith Whitwell
2008-04-21cso: provide functions to bind fs/vs handles directlyKeith Whitwell
2008-04-21cso: propogate one easy error - many moreKeith Whitwell
2008-04-22gallium: Hash the fragment shader tokens, instead of pipe_shader_state.José Fonseca
PS: pipe_shader_state should probably go away now that it is reduced to a single pointer.