summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* init accum buffer fields in _mesa_update_framebuffer_visual()Brian Paul2006-09-111-1/+14
|
* remove code to deal with non-normalized texture coordinates for tex rect ↵Roland Scheidegger2006-09-105-168/+42
| | | | targets (swtcl tex coord translation stage, tcl tex matrix adaption) and use the chip's native handling of such coords instead (!!!). Seems noone noticed those bits in the se_coord_fmt reg, even though it works fairly similar to r200 (except it's set per-unit and always active, so only enable it for texture rectangles).
* Redefine the BYTE_TO_FLOAT() and SHORT_TO_FLOAT() macros to avoid problemsBrian Paul2006-09-101-4/+20
| | | | | | converting 0 to exactly 0.0 This goes against the OpenGL spec (see table 2.6) but solves problems when doing byte -> float -> ubyte conversion for particular texture formats.
* don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channelBrian Paul2006-09-101-1/+2
|
* cause a raster fallback if a yuv texture is used on texture unit > 0 as yuv ↵Roland Scheidegger2006-09-101-0/+3
| | | | conversion appears only to work on first unit.
* Basic facility for playing back captured aubfiles. Requires a smallKeith Whitwell2006-09-088-0/+201
| | | | | | hack to the drm to disable command verification on the cmd_buffer ioctl. Doesn't exactly replay as commands are normally delivered as batchbuffers but are captured and replayed as commands on the ring.
* cause a vtxfmt fallback directly when hitting NewList for radeon and r200 ↵Roland Scheidegger2006-09-082-0/+20
| | | | drivers, otherwise we'll mix up tcl and vtxfmt path for some reason. This fixes a warzone2100 asssertion failure.
* Consistent return values from the bm* functions.Keith Whitwell2006-09-075-12/+9
| | | | Get aubfile generation working again.
* Cope with memory pool fragmentation by allowing a second attempt atKeith Whitwell2006-09-0713-154/+321
| | | | | | | | rendering operations to take place after evicting all resident buffers. Cope better with memory allocation failures throughout the driver and improve tracking of failures.
* Add some asserts, fix some not-quite-bugs.Keith Whitwell2006-09-071-4/+12
|
* Fix glitch with pool alignments.Keith Whitwell2006-09-072-2/+2
|
* Use lower alignments where possible. Also pad out allocated blocks toKeith Whitwell2006-09-077-12/+20
| | | | a multiple of alignment to avoid accumulating unusable free blocks.
* Make sure bmBufferOffset is called for all active buffers every timeKeith Whitwell2006-09-079-26/+20
| | | | | we render. Currenly requires that some state be re-examined after every LOCK_HARDWARE().
* make really sure R200_VAP_PROG_VTX_SHADER_ENABLE is never set when we're ↵Roland Scheidegger2006-09-072-2/+1
| | | | already in a tcl fallback, otherwise the chip will instantly lock up when vertex progs are enabled the next time not in a tcl fallback (fixes for instance guaranteed lockup running any program which uses vertex progs with tcl_mode=0 and then later with tcl_mode=1).
* only allow VERT_ATTRIB_MAX instead of _TNL_ATTRIB_MAX for inputs of vertex ↵Roland Scheidegger2006-09-072-2/+2
| | | | programs (fixes a segfault since the result of the shift is undefined otherwise, and it may happen that _TNL_ATTRIB_POINTSIZE will be tried to read, unlike all other attribs this however may be unitialized (might be a bug in itself)).
* Fix a leak of the screen's option cache on cleanup (copied from radeon).Eric Anholt2006-09-071-0/+3
|
* Simplify the immediate and displaylist code. Treat VertexAttrib*ARBKeith Whitwell2006-09-0618-1091/+759
| | | | | as non-aliasing and cope with the >32 attributes that result, taking materials into account.
* remove stray tabBrian Paul2006-09-061-1/+1
|
* for VERTEX_ATTRIB_WEIGHT, use break, not returnBrian Paul2006-09-061-1/+2
|
* Hack for Warcraft (bug 8060): allow 'vertex.weight' to be referenced inBrian Paul2006-09-051-0/+10
| | | | | vertex program, even though it's not really supported. Results will be undefined, but Warcraft doesn't actually use the attribute.
* fix typo in enable_parser_extensions(): s/point_parameters/vertex_blend/Brian Paul2006-09-051-1/+1
|
* Consolidate common case of _mesa_set_program_error() followed by _mesa_error()Brian Paul2006-09-051-248/+172
| | | | | | in new program_error() function. Add const qualifiers in many places. Reorder some debug code to prevent referencing free'd memory.
* Dynamically allocate instruction store for tnl programs according toKeith Whitwell2006-09-051-15/+21
| | | | requirements.
* Fixes for calculating point attenuationKeith Whitwell2006-09-041-9/+14
|
* Don't export NV_vertex_program as it's not supported, it confusesKeith Whitwell2006-09-041-3/+0
| | | | | glean, and we no longer need to export it to keep Mesa happy as we did at one time.
* Managed to make a commit that can't build... Sorry again...Rune Petersen2006-09-041-0/+1
|
* get rid of GL_BOOLEAN definition (bug 8113)Brian Paul2006-09-041-5/+1
|
* fog state atom contains (only) fog params necessary for tcl. Must not be ↵Roland Scheidegger2006-09-041-2/+2
| | | | emitted if vertex progs are enabled as it overlaps vertex param #94.
* add missing change to skip low impact RAST fallback...Rune Petersen2006-09-031-14/+17
| | | | Sorry.
* fix the presumably broken check for the allow_large_textures and vblank_mode ↵Roland Scheidegger2006-09-013-3/+3
| | | | options (same as bug 8042).
* make sure vertex programs are only enabled on the hw when they are really ↵Roland Scheidegger2006-09-012-9/+11
| | | | enabled, not just when a program enables vertex progs (could still be not enabled due to some error). Otherwise the hw potentially would try to execute a not valid (not set up at all) vertex program, likely leading to lockups. Hopefully fixes #8060.
* Catch a few more cases of using a message reg as an instruction sourceKeith Whitwell2006-09-011-17/+37
| | | | arg.
* fix a couple of cases where a message reg is used as an instruction source.Keith Whitwell2006-09-012-6/+26
|
* Add API description for GLX_SGI_swap_control.Ian Romanick2006-08-311-0/+7
|
* Fix problems with vertex program protocolIan Romanick2006-08-312-65/+65
| | | | | | | | | | | There were two sets of bugs in the vertex program (ARB and NV) protocol. First, several of the ARB functions were missing the 'doubles_in_order="true"' annotation. Second, after the ARB decided that glVertexAttrib*ARB functions must not alias fixed-function state for GLSL, Nvidia re-assigned GLX protocol opcodes for glVertexAttrib*NV (circa Septeber 2004). For some reason gl_API.xml was never updated to reflect this, and the updated version of the GL_NV_vertex_program spec never made into the registry.
* re-apply shader fix.Rune Petersen2006-08-311-1/+1
| | | | appears to have been reverted by mistake.
* When using the old technique to set up the front buffer mapping, thereKeith Whitwell2006-08-311-1/+1
| | | | | is no need to add front.offset to sPriv->pFB, it seems. Fixes several glean issues and frontbuffer rendering generally.
* Give the user posibility to choose speed over correctness.Rune Petersen2006-08-313-2/+18
| | | | | | It does 2 things: 1) Allows you to disable S3TC, wine-games sometimes need S3TC enabled. 2) Disable fallbacks that usually have low impact.
* check if ext->name is null before strcmp()Brian Paul2006-08-311-1/+1
|
* do not abort with not supported vertex prog output configuration, fallback ↵Roland Scheidegger2006-08-311-3/+19
| | | | instead
* Handle API and dispatch table changes that removed a bunch of extension ↵Karl Schultz2006-08-302-114/+50
| | | | entry points.
* Check that we don't try to reference more than one target of a texture unit.texmem_0_2_20060912Brian Paul2006-08-301-1/+17
| | | | | For example, referencing both "texture[0], 2D" and "texture[0], CUBE" in one program is an error.
* s/0/VERT_RESULT_HPOS/Brian Paul2006-08-301-1/+1
|
* Add missing parenthesis so that glXSwapIntervalSGI protocol isIan Romanick2006-08-301-1/+1
| | | | correctly generated.
* Add missing vec4 instructions to the interpreter.Michal Krol2006-08-303-30/+176
| | | | Other cosmetic changes.
* Use XAddExtension() to register an XCloseDisplay() callback function.Brian Paul2006-08-304-5/+103
| | | | | | When the callback is called, free all Mesa's private visual and buffer data structures which are tied to the display. Fixes problems reported by Kitware.
* init a local var to silence warningBrian Paul2006-08-301-3/+3
|
* Minor r200 vertex program cleanups. Remove disabled leftovers from r300 ↵Roland Scheidegger2006-08-302-62/+24
| | | | vertex program code. Fix authors. Correct slightly wrong check to determine if ran out of temps. Simplify check to determine if ran out of max instructions. Correctly report used native temps. Always kick off program translation when ProgramStringNotify is called (otherwise the reported native resources used queried might be wrong).
* fix initialization of native resource usage of vertex/fragment programsRoland Scheidegger2006-08-301-0/+10
|
* fix typo causing a segfault when a vertex program uses more than 96 parametersRoland Scheidegger2006-08-301-1/+1
|