summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | gallium: include st_cb_viewport.h to silence warningBrian Paul2009-02-231-0/+1
| |
* | gallium: fix build breakage in st_cb_viewport.cBrian Paul2009-02-231-0/+2
| |
* | mesa: only call update_buffer when it's availableAlan Hourihane2009-02-231-1/+1
| |
* | gallium: add winsys interface for viewport changes to support DRI2Alan Hourihane2009-02-233-0/+81
| |
* | mesa: move a bunch of compiler-related stuff into new compiler.h headerBrian Paul2009-02-221-1/+2
| | | | | | | | This trims down and cleans up imports.h and glheader.h quite a bit.
* | mesa: use an array for current texture objectsBrian Paul2009-02-211-1/+1
| | | | | | | | Use loops to consolidate lots of texture object code.
* | gallium: use the TGSI_TEXTURE_SHADOW1D/2D/RECT texture types for TEX ↵Brian Paul2009-02-201-9/+30
| | | | | | | | | | | | | | | | instructions These texture types were defined but never put to use. For the time being though, the Mesa->TGSI translater isn't emitting these targets. See the XXX comment in map_texture_target().
* | mesa: support GL_EXT_stencil_two_side in gallium/mesa state trackerBrian Paul2009-02-192-25/+28
| | | | | | | | | | | | | | | | Since Ian's patch of a few weeks ago, we can enable all three variations of two-sided stencil. Update the state tracker to handle the extra back- face state and turn on the EXT. Note: there's a new Glean test for two-sided stencil now...
* | mesa: Free the util shaders with the gallium's FREE.José Fonseca2009-02-193-3/+4
| |
* | Merge branch 'gallium-texture-transfer'Michel Dänzer2009-02-1810-294/+314
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_tile_cache.c
| * | gallium: fix mergeKeith Whitwell2009-02-161-29/+5
| | | | | | | | | | | | | | | It looks like I resolved the merge conflicts but did not save my emacs buffers before committing...
| * | Merge branch 'master' into gallium-texture-transferKeith Whitwell2009-02-1619-54/+82
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_cb_accum.c src/mesa/state_tracker/st_cb_drawpixels.c
| * | | gallium: Various coordinate fixups for texture transfers.Michel Dänzer2009-02-133-9/+9
| | | | | | | | | | | | | | | | Fixes glReadPixels, gl(Copy)TexSubImage, glCopyPixels.
| * | | gallium: Fix GL_DEPTH CopyPixels tile coordinates.Michel Dänzer2009-02-121-1/+1
| | | |
| * | | gallium: Fix accumulation buffer tile coordinates.Michel Dänzer2009-02-121-5/+5
| | | |
| * | | gallium: No longer allow CPU mapping surfaces directly.Michel Dänzer2009-02-0510-291/+311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, a new pipe_transfer object has to be created and mapped for transferring data between the CPU and a texture. This gives the driver more flexibility for textures in address spaces that aren't CPU accessible. This is a first pass; softpipe/xlib builds and runs glxgears, but it only shows a black window. Looks like something's off related to the Z buffer, so the depth test always fails.
* | | | util: Move p_debug.h into util module.José Fonseca2009-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
* | | | mesa: remove old comment as it's fixed elsewhere now.Alan Hourihane2009-02-171-9/+0
| |/ / |/| |
* | | mesa: use new ST_CALLOC_STRUCT() macro in gallium state trackerBrian Paul2009-02-1212-15/+19
| | |
* | | mesa: consistantly use mesa memory-functions in gallium state trackerBrian Paul2009-02-1214-37/+37
| | | | | | | | | | | | | | | Use _mesa_malloc(), _mesa_free(), etc everywhere, not malloc(), free(), etc. Still using CALLOC_STRUCT() at this point.
* | | Merge commit 'origin/gallium-0.2' into gallium-master-mergeBrian Paul2009-02-102-4/+2
|\ \ \