summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2005-11-01Several fp and vp tweaks:Keith Whitwell
- Renumber VERT_RESULT_* values so that they match the numbers of the corresponding FRAG_ATTRIB_ values. - Add ctx->VertexProgram._Current and FragmentProgram._Current values which point to either the current client-supplied program if enabled, or otherwise to the current mesa-internal program. Thus this program is always the correct one for the current state, providing that the mesa flags to turn on automatic generation are enabled. - Add callbacks to ctx->Driver.BindProgram() in texenvprogram.c and t_vp_build.c so that the driver knows when the generated program changes. This is cleaner than trying to code all the possible _NEW_* flags into the driver, and more precise as well. - Add a UsesKill flag to identify fragment programs with that instruction, as these can require special treatment. - Move the FRAG_OUTPUT values to mtypes.h, near to similar defn's.
2005-11-01Re-enable fallbacks.Aapo Tahkola
2005-11-01-Fix first frame -bugAapo Tahkola
-Use 16-bit elts in vtxfmt_a path if possible -Optimize VSF param uploading -return in r300DepthMask looks suspicious, use r300Enable instead -Dont use r300ResetHwState in invalidate state(disabled, missing hooks, possible instabilities)
2005-11-01Fix segmentation fault in _tnl_ProgramCacheDestroy().Aapo Tahkola
2005-11-01Re-org and clean-up of vertx/fragment program limits (instructions,Brian Paul
temporaries, parameters, etc). glGetProgramivARB() now returns all the right things. Updated i915 and r300 code to initialize program native limits and current program's native instruction/temporary/etc counts.
2005-10-31fix problems found with gcc 2.96 (bug 4934)Brian Paul
2005-10-31check swrast->_FogEnabled instead of ctx->Fog.EnabledBrian Paul
2005-10-31Need more than 200 instructions.Aapo Tahkola
2005-10-31Improve tnl program searching performance.Aapo Tahkola
2005-10-30Simplify parse_attrib_binding().Brian Paul
Now only use VERT_ATTRIB_* and FRAG_ATTRIB_* tokens instead of hard-coded numbers. Note: previous check-in did similarly for output register parsing.
2005-10-30Lots of clean-up in arb program parser.Brian Paul
Use new _mesa_init_fp/vp_instruction() function to initialize instructions.
2005-10-30need to use absolute value for RSQBrian Paul
2005-10-29added some assertions to catch unexpected swizzle values in cvp_emit_arg(), ↵Brian Paul
currently fails sometimes
2005-10-29Use MAKE_SWIZZLE4() macro in a few more places.Brian Paul
Clean up the parse_extended_swizzle_mask() and parse_swizzle_mask() functions.
2005-10-29reduced swizzle commentBrian Paul
2005-10-29Free old parameter list before assigning new one. FIxes memory leak.Brian Paul
2005-10-29added warning about use of REG_SCRATCHBrian Paul
2005-10-29clean-up commentsBrian Paul
2005-10-29s/lenght/length/Brian Paul
2005-10-29fix LIT bugBrian Paul
2005-10-29fix a few bugs in SWZ executionBrian Paul
2005-10-29fix errors in RoughApproxPower(), do_LIT(), _tnl_program_string()Brian Paul
2005-10-29If parsing a program fails, don't change the vertex/fragment program object.Brian Paul
Specifically, don't attach a dummy program. This change also fixes an occasional segfault. Some code clean-ups. Use GLboolean instead of GLuint to return pass/fail.
2005-10-29Bug #4901: Correct secondary color emission when lighting is turned off, testedEric Anholt
with seccolor on rv200 and r200. Submitted by: sroland
2005-10-28Keith's fixes for RSW and XPD (need temporaries)Brian Paul
2005-10-28include tnl.h to silence warningBrian Paul
2005-10-28Added assert that result != arg0 in do_RSW. This currently fails and needs ↵Brian Paul
fixing.
2005-10-28TNL module needs to implement ctx->Driver.ProgramStringNotify() functionBrian Paul
so that calls to glProgramStringARB() to specify a new program causes the TNL-attached data to get recomputed.
2005-10-28add newline at end of fileBrian Paul
2005-10-28Silence gcc-4 warnings.Aapo Tahkola
2005-10-28Fix texture mixup when two or more contexts.Aapo Tahkola
2005-10-28fix missing commit for span changesDave Airlie
2005-10-28fix up radeon span functions using latest r200 code from Brian,Dave Airlie
tested with reflect on 32-bit.. not sure why depthHasSurface isn't needed
2005-10-28Compiled arrays for vtxfmt_a path.Aapo Tahkola
2005-10-28GC a bit of dead code I noticed while looking at texwrap.Eric Anholt
2005-10-28Correct the ordering of the blend constant color.Eric Anholt
2005-10-27Add support for GL_EXT_stencil_wrap, from hearing that the windows drivers didEric Anholt
it, and guessing that the two remaining entries in the 3-bit values were the new funcs. Tested with modified stencilwrap test. Also, remove the commented fallback stuff -- more modification to stencilwrap suggests that those issues were just from span readback, not stencil implementation.
2005-10-27Bug #1028: Add hardware-accelerated stencil support to r128. Testing withEric Anholt
stencilwrap reported many issues with various modes. Some of these were complicated by the fact that spans are broken (Bug #1615), but some appear to be real bugs. However, while spans remain broken, I found that visual results were better by avoiding fallbacks rather than avoiding just a broken stencil implementation. Note that this required changing the depth spans at 24+8bpp into read-modify-write cycles. It would be nicer as a single write with a mask, but the kernel span blits turn off masking. Reviewed by: ajax
2005-10-27Bug #4900: Fix the non-fogcoord fog test on r100 (and rv200) at tcl_mode=1 byEric Anholt
flipping the signs on two factors. While this contradicts the DDK, it matches what r200 does, and it fixes the test.
2005-10-27Add support for HW stencil spans, mirroring the depth spans support. Used forEric Anholt
Rage 128 stencil support.
2005-10-27Bump driver date for recent extension adds.Eric Anholt
2005-10-26Cover my arse.Aapo Tahkola
2005-10-26Reduce stderr noise and fix some compiler warnings.Aapo Tahkola
2005-10-26Remove few outdated r200 files.Aapo Tahkola
2005-10-26Sync with my local tree.Aapo Tahkola
Changes to current operation: -Elts are no longer converted to 16-bit format -Cube maps
2005-10-26Fix invalid vsf temp count for rv350.Aapo Tahkola
2005-10-26Fix the RGB order of the specular color emit, and turn GL_EXT_secondary_colorEric Anholt
back on. Tested using seccolor modified to use the blue channel instead of green, since green stays in the same place across RGB/BGR mistakes. Also hook in UpdateSpecular on COLOR_EXT change, which might have resulted in missing statechanges before.
2005-10-26Add support for GL_EXT_fog_coord, tested using tests/fog.c. (Also, matches theEric Anholt
output from indirect rendering).
2005-10-26Add disabled support for GL_EXT_fog_coord. While it seems correct to me, it'sEric Anholt
not respecting the coords (or perhaps interpreting them differently?) in my testing. However, in the process it led to a fix of a secondary color handling issue where it would be taken from the wrong offset, I believe, based off of reading the r200 driver. Also add a minor tweak to save time in the fog-but-not-specular case.
2005-10-25Move the front.offset setting above a check to shortcut reallocating buffers ifEric Anholt
width and height stayed the same. Rely on front.offset pointing at the origin in the window (rather than the origin of the front buffer), and fix the coords in swapbuffers, which were wrong. This is different from other drivers because we've got a back buffer with a 0,0 origin at the window's origin, which makes it more convenient to have the front buffer match it.