summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-12-10target/egl: Fix misleading debug message.Chia-I Wu
When the name of the module is NULL, the process itself is dlopen()ed. Do not print libEGL debug: searching for st module (null)
2010-12-09draw/llvm: don't flush in vs_llvm_delete()Brian Paul
Fixes piglit glx-shader-sharing crash. When shaders are shared by multiple contexts, the shader's draw context pointer may point to a previously destroyed context. Dereferencing the context pointer will lead to a crash. In this case, simply removing the flushing code avoids the crash (the exec and sse shader paths don't flush here either). There's a deeper issue here, however, that needs examination. Shaders should not keep pointers to contexts since contexts might get destroyed at any time. NOTE: This is a candidate for the 7.10 branch (after this has been tested for a while).
2010-12-09draw/llvm: remove redundant commentBrian Paul
2010-12-09draw/llvm: remove extraneous conditionalBrian Paul
2010-12-09glsl: Unroll loops with conditional breaks anywhere (not just the end)Luca Barbieri
Currently we only unroll loops with conditional breaks at the end, which is the form that lower_jumps generates. However, if breaks are not lowered, they tend to appear at the beginning, so add support for a conditional break anywhere. Signed-off-by: Luca Barbieri <luca@luca-barbieri.com> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2010-12-09glsl: Consider the "else" branch when looking for loop breaks.Kenneth Graunke
Found this bug by code inspection. Based off the comments just before this code, the intent is to find whether the break exists in the "then" branch or the "else" branch. However, the code actually looked at the last instruction in the "then" branch twice.
2010-12-09glsl: Clean up code by adding a new is_break() function.Kenneth Graunke
2010-12-09glsl: Correct the marking of InputsRead/OutputsWritten on in/out matrices.Eric Anholt
If you used a constant array index to access the matrix, we'd flag a bunch of wrong inputs/outputs as being used because the index was multiplied by matrix columns and the actual used index was left out. Fixes glsl-mat-attribute.
2010-12-09intel: Set the swizzling for depth textures using the GL_RED depth mode.Eric Anholt
Fixes depth-tex-modes-rg.
2010-12-09intel: Use plain R8 and RG8 for COMPRESSED_RED and COMPRESSED_RG.Eric Anholt
Fixes texture-rg.
2010-12-09i965: Silence uninitialized variable warning.Vinson Lee
Fixes this GCC warning. brw_fs.cpp: In function 'brw_reg brw_reg_from_fs_reg(fs_reg*)': brw_fs.cpp:3255: warning: 'brw_reg' may be used uninitialized in this function
2010-12-09r600g: Fix SCons build.Vinson Lee
2010-12-09r600g: indentation cleanupJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-09r600g: specialized upload managerJerome Glisse
Allow important performance increase by doing hw specific implementation of the upload manager helper. Drop the range flushing that is not hit with this code (and wasn't with previous neither). Performance improvement are mostly visible on slow CPU. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-09r600g: avoid using pb* helper we are loosing previous cpu cycle with itJerome Glisse
r600g is up to a point where all small CPU cycle matter and pb* turn high on profile. It's mostly because pb try to be generic and thus trigger unecessary check for r600g driver. To avoid having too much abstraction & too much depth in the call embedded everythings into r600_bo. Make code simpler & faster. The performance win highly depend on the CPU & application considered being more important on slower CPU and marginal/unoticeable on faster one. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-09glsl: fix lowering conditional returns in subroutinesFabian Bieler
this fix applies to the lower_sub_return 'branch' of the lower_jumps pass Fixes piglit tests glsl-functions-5 and glsl-functions-6.
2010-12-09i965: remove unused variable since brw_wm_glsl.c removal.Eric Anholt
2010-12-09i965: Set render_cache_read_write surface state bit on gen6 constant surfs.Eric Anholt
This is said to be required in the spec, even when you aren't doing writes.
2010-12-09i965: Set up the correct texture border color state struct for Ironlake.Eric Anholt
This doesn't actually fix border color on Ironlake, but it appears to be a requirement, and gen6 needs it too.
2010-12-09i965: Clean up VS constant buffer location setup.Eric Anholt
2010-12-09i965: Fix VS constants regression pre-gen6.Eric Anholt
Last minute change for gen6 with 0 used params dropped the multiply.
2010-12-09llvmpipe: Plug fence leaks.José Fonseca
2010-12-09mesa: allow GLfixed arrays for OpenGL ES 2.0Shuang He
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-12-09mesa: Fix glTexCoordPointer with type GL_FIXED.Chia-I Wu
GL_FIXED is also a legal type for glTexCoordPointer.
2010-12-09mesa: Fix GL_FIXED arrays.Chia-I Wu
It is broken since 433e5e6defc85d8b1d6262aff990e3f5a8b37027.
2010-12-08i965: Drop push-mode reladdr constant loading and always use constant_map.Eric Anholt
This eases the gen6 implementation, which can only handle up to 32 registers of constants, while likely not penalizing real apps using reladdr since all of those I've seen also end up hitting the pull constant buffer. On gen6, the constant map means that simple NV VPs fit under the 32-reg limit and now succeed. Fixes around 10 testcases.
2010-12-09radeon: bump mip tree levels to 15Alex Deucher
I forgot to bump this when I bumped the tex levels.
2010-12-08mesa: simplify target checking for TexImage functionsBrian Paul
2010-12-08mesa: revamp error checking for compressed texture imagesBrian Paul
Simplify some code, remove unneeded checks, etc.
2010-12-08glsl: In ast_to_hir, check sampler array indexingChad Versace
Raise error if a sampler array is indexed with a non-constant expression. From section 4.1.7 of the GLSL 1.30 spec: "Samplers aggregated into arrays within a shader (using square brackets [ ]) can only be indexed with integral constant expressions [...]."
2010-12-08i965: Drop KIL_NV from the ff/ARB_fp path since it was only used for GLSL.Eric Anholt
2010-12-08i965: Use the new pixel mask location for gen6 ARB_fp KIL instructions.Eric Anholt
Fixes: fp-kil fp-generic/kil-swizzle.
2010-12-08i965: Set the render target index in gen6 fixed-function/ARB_fp path.Eric Anholt
Fixes: fbo-drawbuffers2-blend fbo-drawbuffers2-colormask
2010-12-08i965: Set up the per-render-target blend state on gen6.Eric Anholt
This will let us get EXT_draw_buffers2 blending and colormasking working.
2010-12-08i965: Set up the color masking for the first drawbuffer on gen6.Eric Anholt
Fixes glean/maskedClear
2010-12-08mesa: Do not advertise GL_OES_texture_3D.Chia-I Wu
GL_OES_texture_3D has a GLSL counterpart. Since it is not implemented, GL_OES_texture_3D should not be advertised.
2010-12-08vbo: Fix GLES2 glVertexAttrib.Chia-I Wu
Attribute 0 has no special meaning in GLES2. Add VertexAttrib4f_nopos for that purpose and make _es_VertexAttrib* call the new function. Rename _vbo_* to _es_* to avoid confusion. These functions are only used by GLES, and now some of them (_es_VertexAttrib*) even behave differently than vbo_VertexAttrib*.
2010-12-08vbo: Drop second ATTR macro.Chia-I Wu
There is no need to have a special version of ATTR for !FEATURE_beginend, since 81ccb3e2ce708619f4c23537a237d61bdffdd35f.
2010-12-08configure: use llvm-config --cppflags instead of --cflagsBrian Paul
2010-12-07mesa: make _mesa_test_proxy_teximage() easier to readBrian Paul
2010-12-07mesa: consolidate glCompressedTexImage1/2/3D() functionsBrian Paul
2010-12-07mesa: consolidate glCopyTexSubImage1/2/3D() functionsBrian Paul
2010-12-07mesa: consolidate glCopyTexImage1/2D() codeBrian Paul
2010-12-07mesa: consolidate the glTexSubImage1/2/3D() functionsBrian Paul
2010-12-07mesa: simplify proxy texture code in texture_error_check()Brian Paul
2010-12-08r300/compiler: remove at least unused immediates if externals cannot be removedMarek Olšák
2010-12-08r300/compiler: make lowering passes possibly use up to two less tempsMarek Olšák
CMP may now use two less temps, other non-native instructions may end up using one less temp, except for SIN/COS/SCS, which I am leaving unchanged for now. This may reduce register pressure inside loops, because the register allocator doesn't do a very good job there.
2010-12-08r300/compiler: handle DPH and XPD in rc_compute_sources_for_writemaskMarek Olšák
This bug can only be triggered if you put deadcode before native rewrite.
2010-12-08r300/compiler: do not print pair/tex/presub program stats for vertex shadersMarek Olšák
2010-12-08r300/compiler: cleanup rc_run_compilerMarek Olšák