aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* fix ugly copy/paste error in mipmap generation codeRoland Scheidegger2009-03-311-1/+1
|
* mesa: fix a glGetTexImage issue with base-converted texture formatsRoland Scheidegger2009-03-282-8/+9
| | | | | need to respect the user-supplied base format, not the one derived from the texture format actually used.
* mesa: add _rev signed rgba texture formatRoland Scheidegger2009-03-284-5/+78
|
* glapi regenerateRoland Scheidegger2009-03-281-3008/+3015
|
* mesa: add new signed rgba texture formatRoland Scheidegger2009-03-2815-42/+333
| | | | | This is a (partial) backport of the signed texture format support in OGL 3.1. Since it wasn't promoted from an existing extension roll our own.
* mesa: bump MAX_PROGRAM_TEMPS to 256 (there's some big shaders out there)Alan Hourihane2009-03-241-1/+1
|
* glsl: change GLSL #pragma initializationBrian Paul2009-03-191-0/+3
| | | | | | Initialize the shader's pragma settings before calling the compiler. Added pragma "Ignore" fields to allow overriding the #pragma directives found in shader source code.
* mesa: use the IROUND() macro in pixel packing codeBrian Paul2009-03-181-108/+108
| | | | | | It turns out some tests are sensitive to rounding vs. truncating when converting float color values to integers in glReadPixels(). In particular, this matters when the destination format is 5/6/5 or 4/4/4/4, etc.
* mesa: update/fix doxygen commentsVinson Lee2009-03-179-14/+13
|
* mesa: improve another _mesa_problem() callBrian Paul2009-03-131-1/+2
|
* mesa: add GL_DUDV_ATI cases in calculate_derived_texenv()Brian Paul2009-03-131-0/+3
|
* mesa: more info in _mesa_problem() callBrian Paul2009-03-131-1/+3
|
* mesa: added 1D/3D fetch_texel functions for DUDV8Brian Paul2009-03-132-8/+5
|
* mesa: added GL_DU8DV8_ATI case in _mesa_components_in_format()Brian Paul2009-03-121-0/+1
| | | | This gets hit when glTexSubImage2D() is called with format==GL_DU8DV8_ATI.
* mesa: override_internal_format() function for debug/test purposes (disabled)Brian Paul2009-03-121-0/+49
|
* mesa: improve some error messagesBrian Paul2009-03-121-3/+6
|
* mesa: move declarations before codeBrian Paul2009-03-121-2/+2
|
* mesa: fix glRead/DrawBuffer(GL_AUXn) error valueBrian Paul2009-03-121-0/+8
| | | | | | | If GL_AUX[123] are passed to glRead/DrawBuffer() when those buffers don't exist, need to generate GL_INVALID_OPERATION, not GL_INVALID_ENUM. This regression came from commit 555f0a88182e2b1af809b2d97abdac02814a2f28
* i965: fix polygon stipple when rendering to FBORobert Ellison2009-03-121-3/+3
| | | | | | | | | | | | | | | The polygon stipple pattern, like the viewport and the polygon face orientation, must be inverted on the i965 when rendering to a FBO (which itself has an inverted pixel coordinate system compared to raw Mesa). In addition, the polygon stipple offset, which orients the stipple to the window system, disappears when rendering to an FBO (because the window system offset doesn't apply, and there's no associated FBO offset). With these fixes, the conform triangle and polygon stipple tests pass when rendering to texture.
* mesa: fix transposed red/blue in store_texel_rgb888/bgr888() functionsBrian Paul2009-03-121-4/+4
|
* regenerate glapiRoland Scheidegger2009-03-121-2926/+2950
|
* mesa: add support for ATI_envmap_bumpmapRoland Scheidegger2009-03-1220-23/+732
| | | | | | | | add new entrypoints, new texture format, etc translate in texenvprogram.c for drivers using the mesa-generated tex env fragment program also handled in swrast, but not tested (cannot work due to negative texel results not handled correctly)
* mesa: add missing _glthread_INIT_MUTEX in _mesa_new_framebuffer()Keith Whitwell2009-03-121-0/+1
|
* i965: fix polygon face orientation when rendering to FBORobert Ellison2009-03-111-1/+9
| | | | | | | | | | | | | | In the i965, the FBO coordinate system is inverted from the standard OpenGL/Mesa coordinate system; that means that the viewport and the polygon face orientation have to be inverted if rendering to a FBO. The viewport was already being handled correctly; but polygon face was not. This caused a conform failure when rendering to texture with two-sided lighting enabled. This fixes the problem in the i965 driver, and adds to the comment about the gl_framebuffer "Name" field so that this isn't a surprise to other driver writers.
* mesa: remove some last remnants of GL_MESA_program_debugBrian Paul2009-03-111-1/+0
|
* mesa: minor commentsBrian Paul2009-03-111-3/+3
|
* mesa: remove gl_texture_object::_Function field and associated codeBrian Paul2009-03-112-36/+0
| | | | It was only used in one place in swrast.
* mesa: reorder register file enumsBrian Paul2009-03-091-3/+3
|
* mesa: move shared context state functions to new shared.c fileBrian Paul2009-03-073-366/+408
|
* mesa: move glViewport and glDepthRange functions into new viewport.c fileBrian Paul2009-03-078-175/+238
| | | | A bit of refactoring with an eye toward ES2 and GL 3.1
* mesa: gl_register_file enum typedefBrian Paul2009-03-071-17/+17
|
* mesa: remove GL_MESA_program_debug extensionBrian Paul2009-03-079-134/+0
| | | | This was never fully fleshed out and hasn't been used.
* mesa: remove last of _mesa_unreference_framebuffer() callsBrian Paul2009-03-072-19/+0
|
* Add Solaris to OS'es using PROT_EXEC mmap() to get executable heap spaceAlan Coopersmith2009-03-061-1/+1
| | | | Signed-off-by: Alan Coopersmith <[email protected]>
* mesa: added _mesa_read_shader() function to read shaders from filesBrian Paul2009-03-061-0/+51
| | | | Useful for debugging to override an application's shader.
* mesa: Reads must also be done with lock held.José Fonseca2009-03-061-3/+5
| | | | Otherwise two threads might think each made the refcount go zero.
* mesa: Fix typo.José Fonseca2009-03-061-1/+1
| | | | Windows threads block if one over-unlocks them.
* mesa: call _mesa_get_cpu_features() during one-time-initBrian Paul2009-03-041-0/+3
|
* mesa: new cpuinfo.c file to init/query cpu info and extensionsBrian Paul2009-03-042-0/+156
|
* mesa: Follow ARB_map_buffer_range more stricly.José Fonseca2009-03-041-0/+2
| | | | | Namelly, FlushMappedBufferRange takes a subrange relative to the original range.
* mesa: fix sw fallback state validation bugBrian Paul2009-03-031-10/+28
| | | | | | | | When a hw driver fell back to swrast, swrast wasn't always getting informed of program changes. When fixed function is translated into shaders, flags like _NEW_LIGHT, _NEW_TEXTURE, etc. should really signal _NEW_PROGRAM. In this case, swrast wasn't seeing _NEW_PROGRAM when new fragment shaders were generated.
* Merge commit 'origin/gallium-0.1'Keith Whitwell2009-03-032-3/+38
|\ | | | | | | | | | | | | | | | | | | Conflicts: scons/gallium.py src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/include/pipe/p_defines.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_exec_draw.c
| * mesa: add MapBufferRange driver callbacksKeith Whitwell2009-03-031-0/+26
| | | | | | | | | | | | Will be needed in coming GL extensions (GL_map_buffer_range, GL 3.0). Will be used by the vbo module to avoid reallocating vbo's at each draw primitive call.