summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2011-01-29r300/compiler: Standardize the number of bits used by swizzle fieldsTom Stellard
Swizzles are now defined everywhere as a field with 12 bits that contains 4 channels worth of meaningful information. Any channel that is unused is set to RC_SWIZZLE_UNUSED. This change is necessary because rgb instructions and alpha instructions were initializing channels that would never be used (channel 3 for rgb and channels 1-3 for alpha) with 0 (aka RC_SWIZZLE_X). This made it impossible to use generic helper functions for swizzles, because sometimes a channel value of 0 meant unused and other times it meant RC_SWIZZLE_X. All hacks that tried to guess how many channels were relevant have also been removed.
2011-01-28st/mesa: fix texture array dimensionsBrian Paul
For 1D/2D texture arrays use the pipe_resource::array_size field. In OpenGL 1D arrays texture use the height dimension as the array size and 2D array textures use the depth dimension as the array size. Gallium uses a special array_size field instead. When setting up gallium textures or comparing Mesa textures to gallium textures we need to be extra careful that we're comparing the right fields. The new st_gl_texture_dims_to_pipe_dims() function maps OpenGL texture dimensions to gallium texture dimensions and simplifies this quite a bit.
2011-01-28mesa: fix typo, wrap long lineBrian Paul
2011-01-28st/mesa: pass layers param to st_texture_create()Brian Paul
2011-01-28mesa: Fix available APIs for AMD_conservative_depthChad Versace
Remove ES2, since AMD_conservative_depth is not listed in the OpenGL ES extension registry.
2011-01-28r300/compiler: print stats based on the initial number of instructionsMarek Olšák
The same number of shaders is now printed regardless of optimizations being enabled or not, so that we can compare shader stats side by side easily.
2011-01-26glsl: use 'this' pointer to be consistentBrian Paul
2011-01-26glsl: remove needless conditionalBrian Paul
2011-01-26glsl: move ir_var_out codeBrian Paul
2011-01-26glsl: move ir_var_system_value codeBrian Paul
2011-01-26glsl: use local var to simplify code a bitBrian Paul
2011-01-26mesa: fix compilationZack Rusin
this isn't c++ please don't mix declerations with code
2011-01-26mesa: Allow extensions in MESA_EXTENSION_OVERRIDE to be prefixed with '+'Chad Versace
If an extension is prefixed with '+', attempt to enable it. This introduces symmetry with the prefix '-', which is already allowed.
2011-01-26mesa: Simplify logic in get_extension_override()Chad Versace
* Reduce max indentation level from 7 to 3. * Eliminate counter variables. * Remove function append().
2011-01-26mesa: Propagate gl_FragDepth layout from GLSL IR to Mesa IRChad Versace
2011-01-26mesa: Add AMD_conservative_depth to extension listChad Versace
The extension is off by default. First in a patchset that implements support for AMD_conservative_depth in the compiler.
2011-01-26mesa: Support internalFormat=GL_BGRA for DRI driversKristian Høgsberg
2011-01-26mesa: fix MESA/EXT typoBrian Paul
Spotted by Bernd Buschinski.
2011-01-25st/mesa: support for 1D/2D texture arraysBrian Paul
2011-01-25mesa: remove isProxy local varBrian Paul
2011-01-25mesa: use texFormat local var in more placesBrian Paul
2011-01-25mesa: consolidate error handling code in _mesa_GetTexLevelParameteriv()Brian Paul
2011-01-25mesa: consolidate error handling in set_tex_parameteri()Brian Paul
2011-01-25mesa: add checks for GL_EXT_texture_arrayBrian Paul
In case the driver enables GL_MESA_texture_array but not the EXT version.
2011-01-25ir_to_mesa: Add several assertions about sizes of arraysIan Romanick
Both of these assertions are triggered by the test case in bugzilla size of 0.
2011-01-25st/mesa: add comments in emit_wpos()Brian Paul
2011-01-25st/mesa: fix incorrect fragcoord.x translationBrian Paul
emit_adjusted_wpos() needs separate x,y translation values. If we invert Y, we don't want to effect X. Part of the fix for http://bugs.freedesktop.org/show_bug.cgi?id=26795 NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-01-24mesa: add red, red/green formats in _mesa_base_fbo_format()Brian Paul
2011-01-24mesa: plug in fallback function for ctx->Driver.ValidateFramebuffer()Brian Paul
The software renderer doesn't support GL_ALPHA, GL_LUMINANCE, etc so we should report GL_FRAMEBUFFER_UNSUPPORTED during FBO validation.
2011-01-24mesa: new cases in _mesa_base_fbo_format()Brian Paul
The set of internalFormat parameters accepted by glRenderBufferStorage depends on the EXT vs. ARB version of framebuffer_object. The later added support for GL_ALPHA, GL_LUMINANCE, etc. formats. Note that these formats might be legal but might not be supported. That should be checked with glCheckFramebufferStatus().
2011-01-24Revert "mesa: Simplify _mesa_base_fbo_format by making it exceptions to ↵Brian Paul
teximages." This reverts commit 65c41d55a06137115f0b4c67f9a3fd2708f0b625. There really are quite a few differences in the set of internal formats allowed by glTexImage and glRenderbufferStorage.
2011-01-24st/mesa: Enable EXT_texture_format_BGRA8888 for gles1/2Benjamin Franzke
2011-01-24st/mesa: support internalFormat=GL_BGRA in TexImage2DBenjamin Franzke
2011-01-24mesa/es: require internalFormat==format in TexImage2DBenjamin Franzke
2011-01-24mesa: allow internalFormat=GL_BGRA_EXT in TexImage2DBenjamin Franzke
2011-01-24mesa: s/movzxw/movzwl/ in read_rgba_span_x86.SDimitry Andric
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33386 NOTE: This is a candidate for the 7.9 and 7.10 branches Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-24mesa: s/movzx/movzbl/Dimitry Andric
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33388 NOTE: This is a candidate for the 7.9 and 7.10 branches. Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-24osmesa: mklib requires arguments before objectsChristopher James Halse Rogers
Fixes the build when selecting driver=osmesa and building static libraries. Otherwise, mklib tries to add the ‘-ltalloc’ object to the archive, which obviously fails. Clients which statically link to osmesa will need to link to libtalloc also, as specified in the Libs.private of osmesa.pc. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33360 NOTE: This is a candidate for the 7.10 branch. Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-24r600c: only colors can be flat shadedAndre Maasikas
fixes stellarium text and menu display
2011-01-23r300g: Increase fragment shader limits for r400 cardsTom Stellard
r400 fragment shaders now support up to 64 temporary registers, 512 ALU instructions, and 512 TEX instructions.
2011-01-23gldirect: remove _NEW_ACCUMBrian Paul
2011-01-23i965: remove _NEW_ACCUMBrian Paul
2011-01-23mesa: add ARB_framebuffer_sRGB as alias of the EXT variantMarek Olšák
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-23mesa: return GL_LINEAR for ..COLOR_ENCODING if framebuffer_sRGB is unsupportedMarek Olšák
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-23mesa: get rid of _NEW_ACCUM, clean-up _NEW_* #definesBrian Paul
The _NEW_ACCUM flag was only set when changing the accumulation buffer clear color and never used anywhere. Reclaim that dirty bit. Clean up the definitions of the other dirty bit flags.
2011-01-23mesa: smarter glTexParameter state invalidationBrian Paul
Only a few texture object parameters can effect texture completeness: min level, max level, minification filter. Don't mark the texture incomplete for other texture object state changes.
2011-01-23r300/compiler: remove any code related to relative addressing of temporariesMarek Olšák
The hw can't do it and the code was useless anyway (it's lowered in the GLSL compiler).
2011-01-22st/mesa: ensure that all pixel paths operation on linear RGB data, not sRGBBrian Paul
Before, we were converting between linear/sRGB in glReadPixels, glDrawPixels, glAccum, etc if the renderbuffer was an sRGB texture. Those all need to operate on pixel values as-is without conversion. Also, when setting up render-to-texture, if the texture is sRGB the pipe_surface view must be linear RGB. This will change when we support GL_ARB_framebuffer_sRGB. This fixes http://bugs.freedesktop.org/show_bug.cgi?id=33353
2011-01-22st/mesa: update comment, use st_fb_orientation()Brian Paul
2011-01-22st/mesa: comments in update_viewport()Brian Paul