summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2010-08-13Merge branch 'master' into glsl2Ian Romanick
2010-08-13mesa: Work-arounds for platforms that lack C99 math functionsIan Romanick
2010-08-13mesa: Avoid using c++ keyword in dri_util.h when compiled with c++.Eric Anholt
2010-08-13intel: Remove include of texmem.h, since we haven't used it in ages.Eric Anholt
2010-08-13glsl2: Move ir_to_mesa handling to driver CompileShader and LinkShader hooks.Eric Anholt
This lets drivers override ir_to_mesa with their own codegen, or at least have a native alternative.
2010-08-13glsl2: Move the common optimization passes to a helper function.Eric Anholt
These are passes that we expect all codegen to be happy with. The other lowering passes for Mesa IR are moved to the Mesa IR generator.
2010-08-13scons: Build the new glsl2 code.José Fonseca
2010-08-12glsl2: Use Elements from main/compiler.h instead of open-codingIan Romanick
2010-08-12mesa: check for null shader->InfoLog before printingBrian Paul
2010-08-11osmesa: link with new libglsl.a libBrian Paul
2010-08-11glsl2: remove stray semicolonBrian Paul
2010-08-11glsl2: remove stray semicolonBrian Paul
2010-08-09glsl2: Add a pass to transform ir_binop_sub to add(op0, neg(op1))Eric Anholt
All the current HW backends transform subtract to adding the negation, so I haven't bothered peepholing it back out in Mesa IR. This allows some subtract of subtract to get removed in ir_algebraic.
2010-08-09glsl2: Add constant propagation.Eric Anholt
Whereas constant folding evaluates constant expressions at rvalue nodes, constant propagation tracks constant components of vectors across execution to replace (possibly swizzled) variable dereferences with constant values, triggering possible constant folding or reduced variable liveness.
2010-08-09i965: More s/stderr/stdout/ for program debug.Eric Anholt
2010-08-06glsl2: Move gl_program->InputsRead/OutputsWritten setting to an ir pass.Eric Anholt
This lets us handle arrays much better than trying to work backwards from assembly. Fixes fbo-drawbuffers-maxtargets on swrast (i965 needs loop unrolling)
2010-08-06swrast: Reduce header file inclusion in s_aatriangle.h.Vinson Lee
Include mtypes.h for GLcontext symbol.
2010-08-06swrast: Reduce header file inclusion in s_aaline.h.Vinson Lee
Include mtypes.h for GLcontext symbol.
2010-08-06ir_to_mesa: Add support for sampler arrays.Eric Anholt
Support for samplers in general is still incomplete -- anything in a uniform struct will still be broken. But that doesn't appear to be any different from master. Fixes: glsl-fs-uniform-sampler-array.shader_test
2010-08-06glsl2: Don't assert in a couple of places when encountering sampler arrays.Eric Anholt
Fixes glean shaderAPI.
2010-08-06ir_to_mesa: Give the expected size for _mesa_add_attribute().Eric Anholt
Fixes a failure in glean shaderAPI.
2010-08-05st/mesa: Clean up header file inclusion in st_program.h.Vinson Lee
st_program.h Remove p_shader_tokens.h Include st_context.h for st_context symbol. Include p_state.h for PIPE_MAX_SHADER_INPUTS symbol. Remove unnecessary forward declarations. st_cb_bitmap.c st_cb_clear.c Include p_shader_tokens.h now that st_program.h doesn't include it.
2010-08-05ir_to_mesa: Handle texture-array samplersIan Romanick
Fixes piglit test array_texture.
2010-08-05st/mesa: Only get debug option onceJakob Bornecrantz
2010-08-05st/mesa: Only get mesa mvp dp4 option onceJakob Bornecrantz
The correct for this is of course to do what comment says
2010-08-05st/mesa: Clean up header file inclusion in st_mesa_to_tgsi.h.Vinson Lee
st_mesa_to_tgsi.h Replace tgsi_ureg.h with a forward declaration. Include p_compiler.h for ubyte symbol. st_program.c Include tgsi_ureg.h directly.
2010-08-05st/mesa: Clean up header file inclusion in st_manager.h.Vinson Lee
Include mtypes.h for GLcontext, gl_buffer_index, and GLframebuffer symbols. Include p_compiler.h for boolean symbol. Include st_context.h in st_cb_eglimage.c as it previously included st_context.h indirectly through st_manager.h.
2010-08-05glsl: fix atan(0, -1)Brian Paul
Fixes fd.o bug 29388 NOTE: this is a candidate for the 7.8 branch.
2010-08-05glsl2: Add a pass to convert exp and log to exp2 and log2.Eric Anholt
Fixes ir_to_mesa handling of unop_log, which used the weird ARB_vp LOG opcode that doesn't do what we want. This also lets the multiplication coefficients in there get constant-folded, possibly. Fixes: glsl-fs-log
2010-08-05r600c: tiling require drm 2.6.0, not 2.5.0Alex Deucher
2010-08-05r600: add support for getting the tiling config via drm ioctl (v2)Alex Deucher
Needed for the the 2D tiling span functions. v2: rebase on new kernel, mesa changes Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-08-05r600: add new relocs for tiling supportAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-08-05r600: add span support for 2D tilingAlex Deucher
Requires tiling config ioctl support from the drm to use. kms only. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-08-05ir_to_mesa: Don't do function inlining until linking.Eric Anholt
Optimizations at compile time should generally be done with the goal of reducing instruction count so that other work, particularly linking, is less time-consuming if the shader is used multiple times. However, function inlining increases instruction count for the inlined function bodies without removing the original function body, since we don't know if it will be used at link time or not. Reduces the runtime of linking and executing a Yo Frankie fragment shader from 0.9 seconds to 0.5 seconds (-45.9%, +/- 2.2%, n=5).
2010-08-05glsl2: Don't try to dump GLSL IR for a shader that didn't compile.Eric Anholt
2010-08-05ir_to_mesa: Remove debug force-enablement of EmitNoIfs.Eric Anholt
2010-08-05st/mesa: Remove unnecessary header from st_gl_api.h.Vinson Lee
2010-08-05mesa: Include missing header in st_get_mipmap.h.Vinson Lee
Include mtypes.h for GLcontext symbol. Add forward declaration for st_context.
2010-08-05st/mesa: Include missing headers in st_format.h.Vinson Lee
2010-08-05st/mesa: Add forward delcaration in st_extensions.h.Vinson Lee
2010-08-05st/mesa: Add missing headers to st_draw.h.Vinson Lee
2010-08-05intel: Check for a NULL src buffer prior to bltChris Wilson
This can only happen along a malloc failure path, but check anyway. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-08-05intel: Check for region allocation failure.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-08-04st/mesa: Add missing header in st_context.c.Vinson Lee
2010-08-04st/mesa: Add missing header in st_atom_pixeltransfer.c.Vinson Lee
2010-08-04st/mesa: Clean up header file inclusion in st_context.h.Vinson Lee
2010-08-04st/mesa: Add missing header in st_cb_xformfb.h.Vinson Lee
2010-08-04i965: Settle on printing our program debug to stdout.Eric Anholt
Mixing stderr (_mesa_print_program, _mesa_print_instruction, _mesa_print_alu) with stdout means that when writing both to a file, there isn't a consistent ordering between the two.
2010-08-04ir_to_mesa: Print shader source and compiled IR under MESA_GLSL=dump.Eric Anholt
While the Mesa IR dumping includes some corresponding GLSL IR for correlating Mesa IR to GLSL IR, it doesn't completely express it. This printing includes things like variable declarations and control flow structure that is hard to read otherwise.
2010-08-04st/mesa: Clean up st_cb_viewport.h.Vinson Lee
Add inclusion guard. Add forward declaration.