summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
Commit message (Collapse)AuthorAgeFilesLines
* mesa: add new signed rgba texture formatRoland Scheidegger2009-03-281-1/+1
| | | | | This is a (partial) backport of the signed texture format support in OGL 3.1. Since it wasn't promoted from an existing extension roll our own.
* mesa: Support Z24S8 wherever S8Z24 is supported.José Fonseca2009-03-272-0/+48
|
* st: init the default texture to (0,0,0,1)Brian Paul2009-03-261-2/+12
| | | | | The default texture is used when a sampler uses an incomplete texture. This change fixes the piglit fp-incomplete test.
* gallium: Remove some little-used fields from struct pipe_surface.Michel Dänzer2009-03-263-44/+0
|
* mesa/st: bump gallium version to 0.3Keith Whitwell2009-03-241-13/+2
| | | | | | | | | To distinguish from the -0.2 version still being maintained on the gallium-mesa-7.4 branch. There are already greater interface changes between these two branches than there were between -0.2 and -0.1. Also stop injecting Tungsten into the vendor string - the Gallium in the renderer string should be sufficient.
* gallium: Remove remnants of reference counting internals outside of p_refcnt.h.Michel Dänzer2009-03-231-1/+1
|
* gallium: remove remaining references to origin_lower_leftKeith Whitwell2009-03-211-3/+0
|
* st: Silence compiler warnings.Michal Krol2009-03-211-2/+2
|
* gallium: remove use of origin_lower_leftBrian Paul2009-03-204-24/+197
| | | | | | | | | | | | | | This was used to indicate OpenGL's lower-left origin for fragment window coordinates for polygon stipple and gl_FragCoord. Now: - fragment coordinate origin is always upper-left corner - GL polygon stipple is inverted and shifted before given to gallium - GL fragment programs that use INPUT[WPOS] are modified to use an inverted window coord which is placed in a temp register. Note: the origin_lower_left field still exists in pipe_rasterizer_state. Remove it when all the drivers, etc. no longer reference it.
* mesa: check renderbuffer is defined before use.Alan Hourihane2009-03-191-8/+10
|
* st/gl: Only transfer needed parts in st_TexSubimageJakob Bornecrantz2009-03-191-4/+2
|
* st: call _glapi_check_multithread from st_make_currentKeith Whitwell2009-03-181-0/+5
| | | | | | | This function is called from many OS-dependent versions of MakeCurrent. Move the check for multithreading to this central location to avoid having to make this check from all the callers.
* st: need to free/realloc pipe texture when we're handed image level > last_levelBrian Paul2009-03-181-0/+1
| | | | Fixes progs/tests/tri-fbo-tex-mip.c
* st: clean up some if-statment codeBrian Paul2009-03-181-12/+11
|
* st: update texture commentsBrian Paul2009-03-181-7/+5
|
* gallium: Use struct pipe_atomic for pipe refcounts.Thomas Hellstrom2009-03-161-1/+1
| | | | Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* gallium: consolidate bypass_vs and bypass_clipping flagsKeith Whitwell2009-03-132-18/+6
| | | | | | | | | The draw module provides a similar interface to the driver which is retained as various bits of hardware may be able to take on incremental parts of the vertex pipeline. However, there's no need to advertise all this complexity to the state tracker. There are basically two modes now - normal and passthrough/screen-coords.
* gallium: no need to keep a copy of shader tokens in state trackerKeith Whitwell2009-03-134-25/+4
| | | | | | | | Any driver who needs a copy of the shader tokens must organize to do so itself. This has been the case for a long time, but there was still defensive code in the state tracker, which is now removed. Any bugs resulting from this need to be fixed in the offending driver...
* mesa/st: add check for null front renderbufferKeith Whitwell2009-03-131-9/+12
| | | | | | Not sure if this indicates a problem elsewhere, but without this check trivial/tri-fbo.c segfaults on resize. With the patch, it renders correctly.
* mesa/st: don't call finish in st_glFlush()Keith Whitwell2009-03-131-4/+7
| | | | | | | | | It is not the state tracker's responsibilty to inject sleeps and pessimize performance in the hope of avoiding buffer synchronization issues in buggy drivers. Calling finish() here will just hide problems that need to be fixed elsewhere.
* gallium: Remove do_flip argument from surface_copyJakob Bornecrantz2009-03-134-9/+3
| | | | | | | I should have gotten most uses and implementation correctly fixed, but things might break. Feel free to blame me.
* st: silence warningBrian Paul2009-03-091-0/+2
|
* st: remove unused DrawPixels codeBrian Paul2009-03-091-124/+4
|
* st: use pointer_to_offset() cast wrapper to convert pointers to uintBrian Paul2009-03-093-4/+19
| | | | Silences warnings with 64-bit builds. See comments for details.
* st: also check for a8 texture support in bitmap codeKeith Whitwell2009-03-091-0/+4
|
* gallium: use unsigned long to silence warnings with 64-bit buildBrian Paul2009-03-071-1/+1
|
* mesa: move glViewport and glDepthRange functions into new viewport.c fileBrian Paul2009-03-072-0/+2
| | | | A bit of refactoring with an eye toward ES2 and GL 3.1
* mesa: gl_register_file enum typedefBrian Paul2009-03-071-1/+1
|
* mesa: remove last of _mesa_unreference_framebuffer() callsBrian Paul2009-03-071-1/+1
|
* mesa: Follow ARB_map_buffer_range more stricly.José Fonseca2009-03-041-6/+26
| | | | | Namelly, FlushMappedBufferRange takes a subrange relative to the original range.
* mesa: Clear cache->trans after destroying the transfer.José Fonseca2009-03-041-0/+1
|
* Merge commit 'origin/master' into gallium-map-rangeJosé Fonseca2009-03-0417-70/+58
|\
| * gallium: Remove some superfluous instances of #include "p_inlines.h".Michel Dänzer2009-03-046-6/+0
| |
| * gallium: Unify reference counting.Michel Dänzer2009-03-0415-62/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create().
| * gallium: remove old state tracker renderbuffer attachment assertionBrian Paul2009-03-031-2/+0
| | | | | | | | | | Not needed since renderbuffers are ref-counted. Fixes progs/demos/shadowtex.
* | mesa: Implement and use FlushMappedBufferRange.José Fonseca2009-03-041-2/+13
| |
* | mesa: Massage the interface to more closely resemble ARB_map_buffer_rangeJosé Fonseca2009-03-031-2/+7
|/
* Merge commit 'origin/gallium-0.1'Keith Whitwell2009-03-031-1/+34
|\ | | | | | | | | | | | | | | | | | | Conflicts: scons/gallium.py src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/include/pipe/p_defines.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_exec_draw.c
| * mesa/st: implement MapBufferRange callbackKeith Whitwell2009-03-031-1/+34
| | | | | | | | Using PIPE_BUFFER_USAGE_DONTBLOCK.
| * 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: only enable depth test if a depth bufffer is availableBrian Paul2009-03-021-3/+5
| |
* | mesa: rename, reorder FRAG_RESULT_x tokensBrian Paul2009-02-283-12/+12
| | | | | | | | | | | | | | s/FRAG_RESULT_DEPR/FRAG_RESULT_DEPTH/ s/FRAG_RESULT_COLR/FRAG_RESULT/COLOR/ Remove FRAG_RESULT_COLH (NV half-precision) output since we never used it. Next, we might merge the COLOR and DATA outputs (COLOR0, COLOR1, etc).
* | mesa: fix remaining FEEDBACK_TOKEN macrosJoakim Sindholt2009-02-281-5/+5
| | | | | | | | Signed-off-by: Corbin Simpson <[email protected]>
* | gallium: fix state tracker's stencil buffer testBrian Paul2009-02-271-1/+1
| | | | | | | | | | | | | | | | Need to check ctx->DrawBuffer->Visual.stencilBits not ctx->Visual.stencilBits because the later only applies to the window system buffers, not user-created FBOs. This, plus the previous commit, fixes progs/tests/fbotexture.c
* | gallium: add st_validate_framebuffer() driver functionBrian Paul2009-02-271-0/+20
| | | | | | | | | | | | Gallium only supports combined depth/stencil buffers, not separate ones. If the user tries to create create a FBO with separate depth/stencil renderbuffers mark the FBO as unsupported.
* | mesa/st: support l8 as well as i8 in bitmap codeKeith Whitwell2009-02-241-1/+13
| | | | | | | | | | Also don't send the partial program fragment down to hardware -- the program will never be used in that form.
* | gallium: Add pipe_buffer_write/read inlines.José Fonseca2009-02-245-37/+16
| | | | | | | | Saves code, and will simplify future interface changes.