summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_clear.c
AgeCommit message (Collapse)Author
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-05Merge commit 'origin/gallium-0.1' into gallium-0.2Brian Paul
Conflicts: src/gallium/auxiliary/rtasm/rtasm_execmem.c src/mesa/shader/slang/slang_emit.c src/mesa/shader/slang/slang_log.c src/mesa/state_tracker/st_atom_framebuffer.c
2008-11-03softpipe: Don't call pipe_buffer_destroy directly.José Fonseca
Use pipe_buffer_reference instead.
2008-10-18gallium: add some checks for null surface pointers in state trackerBrian Paul
Fixes some segfaults in low memory situations.
2008-09-05gallium: document that clear color is intentionally always ↵Brian Paul
PIPE_FORMAT_A8R8G8B8_UNORM
2008-09-03gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.José Fonseca
We want to use the pipe_buffer_* inlines everywhere, but a pipe context is not always available nor is it needed.
2008-07-15st: Silence compiler warnings on Windows.Michal Krol
2008-05-20gallium: fix mem leaksBrian Paul
2008-05-02Some changed for non-C99 compilersAlan Hourihane
2008-04-30gallium: use new buffer wrapper functions in p_inlines.hBrian Paul
This allows us to remove most of the direct references to winsys in the state tracker.
2008-04-24gallium: use cso_destroy_vertex/fragment_shader() functionsBrian Paul
Also, rearrange the st_destroy_context() code a bit to prevent some invalid/NULL ptr derefs during tear-down.
2008-04-21use cso fs/vs handle functionsKeith Whitwell
2008-04-21gallium: Use CSO cache for shaders.Michel Dänzer
2008-04-18gallium: Always pass colour clear value to driver as A8R8G8B8.Michel Dänzer
2008-04-03gallium: set rasterizer.gl_rasterization_rules = 1 in a few more placesBrian
2008-04-03gallium: streamline viewport/raster/shader state for clearing with quadsBrian Paul
Move init of these items to new st_init_clear().
2008-04-03gallium: remove the temporary/test TEST_DRAW_PASSTHROUGH codeBrian Paul
2008-04-03gallium: use identity viewport fix broken clear_with_quad() pathBrian Paul
Since bypass_clipping is set and we're specifying quad vertexes in window coords, setup identity viewport.
2008-03-27gallium: Update calls to the simple shader functionsBrian
2008-03-20gallium: in clear_with_quad() check fb orientation, invert Y if neededBrian
2008-03-20gallium: create one vertex buffer and re-use, also enable bypass_clippingBrian
Quad clears should be a little more efficient now.
2008-03-20gallium: use the utility pasthrough shadersBrian
This avoids the Mesa->TGSI translation step.
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: restore additional state after clearing with quadBrian
2008-03-18gallium: use new color packing utility functionsBrian
2008-03-13gallium: for TEST_DRAW_PASSTHROUGH, pass inClipCoords=FALSE to ↵Brian
st_draw_vertices() When pass-through mode is fully supported we'll clean this up more.
2008-03-13gallium: add some temporary code for testing draw module vertex passthroughBrian
Set TEST_DRAW_PASSTHROUGH=1, run progs/trivial/clear-scissor
2008-03-12gallium: in clear_stencil_buffer() check surface format to determine stencil ↵Brian
clear value ... as we do for the Z and Z+stencil cases
2008-03-11gallium: rework CSO-related code in state trackerBrian
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...
2008-02-28gallium: State tracker cleanups wrt clears.Keith Whitwell
2008-02-14gallium: Cleanups related to clears.Keith Whitwell
2008-02-12gallium: rename st_fragment_program's fs field to cso to match st_vertex_programBrian
2008-02-08gallium: added inClipCoords param to st_draw_vertices() to indicate coord ↵Brian
system of vertices Also, export st_make_passthrough_vertex_shader() from st_cb_drawpixels.c
2008-01-28gallium: check if surface has defined status in check_clear_depth_with_quad()Brian
This was part of Keith's patch from Friday.
2008-01-14Fix problems with vertex shaders and the private draw module.Brian
The CSO returned by pipe->create_vs_state() can't be passed to the private draw module. That was causing glRasterPos to blow up. Add a 'draw_shader' field to st_vertex_program for use with the private draw module. Change st_context->state.vs type from cso_vertex_shader to st_vertex_program.
2007-12-17gallium: incorporate alpha state into depth_stencil state object.Keith Whitwell
2007-12-07Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.Brian
This makes debugging a _lot_ easier. In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
2007-12-07Replace "duplicate" formatsBrian
2007-12-05added PIPE_FORMAT_U_B8_G8_R8_A8 case in color_value()Brian
2007-11-20initial support for PIPE_FORMAT_Z24_S8Brian
2007-11-08simplify depth_value(), return proper value for Z16 formatBrian
2007-11-07Float->uint conversion for PIPE_FORMAT_U_Z32 resulted in overflow in ↵Brian
depth_value(). Special-case it.
2007-10-27Move mesa_to_tgsi.[ch] to state_trackerBrian
2007-10-25silence warningBrian
2007-10-17remove #include vf.hBrian
2007-10-17Fix viewport Z scale/bias to get the right Z values from drawing the quad.Brian
2007-10-16use new st_clear_accum_buffer() functionBrian
2007-10-03Some minor cleanups.Michel Dänzer
2007-09-28Instead of linked program pairs, keep a list of vertex programs translated ↵Brian
for each fragment program.
2007-09-25st_draw_vertices() no longer needs attribs[] array parameterBrian