summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* gallium: use the utility pasthrough shadersBrian2008-03-204-110/+39
| | | | This avoids the Mesa->TGSI translation step.
* gallium: add face, dirtyLevels params to pipe->texture_update()Brian Paul2008-03-194-13/+10
| | | | | This provides better information about which images in texture object have changed. Also, call texture_update() from more places previously missed.
* gallium: need to set/save framebuffer state in st_context since we use it ↵Brian Paul2008-03-191-8/+8
| | | | elsewhere
* gallium: implement CSO save/restore functions for use by meta operations ↵Brian2008-03-198-94/+51
| | | | | | | (blit, gen-mipmaps, quad-clear, etc) Also, additional cso_set_*() functions for viewport, framebuffer, blend color, etc. state.
* gallium: remove old commented-out codeBrian2008-03-191-3/+3
|
* set outputs_safe to 0 as it's possible for the code generationAlan Hourihane2008-03-192-2/+2
| | | | to slip over the allocated memory for the vb.
* remove redundant initAlan Hourihane2008-03-191-2/+0
|
* gallium: plug in and init GL_EXT_framebuffer_blit function/extensionBrian2008-03-183-0/+10
|
* gallium: added st_cb_blit.cBrian2008-03-181-0/+1
|
* gallium: glFramebufferBlitEXT() implementationBrian2008-03-182-0/+171
|
* gallium: fix typosBrian2008-03-182-2/+2
|
* gallium: restore additional state after clearing with quadBrian2008-03-181-0/+2
|
* gallium: use new color packing utility functionsBrian2008-03-181-55/+6
|
* gallium: use new gallium utility code for generating mipmapsBrian2008-03-172-230/+8
|
* gallium: set min_mip_filter = PIPE_TEX_MIPFILTER_NEARESTBrian Paul2008-03-171-10/+5
| | | | Plus, comments, clean-ups.
* gallium: in gen_mipmap, also set sampler lod_bias and do a flush() after ↵Brian Paul2008-03-171-0/+6
| | | | rendering each level
* only set InputsRead bit if input is really usedMarkus Amsler2008-03-171-3/+5
|
* mesa: clamp point size in vertex program when computing attenuated sizeBrian Paul2008-03-141-3/+4
|
* gallium: if point size not computed per vertex, apply size clamp immediately.Brian Paul2008-03-141-1/+6
| | | | Fixes glean pointAtten failure.
* mesa: init tmpNode to zerosBrian Paul2008-03-141-0/+1
|
* mesa: fix emit_clamp() so that we don't use an output register as temporaryBrian Paul2008-03-141-3/+12
| | | | | | IR_CLAMP is decomposed into OPCODE_MIN+OPCODE_MAX. Allocate a temporary register for the intermediate value so we don't inadvertantly use an output register (which are write-only on some GPUs).
* mesa: revert fast-track glColor and similar calls when not immediate mode ↵Brian2008-03-141-9/+2
| | | | | | | | | | rendering Revert commit d08cd68d3f5456b69ad504ede2b090c0bb6474db This change caused some glean tests to fail. The alpha value of colors was always 1.0 instead of the value from glColor4fv(). The mesa color array found in st_draw() has size=3 instead of size=4.
* gallium: in st_program_string_notify() free shader tokens.Brian2008-03-141-0/+10
| | | | | | When the shader instructions change, free the TGSI tokens. This signals the state tracker to recompile the shader. Fixes a regression caused by recent shader/state-tracker changes.
* gallium: for TEST_DRAW_PASSTHROUGH, pass inClipCoords=FALSE to ↵Brian2008-03-131-1/+7
| | | | | | st_draw_vertices() When pass-through mode is fully supported we'll clean this up more.
* gallium: add some temporary code for testing draw module vertex passthroughBrian2008-03-131-1/+16
| | | | Set TEST_DRAW_PASSTHROUGH=1, run progs/trivial/clear-scissor
* gallium: remove semantic info from pipe_shader_stateBrian Paul2008-03-134-78/+99
| | | | Brian's patch to clean up the shader interfaces.
* mesa: fix (harmless?) assignment in assertKeith Whitwell2008-03-131-1/+1
|
* gallium: in clear_stencil_buffer() check surface format to determine stencil ↵Brian2008-03-121-0/+9
| | | | | | clear value ... as we do for the Z and Z+stencil cases
* mesa: set SamplersUsed bitmask when parsing ARB fragment programsBrian2008-03-121-1/+4
|
* gallium: pass NULL to cso_single_sampler() when the sampler isn't used.Brian2008-03-121-2/+5
| | | | | This fixes an AA line crash/regression. The aaline stage needs to find a free/unused sampler to do its thing.
* gallium: use TXP rather than ExtDivide flagBrian2008-03-121-2/+1
|
* gallium: Add TEX_FILTER_ANISO img filterKeith Whitwell2008-03-121-0/+4
| | | | | | Hardware almost universally expects us to set a special filtering mode when anisotropic filtering is enabled, as opposed to varying a max-aniso values. Do this once in the state tracker & simplify the driver code.
* gallium: rework CSO-related code in state trackerBrian2008-03-1119-294/+284
| | | | | | | | | | 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...
* fix Height2/Depth2 init problem when using texture bordersBrian2008-03-101-6/+17
|
* gallium: disable an unneeded assertion (hit with texwrap.c)Brian2008-03-101-1/+2
|
* mesa: fast-track glColor and similar calls when not immediate mode renderingKeith Whitwell2008-03-101-2/+9
| | | | | | Often these are mixed in with draw arrays calls, etc. Try not to get the whole immediate rendering state machine going when we receive one of these on their own.
* gallium: michel's patch to rework texture/sampler binding interfaceKeith Whitwell2008-03-055-25/+33
| | | | | Bind all the samplers/textures at once rather than piecemeal. This is easier for drivers to understand.
* gallium: Add missing file for scons build.Michel Dänzer2008-03-041-0/+1
|
* gallium: change st->state.sampler_texture[] to store pipe_texture pointersBrian Paul2008-02-294-13/+9
| | | | | This is a better fix for the previous check-in. Fixes texadd.c conform test, and probably other bugs.
* gallium: fix update_textures() bug in pipe_texture binding logicBrian Paul2008-02-291-1/+3
| | | | | The 'st' pointer might not have changed, but st->pt might have. The dirtyData flag will indicate when that's happened, so check it.
* gallium: fix glCopyPixels(GL_DEPTH) when Z format conversion is neededBrian Paul2008-02-291-1/+8
|
* gallium: fix surface/texture format conversion in st_CopyPixelsBrian Paul2008-02-281-5/+35
| | | | | If the src buffer's format isn't supported as a texture format, find a different texture format.
* gallium: added a texture format sanity check/assertion in st_texture_create()Brian Paul2008-02-281-0/+1
| | | | make sure the tex format is actually supported by the driver.
* galliums: s/uint/enum pipe_format/Brian Paul2008-02-281-1/+1
|
* gallium: in GL_SELECT mode, update hitflag in rasterposBrian Paul2008-02-281-0/+5
|
* gallium: State tracker cleanups wrt clears.Keith Whitwell2008-02-281-24/+16
|
* Convert crlf->lf line endings.José Fonseca2008-02-2819-7025/+7025
| | | | Windows/DOS users should enable core.autocrlf from now on.
* gallium: Convert CRLF -> LF.Jose Fonseca2008-02-281-64/+64
| | | | | | | DOS/Windows users should not commit text files with CRLF line endings but use instead git config --global core.autocrlf true
* scons: Build mesa source with c99.José Fonseca2008-02-281-0/+5
|
* gallium: remove pipe_context->texture_create/release/get_tex_surface()Brian2008-02-275-30/+38
| | | | These functions are now per-screen, not per-context.