summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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
|