summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2006-09-07Cope with memory pool fragmentation by allowing a second attempt atKeith Whitwell
rendering operations to take place after evicting all resident buffers. Cope better with memory allocation failures throughout the driver and improve tracking of failures.
2006-09-07Add some asserts, fix some not-quite-bugs.Keith Whitwell
2006-09-07Fix glitch with pool alignments.Keith Whitwell
2006-09-07Use lower alignments where possible. Also pad out allocated blocks toKeith Whitwell
a multiple of alignment to avoid accumulating unusable free blocks.
2006-09-07Make sure bmBufferOffset is called for all active buffers every timeKeith Whitwell
we render. Currenly requires that some state be re-examined after every LOCK_HARDWARE().
2006-09-07make really sure R200_VAP_PROG_VTX_SHADER_ENABLE is never set when we're ↵Roland Scheidegger
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).
2006-09-07only allow VERT_ATTRIB_MAX instead of _TNL_ATTRIB_MAX for inputs of vertex ↵Roland Scheidegger
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)).
2006-09-07Fix a leak of the screen's option cache on cleanup (copied from radeon).Eric Anholt
2006-09-06Simplify the immediate and displaylist code. Treat VertexAttrib*ARBKeith Whitwell
as non-aliasing and cope with the >32 attributes that result, taking materials into account.
2006-09-06remove stray tabBrian Paul
2006-09-06for VERTEX_ATTRIB_WEIGHT, use break, not returnBrian Paul
2006-09-05Hack for Warcraft (bug 8060): allow 'vertex.weight' to be referenced inBrian Paul
vertex program, even though it's not really supported. Results will be undefined, but Warcraft doesn't actually use the attribute.
2006-09-05fix typo in enable_parser_extensions(): s/point_parameters/vertex_blend/Brian Paul
2006-09-05Consolidate common case of _mesa_set_program_error() followed by _mesa_error()Brian Paul
in new program_error() function. Add const qualifiers in many places. Reorder some debug code to prevent referencing free'd memory.
2006-09-05Dynamically allocate instruction store for tnl programs according toKeith Whitwell
requirements.
2006-09-04Fixes for calculating point attenuationKeith Whitwell
2006-09-04Don't export NV_vertex_program as it's not supported, it confusesKeith Whitwell
glean, and we no longer need to export it to keep Mesa happy as we did at one time.
2006-09-04Managed to make a commit that can't build... Sorry again...Rune Petersen
2006-09-04get rid of GL_BOOLEAN definition (bug 8113)Brian Paul
2006-09-04fog state atom contains (only) fog params necessary for tcl. Must not be ↵Roland Scheidegger
emitted if vertex progs are enabled as it overlaps vertex param #94.
2006-09-03add missing change to skip low impact RAST fallback...Rune Petersen
Sorry.
2006-09-01fix the presumably broken check for the allow_large_textures and vblank_mode ↵Roland Scheidegger
options (same as bug 8042).
2006-09-01make sure vertex programs are only enabled on the hw when they are really ↵Roland Scheidegger
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.
2006-09-01Catch a few more cases of using a message reg as an instruction sourceKeith Whitwell
arg.
2006-09-01fix a couple of cases where a message reg is used as an instruction source.Keith Whitwell
2006-08-31Add API description for GLX_SGI_swap_control.Ian Romanick
2006-08-31Fix problems with vertex program protocolIan Romanick
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.
2006-08-31re-apply shader fix.Rune Petersen
appears to have been reverted by mistake.
2006-08-31When using the old technique to set up the front buffer mapping, thereKeith Whitwell
is no need to add front.offset to sPriv->pFB, it seems. Fixes several glean issues and frontbuffer rendering generally.
2006-08-31Give the user posibility to choose speed over correctness.Rune Petersen
It does 2 things: 1) Allows you to disable S3TC, wine-games sometimes need S3TC enabled. 2) Disable fallbacks that usually have low impact.
2006-08-31check if ext->name is null before strcmp()Brian Paul
2006-08-31do not abort with not supported vertex prog output configuration, fallback ↵Roland Scheidegger
instead
2006-08-30Handle API and dispatch table changes that removed a bunch of extension ↵Karl Schultz
entry points.
2006-08-30Check that we don't try to reference more than one target of a texture unit.Brian Paul
For example, referencing both "texture[0], 2D" and "texture[0], CUBE" in one program is an error.
2006-08-30s/0/VERT_RESULT_HPOS/Brian Paul
2006-08-30Add missing vec4 instructions to the interpreter.Michal Krol
Other cosmetic changes.
2006-08-30Use XAddExtension() to register an XCloseDisplay() callback function.Brian Paul
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.
2006-08-30Minor r200 vertex program cleanups. Remove disabled leftovers from r300 ↵Roland Scheidegger
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).
2006-08-30fix initialization of native resource usage of vertex/fragment programsRoland Scheidegger
2006-08-30fix typo causing a segfault when a vertex program uses more than 96 parametersRoland Scheidegger
2006-08-29Move call to _swrast_update_rasterflags() since it depends on theBrian Paul
results of _swrast_update_fog_state(). Fixes bug where first frame of progs/samples/fog.c does not show fog.
2006-08-29_mesa_debug() should be a no-op when not compiled with DEBUG defined.Brian Paul
2006-08-29remove assertion that referenced &glSetFenceNV for debug testBrian Paul
2006-08-29replace abort with _mesa_problem()Brian Paul
2006-08-29Deprecate GL_EXT_vertex_weighting.Ian Romanick
Nvidia no longer supports this extension, and they no longer export its entry points from their libGL. There's no reason for us to keep dragging it around either.
2006-08-29More static dispatch function removal.Ian Romanick
Make functions for the following extensions available only via glXGetProcAddress. In cases where there are other aliases to the same functions (e.g., between GL_EXT_histogram and GL_ARB_imaging), the alias functions may still be statically exported. - GL_ATI_blend_equation_separate - GL_EXT_blend_equation_separate - GL_EXT_convolution - GL_EXT_color_sub_table - GL_EXT_cull_vertex - GL_EXT_depth_bounds_test - GL_EXT_framebuffer_blit - GL_EXT_histogram - GL_EXT_multisample - GL_EXT_stencil_two_side - GL_EXT_timer_query - GL_IBM_multimode_draw_arrays - GL_INGR_blend_func_separate - GL_NV_fence - GL_SGI_color_table - GL_SGIS_multisample - GL_SGIS_pixel_texture - GL_SGIS_point_parameters - GL_SGIX_pixel_texture
2006-08-28Check mesa_vp->Base.NumInstructions == 0 instead of mesa_vp->Base.String toBrian Paul
determine if we actually have a program. See "[r300] TCL fallback with Quake3".
2006-08-28Add two new gl_function methods. dispatch_name returns the name ofIan Romanick
the true static dispatch name (either the glFooBar name or the gl_dispatch_stub_XXX name). static_name returns the name of the static function for a specific alias of a GL function. Adding (and using) these two functions corrects some problems in the generated code related to functions with multiple aliases where some of the aliases have true static dispatch functions and some don't. I have verified that everything under progs, except xdemos/xdemo, correctly link. I did this by doing 'make linux-dri-x86-64 PROGRAM_DIRS="demos redbook samples xdemos tests"'.
2006-08-28Add dependencies for all API XML files.Ian Romanick
2006-08-28remove unused varBrian Paul