summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* cell: Initial code-gen for alpha / stencil / depth testingIan Romanick2008-03-1715-170/+1409
| | | | | | | | Alpha test is currently broken because all per-fragment testing occurs before alpha is calculated. Stencil test is currently broken because the Z-clear code asserts if there is a stencil buffer.
* cell: Fix simple register allocatorIan Romanick2008-03-171-6/+6
| | | | THere are 64-bits in a uint64_t, not 128. Duh.
* mesa: new mipmap generation, lod bias demoBrian Paul2008-03-172-0/+250
| | | | | Show each of the mipmap levels side-by-side. Press 's' to toggle quad scaling to see mipmap level at actual size.
* gallium: use new gallium utility code for generating mipmapsBrian2008-03-172-230/+8
|
* gallium: added new u_draw_quad.c and u_gen_mipmap.c files.Brian2008-03-172-0/+4
|
* gallium: new mipmap generation codeBrian2008-03-172-0/+558
| | | | | | Based on code from Mesa's state tracker. Still need to implement fallbacks for those texture formats which can't generally be rendered to.
* gallium: new util_draw_texquad() function.Brian2008-03-172-0/+149
|
* 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
|
* gallium: improvements, or extensions at least, to the passthrough pathKeith Whitwell2008-03-174-105/+275
| | | | Passthrough is actually more tricky than you'd think...
* gallium: finish remaining prim types for sp_vbuf_draw_arrays()Brian2008-03-161-0/+73
| | | | Not totally tested, but easily fixed if glitches are found.
* gallium: Ensure we don't add null objects to the table, as they mark empty ↵José Fonseca2008-03-151-0/+4
| | | | handles.
* 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.
* gallium: add explicit control for point sprites (convert points to textured ↵Brian2008-03-145-2/+24
| | | | | | | quads) New draw_enable_point_sprites() function. Fixes spriteblast.c demo
* gallium: remove DOS carriage returnsBrian2008-03-143-654/+654
|
* gallium: remove DOS carriage returnsBrian2008-03-141-195/+195
|
* tgsi: Use debug_printf().Michal Krol2008-03-141-2/+2
|
* scons: Remove second occurence of draw_passthrough.c.Michal Krol2008-03-141-2/+1
|
* 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: call glColorMask(1,1,1,1) before glClear()Brian Paul2008-03-141-0/+4
| | | | | Without this, second and subsequent redraws rendered incorrectly. Plus comments.
* gallium: print warning rather than assert(0) for LOG/EXP opcodesBrian Paul2008-03-141-2/+32
| | | | Glean vertProg1 runs all the way through, rather than aborting.
* gallium: added some debug code (disabled)Brian2008-03-141-0/+13
|
* i915: check for NULL const buffer ptrBrian2008-03-141-1/+1
|
* gallium: added dummy install targetBrian2008-03-141-0/+4
|
* 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: fix some compiler warningsKeith Whitwell2008-03-143-4/+6
|
* tgsi: add debug_printf version of tgsi_dumpKeith Whitwell2008-03-142-0/+26
|
* gallium: need to all draw_flush() in softpipe_unmap_constant_buffers()Brian2008-03-131-0/+8
| | | | | Otherwise, we won't have our constants when we run the fragment shader. Fixes crash in glsl tests when SP_VBUF=1.
* gallium: fix EMIT_HEADER case in draw_vf_set_vertex_info()Brian2008-03-131-1/+5
|
* gallium: plug in vertex passthrough codeBrian2008-03-134-8/+147
| | | | | | | | Based on a patch from Zack. Basically, implement a new draw_arrays function that copies the incoming user-vertices to the hardware vertex buffer, doing format/type conversion as needed. The vertex fetch/store code is totally temporary for now.
* 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: fix bug in draw_num_vs_outputs()Brian2008-03-131-1/+1
|
* gallium: added EMIT_HEADER caseBrian2008-03-131-0/+4
|
* gallium: in softpipe_get_vertex_info() generate a vbuf vertex_info with real ↵Brian2008-03-131-0/+12
| | | | | | attribs Can't use the EMIT_ALL shortcut/optimization anymore because of passthrough mode.
* gallium: added EMIT_HEADER case in emit_vertex()Brian2008-03-131-0/+5
|
* gallium: added new EMIT_HEADER tokenBrian2008-03-132-0/+4
| | | | | | Used to emit the struct vertex_header info for softpipe. Before we were using the EMIT_ALL token but that's insufficient for the draw pass-through mode. EMIT_ALL might get removed soon...
* gallium: plug in new sp_vbuf_draw_arrays() functionBrian2008-03-131-0/+57
| | | | | | Will be used for pass-through mode. Also, call draw_set_render() to register the vbuf stage. Should probably rename that function to something like draw_set_vbuf_stage().
* 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: set surface status to CLEAR or DEFINED in clearing/drawing code.Brian2008-03-132-0/+13
| | | | | Otherwise, we were never setting these flags. This confused the state tracker. Fixes progs/demos/texenv.c, probably others.
* add a way of removing an exact iterator from the hashZack Rusin2008-03-132-5/+36
|
* gallium: added draw_need_pipeline() predicate functionBrian2008-03-131-1/+54
| | | | To test if we need any pipeline stage, or whether we can go into passthrough mode.
* gallium: added draw_enable_line_stipple() functionBrian2008-03-133-2/+18
| | | | Allows drivers that implement line stipple to turn off this drawing stage.
* gallium: added bypass_vs flag to rasterizer state (may be temporary)Brian2008-03-131-0/+1
|
* cell: Fix to work with commit fa9e7e9a8debb68611909ac2ffab527c6c39a3e5Ian Romanick2008-03-133-32/+15
|
* gallium: remove dead code related to shader semantic input/output infoBrian Paul2008-03-134-30/+1
|
* gallium: fix bug in stip_first_tri()Brian Paul2008-03-131-5/+5
| | | | Need to compute num_samplers after binding/creating the fragment shader.