summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2011-03-25mesa: fix glDrawTex*Chia-I Wu
As the case with _mesa_DrawPixels, the driver may install its vertex shader and the vp override flag should be set.
2011-03-17mesa: one more missing pre-generated fileChia-I Wu
2011-03-17mesa: add more pre-generated filesChia-I Wu
2011-03-16intel: advertise GL_OES_point_spriteChia-I Wu
2011-03-16i965c: add MESA_FORMAT_RGBA8888_REV to brw_format_for_mesa_formatChia-I Wu
The framebuffer uses PIXEL_FORMAT_BGRA_8888 -> MESA_FORMAT_ARGB8888 while applications use PIXEL_FORMAT_RGBA_8888 -> MESA_FORMAT_RGBA8888_REV PIXEL_FORMAT_RGB_565 -> MESA_FORMAT_RGB565
2011-03-16mesa: advertise GL_ARB_texture_non_power_of_twoChia-I Wu
It maps to DisplayHardware::NPOT_EXTENSION in SurfaceFlinger.
2011-03-16android: Add Android.mk's.Chia-I Wu
2011-03-16android: Add pre-generated files.Chia-I Wu
make -C src/glsl builtin_function.cpp make -C src/es1api make -C src/es2api make -C src/shared-glapi make -C src/mesa/mai/api_exec_es{12}.c
2011-03-16android: Add __DRI_IMAGE_FORMAT_RGBA8888_REV.Chia-I Wu
2011-03-16android: Enable extensions required by ES1 for i915c.Chia-I Wu
2011-03-16android: Fix depth/stencil with i915c/i965c.Chia-I Wu
2011-03-16android: Fix build with bionic.Chia-I Wu
2011-03-16i965c: Fix a declaration in for loop.Chia-I Wu
2011-03-16i965c: Add support for GL_FIXED.Chia-I Wu
Quick and dirty..
2011-03-16i915c: Add GL_OES_draw_texture support.Chia-I Wu
2011-03-15mesa: use BITFIELD64_BIT() macroBrian Paul
2011-03-15st/mesa: use BITFIELD64_BIT() macro in a few more placesBrian Paul
2011-03-15mesa: use 1UL for 64-bit unsigned constant for C++Brian Paul
This fixes C++ warnings where BITFIELD64_BIT() is used.
2011-03-15i965: Fix alpha testing when there is no color buffer in the FBO.Eric Anholt
We were alpha testing against an unwritten value, resulting in garbage. (part of) Bug #35073.
2011-03-15i965: Do our lowering passes before the loop of optimization.Eric Anholt
The optimization loop won't reinsert noise instructions or quadop vectors, so we were traversing the tree for nothing. Lowering vector indexing was in the loop after do_common_optimization() to avoid the work if it ended up that the index was actually constant, but that has been called already in the core.
2011-03-15mesa: fix scons buildMarek Olšák
2011-03-15gallium: add texture barrier support to the interface and st/mesa (v2)Marek Olšák
v2: change the gallium entry point to texture_barrier.
2011-03-15mesa: add display list support for NV_texture_barrierMarek Olšák
2011-03-15mesa: regenerate glapi filesMarek Olšák
Be sure to type "make clean" after this commit, otherwise your binaries will segfault.
2011-03-15mesa: add NV_texture_barrierMarek Olšák
2011-03-15st/mesa: Make use of the new PIPE_TRANSFER_DISCARD_* for buffer object.Mathias Fröhlich
In memory mapping buffer objects make use of PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE and PIPE_TRANSFER_DISCARD_RANGE when appropriate. Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
2011-03-14i965: Enable texture lookups whose return type is 'float'Kenneth Graunke
This enables the new shadow texture functions in GLSL 1.30. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chad Versace <chad.versace@intel.com>
2011-03-14i965: Fix tex_swizzle when depth mode is GL_REDChad Versace
Change swizzle from (x000) to (x001). Signed-off-by: Chad Versace <chad.versace@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-03-14i965: Remove dead assignmentChad Versace
The assignment on line 368, `tex_swizzles[i] = SWIZZLE_NOOP`, is rendered dead by the reassignment on line 392. Signed-off-by: Chad Versace <chad.versace@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-03-14mesa: rename _mesa_texstore_a8 -> _mesa_texstore_unorm8Marek Olšák
It's a generic function capable of storing A8, L8, I8, R8.
2011-03-14mesa: fix up assertion in _mesa_source_buffer_existsMarek Olšák
This was probably missed when implementing luminance and luminance alpha render targets. _mesa_get_format_bits checks for both GL_*_BITS and GL_TEXTURE_*_SIZE. This fixes: main/framebuffer.c:892: _mesa_source_buffer_exists: Assertion `....' failed.
2011-03-14ir_to_mesa: do not check the number of uniforms against hw limitsMarek Olšák
The r300 compiler can eliminate unused uniforms and remap uniform locations if their number surpasses hardware limits, so the limit is actually NumParameters + NumUnusedParameters. This is important for some apps under Wine to run. Wine sometimes declares a uniform array of 256 vec4's and some Wine-specific constants on top of that, so in total there is more uniforms than r300 can handle. This was the main motivation for implementing the elimination of unused constants. We should allow drivers to implement fail & recovery paths where it makes sense, so giving up too early especially when comes to uniforms is not so good idea, though I agree there should be some hard limit for all drivers. This patch fixes: - glsl-fs-uniform-array-5 - glsl-vs-large-uniform-array on drivers which can eliminate unused uniforms.
2011-03-12Revert "mesa: Convert fixed function fragment program generator to GLSL IR."Eric Anholt
This reverts commit 7cb87dffce2c7a37f960f3a865cf92fd193dd8c5. There were regressions (Bug #35244) and more review has been requested.
2011-03-12Revert "mesa: Track a computed _CurrentFragmentProgram for current ↵Eric Anholt
gl_shader_program" This reverts commit b4452c3baad6e0379eeb7f22f2e51d13999e1323.
2011-03-12Revert "i965: Use the fixed function GLSL program instead of the ARB program."Eric Anholt
This reverts commit 81b34a4e3a7aec9cdf2781757408dc5e9eec79cb. There were regressions in the core change that this depends on.
2011-03-12gallium: Delay the creation of simple helper shadersJakob Bornecrantz
2011-03-12u_blitter: Do blits in linear color space.Henri Verbeet
Blits between sRGB and linear formats should happen in linear color space. This fixes piglit fbo/fbo-srgb-blit.
2011-03-12r300/compiler: do not set TEX_IGNORE_UNCOVERED on r500Marek Olšák
The docs say it can be set for direct texture lookups, but even that causes problems. This fixes the wireframe bug: https://bugs.freedesktop.org/show_bug.cgi?id=32688 NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-03-12r300/compiler: TEX instructions don't support negation on source argumentsMarek Olšák
This fixes piglit: - glsl-fs-texture2d-dependent-4 NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-03-12r300/compiler: Abs doesn't cancel Negate (in the conversion to native swizzles)Marek Olšák
NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-03-12r300/compiler: fix translating the src negate bits in pair_translateMarek Olšák
(1, -_, ...) was converted to (-1, ...) because of the negation in the second component. Masking out the unused bits fixes this. Piglit: - glsl-fs-texture2d-branching NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-03-12r300g: implement fragment color clamping in the shaderMarek Olšák
This finishes the implementation of the fragment color clamp control for ARB_color_buffer_float. I don't wanna keep this stuff in a branch...
2011-03-12r300/compiler: fix the saturate modifier when applied to TEX instructionsMarek Olšák
This bug can only be triggered if the source texture is either signed or float.
2011-03-11nouveau: Build fixAdam Jackson
nouveau_vieux_dri.so.tmp: undefined reference to `_mesa_need_secondary_color'
2011-03-11r600: Build fixAdam Jackson
r600_dri.so.tmp: undefined reference to `_mesa_rgba_logicop_enabled'
2011-03-11scons: Move texenvprogram.c to ff_fragment_shader.cpp.Vinson Lee
2011-03-11i965: Use the fixed function GLSL program instead of the ARB program.Eric Anholt
This gets one more piece of the pipeline onto the new codegen backend. Once ARB_fragment_program can generate GLSL programs, we can nuke the old backend.
2011-03-11mesa: Track a computed _CurrentFragmentProgram for current gl_shader_programEric Anholt
This is like how we track FragmentProgram._Current for the computed ARB fragment program for fixed function texenv, but this gives direct access to the gl_shader_program for drivers to codegen from, skipping ARB_fp.
2011-03-11mesa: Convert fixed function fragment program generator to GLSL IR.Eric Anholt
This is a step towards providing a direct route for drivers accepting GLSL IR for codegen. Perhaps more importantly, it runs the fixed function fragment program through the GLSL IR optimization. Having seen how easy it is to make ugly fixed function texenv code that can do unnecessary work, this may improve real applicatinos.
2011-03-11mesa: Add gl_MESAFogParamsOptimized for our special pre-computed fog params.Eric Anholt
It would be nice if we handled optimized uniform math like this in some generic way, since people often end up doing uniform expressions in shaders, but for now keep this hard-coded like it was in the texenvprogram code.