summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
Commit message (Collapse)AuthorAgeFilesLines
* wgl: Do not provide DllMain inside the state tracker.José Fonseca2009-01-065-24/+19
| | | | | | MS CRT libraries already provide a default DllMain entrypoint, and MS Linker will complain if it finds the same symbol in two different libraries. Therefore the DllMain has to be in (each) winsys.
* wgl: Ensure public symbols get the proper DLL linkage attributes.José Fonseca2009-01-0613-36/+52
|
* mesa: pass shader centroid/invariant info through to the TGSI shaderBrian Paul2009-01-063-37/+80
| | | | (cherry picked from commit c5b52b5e0e6f6e47c3953076fa788921b1c5a5e2)
* gallium: fix two-sided lighting test in state trackerBrian Paul2008-12-181-3/+6
| | | | This fixes two-sided lighting for vertex shaders.
* gallium: fix refcount bug introduced in eb20e2984Keith Whitwell2008-12-121-4/+5
|
* gallium: avoid mapping same vertex buffer in subsequent framesKeith Whitwell2008-12-1210-25/+99
| | | | | | | | | | | 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.
* st: reduce unnecessary calls to pipe->set_vertex_buffers()Keith Whitwell2008-12-121-5/+14
|
* st: move feedback draw function to new fileKeith Whitwell2008-12-123-226/+275
|
* st: don't unilaterally ABS the argument to RSQKeith Whitwell2008-12-121-3/+9
|
* mesa: Bring in new mesa sub-statetracker.José Fonseca2008-12-1225-0/+4450
| | | | Some code cleanup is still in order.
* gallium: only mark back color buffer surfaces as undefined after swapbuffersBrian Paul2008-12-101-9/+11
| | | | | Marking all surfaces as undefined was wrong and cause some glean failures because glReadPixels was used after SwapBuffers.
* gallium: fix glBitmap color bugBrian Paul2008-11-261-6/+18
| | | | | | By time we get around to rendering the cached bitmap, the current color may have changed. Need to make sure we load the constant slot with the cached color.
* gallium: replace 2 with PIPE_SHADER_TYPESBrian Paul2008-11-261-1/+1
|
* gallium: fix inverted raster pos when drawing into FBOBrian Paul2008-11-241-1/+4
|
* mesa: Don't call fence_finish with a null fence.José Fonseca2008-11-241-2/+4
|
* Mesa: fix number of buffers in st_draw_vbo().Pekka Paalanen2008-11-101-1/+1
| | | | | | | The clean-up call to pipe->set_vertex_buffers() should use the same number of buffers as the first call. Signed-off-by: Pekka Paalanen <[email protected]>
* gallium: added st_print_shaders() function to help w/ debuggingBrian Paul2008-11-062-0/+20
|
* gallium: added check for degenerate drawing callsBrian Paul2008-11-051-0/+3
|
* gallium: if VERBOSE_GLSL flag is set, check for non-initialized uniforms at ↵Brian Paul2008-11-051-0/+27
| | | | | | | draw time This will warn the user that the shader being run may be using uninitialized uniform variables.
* gallium: add some checks for null surface pointers in state trackerBrian Paul2008-10-183-12/+25
| | | | Fixes some segfaults in low memory situations.
* gallium: fix mis-matched malloc/free vs. aligned malloc/freeBrian Paul2008-10-171-2/+2
| | | | | Use aligned malloc/free for teximage data everywhere to be consistant. The mismatch didn't make any difference when HAVE_POSIX_MEMALIGN was defined.
* mesa: new _mesa_set_vp_override() function for driver-override of vertex programBrian Paul2008-10-101-0/+6
| | | | | | | | Patch provide by Keith. Used in state tracker by DrawPixels to indicate that the state tracker (driver) is using its own vertex program. This prevents the texenvprogram code from replacing conventional shader inputs with state vars. Fixes glDraw/CopyPixels regressions.
* mesa: rasterizer state depends on ST_NEW_VERTEX_PROGRAMBrian Paul2008-10-091-1/+4
| | | | Check for per-vertex point size must be done when vertex program changes.
* Mesa: fix the case where there are no vertex attributes.Stephane Marchesin2008-10-071-0/+2
| | | | This is a backport of 8e8208d6db8b764568539784a6473d545dec2265 to gallium-0.1
* mesa: fix convolve/convolution mix-upsBrian2008-10-061-2/+2
|
* gallium: rename tgsi_translate_mesa_program() to st_translate_mesa_program()Brian Paul2008-09-263-4/+4
|
* mesa: Fix arb parse constantsBrian Paul2008-09-191-8/+2
|
* gallium: if we run out of memory in st_TexImage, flush and try again.Brian Paul2008-09-181-2/+9
| | | | | If the driver buffers a scene flushing should release old textures and make space for new ones. Fixes problem with texdown.c test.
* gallium: fix fog vs. pointcoord attribute handling in mesa->TGSI conversionBrian Paul2008-09-171-1/+4
|
* gallium: clean-up/fix msaa override in state trackerBrian Paul2008-09-174-7/+27
|
* gallium: include prog_print.h to silence warningBrian Paul2008-09-171-0/+1
|
* gallium: need to finish, not flush, in st_copy_texsubimage()Brian Paul2008-09-171-1/+2
|
* gallium: new assertion on surface->textureBrian Paul2008-09-171-0/+1
|
* tgsi: Add a ugly fix for CONSTANT problemsJakob Bornecrantz2008-09-171-0/+9
|
* tgsi: More debug printing on sanity check errorJakob Bornecrantz2008-09-171-2/+5
|
* gallium: fix glTexImage(width=height=depth=0) caseBrian Paul2008-09-161-0/+5
| | | | Free old teximage/level data, then stop.
* gallium: move _vbo_DestroyContext() callBrian Paul2008-09-161-2/+2
| | | | Call it before freeing core Mesa state to avoid references to freed buffer objects.
* mesa: State tracker now checks for faulty shaders on debugJakob Bornecrantz2008-09-161-1/+12
|
* gallium: document that clear color is intentionally always ↵Brian Paul2008-09-051-0/+3
| | | | PIPE_FORMAT_A8R8G8B8_UNORM
* gallium: remove the copyHeight hack for compresssed formatsBrian Paul2008-09-041-4/+1
|
* mesa: Remove unused var.José Fonseca2008-09-041-1/+0
|
* gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.José Fonseca2008-09-038-50/+50
| | | | | We want to use the pipe_buffer_* inlines everywhere, but a pipe context is not always available nor is it needed.
* gallium: added st_bind/release_teximage() functionsBrian Paul2008-09-013-0/+109
|
* gallium: move st_texture_image() cast wrapper to header fileBrian Paul2008-09-012-7/+6
|
* gallium: change the conditional which tests for combined Z+stencil buffersBrian Paul2008-08-281-1/+1
| | | | | The caller might be requesting 16-bit Z + 8-bit stencil be placed in a PIPE_FORMAT_S8Z24 or PIPE_FORMAT_Z24S8 buffer.
* gallium: better support for user-space interleaved arraysBrian Paul2008-08-271-35/+100
| | | | | Basically, set up one user-space wrapper for all arrays instead of the individual arrays.
* gallium: in st_draw_vbo() try to detect interleaved arrays in a single VBO.Brian Paul2008-08-271-27/+149
|
* gallium: remove old assertionsBrian Paul2008-08-271-5/+0
|
* gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul2008-08-248-7/+325
| | | | Also, rename p_tile.[ch] to u_tile.[ch]
* gallium: move pipe_copy_rect(), pipe_fill_rect() protos into new u_rect.h headerBrian Paul2008-08-221-0/+1
|