summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-08vbo: Fix GLES2 glVertexAttrib.Chia-I Wu3-60/+74
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 Wu1-27/+1
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 Paul1-1/+1
2010-12-07mesa: make _mesa_test_proxy_teximage() easier to readBrian Paul1-55/+71
2010-12-07mesa: consolidate glCompressedTexImage1/2/3D() functionsBrian Paul1-374/+190
2010-12-07mesa: consolidate glCopyTexSubImage1/2/3D() functionsBrian Paul1-145/+63
2010-12-07mesa: consolidate glCopyTexImage1/2D() codeBrian Paul1-148/+90
2010-12-07mesa: consolidate the glTexSubImage1/2/3D() functionsBrian Paul1-165/+86
2010-12-07mesa: simplify proxy texture code in texture_error_check()Brian Paul1-49/+51
2010-12-08r300/compiler: remove at least unused immediates if externals cannot be removedMarek Olšák3-8/+6
2010-12-08r300/compiler: make lowering passes possibly use up to two less tempsMarek Olšák1-63/+86
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šák1-0/+5
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šák1-16/+30
2010-12-08r300/compiler: cleanup rc_run_compilerMarek Olšák4-15/+36
2010-12-08r300/compiler: add a function to query program stats (alu, tex, temps..)Marek Olšák2-15/+39
2010-12-08r300/compiler: don't terminate regalloc if we surpass max temps limitMarek Olšák1-11/+6
The same check is already in a later pass (translate_vertex_program).
2010-12-07i965: Don't try to store gen6 (float) blend constant color in bytes.Eric Anholt1-1/+1
Fixes glean/blendFunc
2010-12-07linker: Fix regressions caused by previous commitIan Romanick1-12/+16
That's what I get for not running piglit before pushing. Don't try to patch types of unsized arrays when linking fails. Don't try to patch types of unsized arrays that are shared between shader stages.
2010-12-07linker: Ensure that unsized arrays have a size after linkingIan Romanick1-1/+27
Fixes piglit test case glsl-vec-array (bugzilla #31908). NOTE: This bug does not affect 7.9, but I think this patch is a candiate for the 7.9 branch anyway.
2010-12-07i965: Fix flipped value of the not-embedded-in-if on gen6.Eric Anholt1-1/+1
Fixes: glean/glsl1-! (not) operator (1, fail) glean/glsl1-! (not) operator (1, pass)
2010-12-07glsl: Inherrit type of declared variable from initializerIan Romanick1-0/+18
Types of declared variables and their initializer must match excatly except for unsized arrays. Previously the type inherritance for unsized arrays happened implicitly in the emitted assignment. However, this assignment is never emitted for uniforms. Now that type is explicitly copied unconditionally. Fixes piglit test array-compare-04.vert (bugzilla #32035) and glsl-array-uniform-length (bugzilla #31985). NOTE: This is a candidate for the 7.9 branch.
2010-12-07i965: Work around gen6 ignoring source modifiers on math instructions.Eric Anholt3-3/+26
With the change of extended math from having the arguments moved into mrfs and handed off through message passing to being directly hooked up to the EU, it looks like the piece for doing source modifiers (negate and abs) was left out. Fixes: fog-modes glean/fp1-ARB_fog_exp test glean/fp1-ARB_fog_exp2 test glean/fp1-Computed fog exp test glean/fp1-Computed fog exp2 test ext_fog_coord-modes
2010-12-07i965: Add disabled debug code for dumping out the WM constant payload.Eric Anholt1-0/+15
This can significantly ease thinking about the asm.
2010-12-07i965: Correctly emit constants for aggregate types (array, matrix, struct)Ian Romanick1-19/+61
Previously the code only handled scalars and vectors. This new code is modeled somewhat after similar code in ir_to_mesa. Reviewed-by: Eric Anholt <eric@anholt.net>
2010-12-07r600g: fix userspace fence against lastest kernelJerome Glisse2-0/+3
R6XX GPU doesn't like to have two partial flush writting back to memory in row without a prior flush of the pipeline. Add PS_PARTIAL_FLUSH to flush all work between the CP and the ES, GS, VS, PS shaders. Thanks a lot to Alban Browaeys (prahal on irc) for investigating this issue. Signed-off-by: Alban Browaeys <prahal@yahoo.com> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-07r600g: remove dead codeJerome Glisse6-268/+8
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-07i965: Always hand the absolute value to RSQ.Eric Anholt2-1/+6
gen6 builtin RSQ apparently clamps negative values to 0 instead of returning the RSQ of the absolute value like ARB_fragment_program desires and pre-gen6 apparently does. Fixes: glean/fp1-RSQ test 2 (reciprocal square root of negative value) glean/vp1-RSQ test 2 (reciprocal square root of negative value)
2010-12-07glsl: Ensure that equality comparisons don't return a NULL IR treeIan Romanick1-16/+19
This fixes bugzilla #32035 and piglit test case array-compare-01 and array-compare-02. NOTE: This is a candidate for the 7.9 branch.
2010-12-07i965: Handle saturates on gen6 math instructions.Eric Anholt1-0/+2
We get saturate as an argument to brw_math() instead of as compile state, since that's how the pre-gen6 send instructions work. Fixes fp-ex2-sat.
2010-12-07i965: Fix comment about gen6_wm_constants.Eric Anholt1-1/+1
This is the push constant buffer, not the pull constants.
2010-12-07Refresh autogenerated glcpp parser.Kenneth Graunke1-47/+46
2010-12-07glcpp: Don't emit SPACE tokens in conditional_tokens production.Kenneth Graunke1-1/+0
Fixes glslparsertest defined-01.vert. Reported-by: José Fonseca <jfonseca@vmware.com> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Carl Worth <cworth@cworth.org>
2010-12-07r300g: also revalidate the SWTCL vertex buffer after its reallocationMarek Olšák1-0/+1
2010-12-07i965: upload WM state for _NEW_POLYGON on sandybridgeZhenyu Wang1-1/+1
Be sure polygon stipple mode is updated. This fixes 'gamma' demo.
2010-12-07r200: Silence uninitialized variable warning.Vinson Lee1-0/+1
Fixes this GCC warning. r200_maos_arrays.c: In function 'r200EmitArrays': r200_maos_arrays.c:113: warning: 'emitsize' may be used uninitialized in this function
2010-12-07i965: set minimum/maximum Point Width on SandybridgeXiang, Haihao1-1/+3
It is used for point width on vertex. This fixes mesa demo spriteblast and pointblast.
2010-12-07mesa: Clean up header file inclusion in viewport.h.Vinson Lee1-1/+2
2010-12-07mesa: Clean up header file inclusion in varray.h.Vinson Lee1-1/+5
2010-12-07mesa: Clean up header file inclusion in transformfeedback.h.Vinson Lee1-1/+6
2010-12-07mesa: Clean up header file inclusion in texrender.h.Vinson Lee1-1/+3
2010-12-07r300g: validate buffers only if any of bound buffers is changedMarek Olšák7-13/+39
This prevents needless buffer validation (CS space checking).
2010-12-07r300g: cache packet dwords of 3D_LOAD_VBPNTR in a command buffer if possibleMarek Olšák3-15/+65
It's not always possible to preprocess the content of 3D_LOAD_VBPNTR in a command buffer, because the offset to all vertex buffers (which the packet depends on) is derived from the "start" parameter of draw_arrays and the "indexBias" parameter of draw_elements, but we can at least lazily make a command buffer for the case when offset == 0, which should occur most of the time.
2010-12-07u_blitter: use util_is_format_compatible in the assertMarek Olšák1-1/+2
2010-12-06mesa: consolidate glTexImage1/2/3D() codeBrian Paul1-294/+161
Something similar could be done for glCopyTex[Sub]Image() and the compressed texture image functions as well.
2010-12-06mesa: set gl_texture_object::_Complete=FALSE in incomplete()Brian Paul1-27/+5
2010-12-06mesa: test for cube map completeness in glGenerateMipmap()Brian Paul3-0/+49
The texture is not cube complete if the base level images aren't of the same size and format. NOTE: This is a candidate for the 7.9 branch.
2010-12-06glsl: Properly add functions during lazy built-in prototype importing.Kenneth Graunke3-7/+25
The original lazy built-in importing patch did not add the newly created function to the symbol table, nor actually emit it into the IR stream. Adding it to the symbol table is non-trivial since importing occurs when generating some ir_call in a nested scope. A new add_global_function method, backed by new symbol_table code in the previous patch, handles this. Fixes bug #32030.
2010-12-06symbol_table: Add support for adding a symbol at top-level/global scope.Kenneth Graunke2-5/+84
2010-12-06glsl: Factor out code which emits a new function into the IR stream.Kenneth Graunke2-18/+26
A future commit will use the newly created function in a second place.
2010-12-06st/mesa: Unbind all constant buffersJakob Bornecrantz1-2/+2