summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* mesa: fix commentBrian Paul2009-05-011-1/+1
|
* mesa: create/use a fallback texture when bound texture is incompleteBrian Paul2009-05-014-2/+66
| | | | | | | | | | | | | | When a GLSL sampler reads from an incomplete texture it should return (0,0,0,1). Instead of jumping through hoops in all the drivers to make this happen, just create/install a fallback texture with those texel values. Fixes piglit/fp-incomplete-tex on i965 and more importantly, fixes some GPU lockups when trying to sample from missing surfaces. If a binding table entry is NULL, it seems that sampling sometimes works, but not always (lockup). Todo: create a fallback texture for each type of texture target?
* mesa: bump version to 7.6 (devel)Brian Paul2009-05-011-3/+4
|
* mesa/main: protect driver.finish with FLUSH_CURRENTKeith Whitwell2009-04-281-0/+1
| | | | Already doing this for driver.flush()
* mesa: Call _mesa_snprintf instead of snprintf.José Fonseca2009-04-271-1/+1
| | | | snprintf not directly available on Windows.
* mesa: fix up error/warning/debug output newlinesBrian Paul2009-04-242-10/+27
| | | | | | | | | | As of commit 23ad86cfb91c294ce85a3116d4b825aaa3988a6e all messages go through output_if_debug(). Add new parameter to output_if_debug() to indicate whether to emit a newline. _mesa_warning() and _mesa_error() calls should not end their strings with \n. _mesa_debug() calls should end their text with \n.
* mesa: more informative error messagesBrian Paul2009-04-231-6/+10
|
* mesa: minor state-update changes in histogram codeBrian Paul2009-04-221-5/+2
| | | | | Call FLUSH_VERTICES() in _mesa_Histogram(). No need to signal _NEW_PIXEL in ResetHistogram(), ResetMinmax().
* mesa: fix comment typoBrian Paul2009-04-221-1/+1
|
* mesa: fix _mesa_dump_textures(), add null ptr checkBrian Paul2009-04-221-2/+3
| | | | Calling _mesa_dump_textures() deleted the textures... oops!!!
* mesa: protect driver.flush() with FLUSH_CURRENTKeith Whitwell2009-04-222-8/+8
| | | | | | Need to do this to ensure vbo code unmaps its buffers before calling the driver, which may be sitting on top of a memory manager which objects to firing commands from a mapped buffer.
* mesa: new _NEW_PROGRAM_CONSTANTS flagBrian Paul2009-04-212-1/+36
| | | | | | | | | | | | | | | This state flag will be used to indicate that vertex/fragment program constants have changed. _NEW_PROGRAM will be used to indicate changes to the vertex/fragment shader itself, or misc related state. _NEW_PROGRAM_CONSTANTS is also set whenever a program parameter that's tracking GL state has changed. For example, if the projection matrix is in the parameter list, calling glFrustum() will cause _NEW_PROGRAM_CONSTANTS to be set. This will let to remove the need for dynamic state atoms in some drivers. For now, we still set _NEW_PROGRAM in all the places we used to. We'll no longer set _NEW_PROGRAM in glUniform() after drivers/etc have been updated.
* mesa: suppress extra newlineBrian Paul2009-04-171-1/+1
|
* mesa: minor tweak to error messageBrian Paul2009-04-171-1/+1
|
* Merge branch 'register-negate'Brian Paul2009-04-162-4/+2
|\
| * mesa: merge the prog_src_register::NegateBase and NegateAbs fieldsBrian Paul2009-04-142-4/+2
| | | | | | | | | | | | There's really no need for two negation fields. This came from the GL_NV_fragment_program extension. The new, unified Negate bitfield applies after the absolute value step.
* | mesa: fix bad mask bit in clip plane restore code for glPopAttrib()Lars Henning Wendt2009-04-161-1/+1
| |
* | Merge branch 'gallium-s3tc'José Fonseca2009-04-161-8/+8
|\ \
| * | mesa: Report name for missing s3tc functionsJakob Bornecrantz2009-04-091-8/+8
| | |
* | | mesa: Update texenv program when _NEW_ARRAYS is updated as well.Eric Anholt2009-04-151-1/+2
| |/ |/| | | | | | | | | | | | | | | | | This fixes a regression in fbotest1 on 915, where a transition from color+vertex array enabled to texcoord0+vertex array enabled wouldn't trigger program update on the second _mesa_update_state of DrawArrays, and we'd sample a constant texcoord of 0,0,0,1 instead of the array. The double state update in DrawArrays from 1680ef869625dc1fe9cf481b180382a34e0738e7 still needs fixing.
* | mesa: remove unused matrixType param from ctx->Driver.UniformMatrix() functionsBrian Paul2009-04-142-19/+10
| |
* | mesa: move #define for GL_PROGRAM_BINARY_LENGTH_OESBrian Paul2009-04-141-0/+5
| |
* | mesa: use standard offsetof() macroBrian Paul2009-04-141-1/+1
|/
* mesa: fix potential recursive locking deadlock in _mesa_HashWalk()Brian Paul2009-04-091-4/+14
| | | | If the walk callback called _mesa_HashRemove() we'd deadlock.
* Mesa: allow suppression of debug messages in a debug buildRobert Ellison2009-04-081-10/+32
| | | | | | | | | | | | | | | | | | | | | For testing, it's very useful to be able to test on a debug build, while suppressing the debug messages (messages that are by default suppressed in a release build), in order to see the same behavior that users of release builds will see. For example, the "piglit" test suite will flag an error on programs that produce unexpected output, which means that a debug build will always fail due to the extra debug messages. This change introduces a new value to the MESA_DEBUG environment variable. In a debug build, explicitly setting MESA_DEBUG to "0" will suppress all debug messages (both from _mesa_debug() and from _mesa_warning()). (The former behavior was that debug messages were never suppressed in debug builds.) Behavior of non-debug builds has not changed. In such a build, _mesa_debug() messages are always suppressed, and _mesa_warning() messages will be suppressed unless MESA_DEBUG is set *to any value*.
* mesa: Don't attempt to free the dummy program.José Fonseca2009-04-081-3/+5
|
* mesa: add another special/optimized case in _mesa_unpack_depth_span()Brian Paul2009-04-071-0/+11
|
* mesa: fix incorrect component ordering for sRGB8 texture fetch/storeBrian Paul2009-04-071-5/+6
| | | | | | This format is layered on MESA_FORMAT_RGB888 so the component order is actually BGR. Fixes glean pixelFormat failures.
* mesa: move glGetTexImage(), glGetCompresssedTexImage() code into new fileBrian Paul2009-04-035-335/+405
|
* mesa: remove the noClamp parameter to _mesa_pack_rgba_span_float()Brian Paul2009-04-036-12/+15
| | | | | It was only set to GL_TRUE in one place where it isn't really needed (glGetTexImage(sRGB format)).
* mesa: clamp colors to [0,1] for glGetTexImage() when format is GL_LUMINANCEBrian Paul2009-04-031-4/+6
| | | | For luminance, we add R+G+B and it seems we should always clamp in case.
* mesa: whitespace and comment clean-upBrian Paul2009-04-031-11/+16
|
* mesa: remove extra semicolonsBrian Paul2009-04-031-5/+5
|
* mesa: rename some gl_light fields to be clearerBrian Paul2009-04-033-16/+16
| | | | | EyeDirection -> SpotDirection _NormDirection -> _NormSpotDirection
* mesa: don't normalize spot light direction until validation timeBrian Paul2009-04-031-2/+7
| | | | | In glLight() we're only supposed to transform the direction by the modelview matrix, not normalized it too.
* mesa: more error message infoBrian Paul2009-04-031-1/+2
|
* mesa: fix TexParameter functionsRoland Scheidegger2009-04-021-62/+86
| | | | | | | | | premature return in TexParameterf caused mesa to never call Driver.TexParameter breaking drivers relying on this (fix bug #20966). While here, also fix using ctx->ErrorValue when deciding to call Driver.TexParameter. Errors are sticky and uncleared errors thus would cause this to no longer get called. Since we thus need return value of set_tex_parameter[if] can also optimize this to only call when value changed.
* mesa: don't call ctx->Driver.ReadPixels() if width or height is zeroBrian Paul2009-04-021-0/+3
|
* mesa: don't call ctx->Driver.Draw/CopyPixels() if width or height is zeroBrian Paul2009-04-021-24/+28
|
* mesa: get rid of gl_texture_object::_BorderChanBrian Paul2009-04-012-5/+0
|
* mesa: simplify ycbcr->rgb conversion codeBrian Paul2009-04-011-32/+14
|
* mesa: convert more texture fetch functions to return GLfloatBrian Paul2009-04-012-107/+94
|
* mesa: switch texel fetch functions from GLchan to GLfloatBrian Paul2009-04-012-280/+266
|
* mesa: texture combine clean-upsBrian Paul2009-04-013-38/+40
| | | | | | Use MAX_COMBINER_TERMS instead of 4. Rename some vars. Update comments.
* swrast: do texture sampling/combining in floating pointBrian Paul2009-04-011-9/+0
| | | | | The code's cleaner and a step toward supporting float-valued texture sampling. Some optimizations for common cases can be added and re-enabled...
* glsl: implement compiling/linking of separate compilation unitsBrian Paul2009-04-011-0/+1
| | | | | | | | | A shader program may consist of multiple shaders (source code units). If we find there are unresolved functions after compiling the unit that defines main(), we'll concatenate all the respective vertex or fragment shaders then recompile. This isn't foolproof but should work in most cases.
* mesa: fix a recursive display list problemBrian Paul2009-04-011-1/+1
| | | | | | | | | | | | | This fixes an issue when compiling glCallList() into another display list when the mode is GL_COMPILE_AND_EXECUTE. Before, the call to glCallList() called _mesa_save_CallList() which called neutral_CallList() which then called _mesa_save_CallList() again. In the end, the parent display list contained two calls to the child display list instead of one. Let's be on the lookout for regressions caused by this change for a while before we cherry-pick this elsewhere.
* mesa: fix bug in GPU codegen for fixed-function two-sided lightingBrian Paul2009-03-311-2/+12
| | | | | | | | | | | | | The 'dots' register wasn't getting properly un-negated and un-swizzled after emitting the code for back-face lighting. So, if more than one light source was enabled, the specular exponent for the next light source was wrong. During execution we were evaluating pow(x, y) where y was negative instead of positive. This led to the outcome being zero or NaN. This fixes the occasional black triangles seen in isosurf when hacked to enable two-sided lighting.
* mesa: minor reformatting, whitespace changesBrian Paul2009-03-311-25/+26
|
* Updated CPU_TO_LE32 to work on darwinJeremy Huddleston2009-03-311-1/+4
|