Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-07-22 | glsl2: Refresh autogenerated file builtin_function.cpp. | Kenneth Graunke | |
2010-07-22 | glsl2/builtins: Add 1.30 bvec variant of the "mix" builtin. | Kenneth Graunke | |
2010-07-22 | glsl2/builtins: Fix 1.30 sign implementation for ints. | Kenneth Graunke | |
2010-07-22 | glsl2/builtins: Fix "mod" builtin to use scalar/vector operations. | Kenneth Graunke | |
2010-07-22 | glsl2: Initialize ir_instruction::type and ir_rvalue::type. | Kenneth Graunke | |
Top-level instructions now get NULL as their default type (since type is irrelevant for things like ir_function), while ir_rvalues get error_type by default. This should make it easier to tell if we've forgotten to set a type. It also fixes some "Conditional jump or move depends on uninitialized value" errors in valgrind caused by ir_validate examining the type of top level ir_instructions, which weren't set. | |||
2010-07-22 | glsl2: Make ir_assignment derive from ir_instruction, not ir_rvalue. | Kenneth Graunke | |
Assignments can only exist at the top level instruction stream; the residual value is handled by assigning the value to a temporary and returning an ir_dereference_variable of that temporary. | |||
2010-07-22 | glsl2: Fix standalone compiler to not crash horribly. | Kenneth Graunke | |
ir_to_mesa was updated for the _mesa_glsl_parse_state constructor changes, but main.cpp was not. | |||
2010-07-22 | ir_print_visitor: Add "temporary" to mode string printing. | Kenneth Graunke | |
Variables with mode ir_var_temporary were causing an out of bounds array access and filling my screen with rubbish. I'm not sure if "temporary" is the right thing to print. | |||
2010-07-22 | glcpp: Fix function-like macros with an argument used multiple times. | Carl Worth | |
It's really hard to believe that this case has been broken, but apparently no test previously exercised it. So this commit adds such a test and fixes it by making a copy of the argument token-list before expanding it. This fix causes the following glean tests to now pass: glsl1-Preprocessor test 6 (#if 0, #define macro) glsl1-Preprocessor test 7 (multi-line #define) | |||
2010-07-22 | glsl2: Put side effects of the RHS of logic_or in the right branch. | Eric Anholt | |
Kind of missing the point to only do the side effects if the LHS evaluates as true. Fixes: glsl1-|| operator, short-circuit | |||
2010-07-22 | glsl2: Validate that ir_if conditions are actually bool. | Eric Anholt | |
2010-07-22 | ir_to_mesa: Fix the swizzles on record and array dereferences. | Eric Anholt | |
Fixes: glsl1-struct (1) glsl1-struct (2) glsl1-struct (3) glsl1-struct (4) | |||
2010-07-22 | glsl2: When setting the size of an unsized array, set its deref's size too. | Eric Anholt | |
2010-07-22 | glsl: remove invalid _mesa_problem() call | Brian Paul | |
Fixes fd.o bug 29206. | |||
2010-07-22 | glsl2: Set the type on cloned tex instructions. | Eric Anholt | |
2010-07-22 | glsl2: Add the API defines to the glsl2 build so we get the right GLcontext | Eric Anholt | |
Fixes: draw_buffers-08.frag draw_buffers-09.frag glsl-vs-texturematrix-2 | |||
2010-07-22 | draw: re-order optimization passes depending on LLVM version, 32/64-bit | Brian Paul | |
This is a work-around for an apparent bug in LLVM seen with piglit's glsl-vs-sqrt-zero test. | |||
2010-07-22 | glsl2: Fix builtin prototypes defined in multiple glsl/builtins/* files | Eric Anholt | |
If we put the protos in separate ir_functions, they wouldn't be found at lookup time for linking. Fixes: glsl-fs-texture2d-bias glsl-fs-texture2dproj-bias glsl-fs-texture2dproj-bias-2 glsl-lod-bias glsl1-texture2D(), computed coordinate | |||
2010-07-22 | glsl2: Fix expected type for multiplying vector with non-square matrix. | Carl Worth | |
Previously, the compiler expected the result of the multiplication to be of the same type as the vector. This is correct for square matrices, but wrong for all others. We fix this by instead expecting a vector with the same number of rows as the matrix (for the case of M*v with a column vector) or the same number of columns as the matrix (for v*M with a row vector). This fix causes the following four glean tests to now pass: glsl1-mat4x2 * vec4 glsl1-vec2 * mat4x2 multiply glsl1-vec3 * mat4x3 multiply glsl1-vec4 * mat3x4 multiply | |||
2010-07-22 | glsl2: Fix the type of (1.0 - arg2) for mix(gen, gen, float). | Eric Anholt | |
Previously, we'd constant-fold up a value of vec4(1.0 - arg2, 0, 0, 0). Fixes: glsl1-mix(vec4) function | |||
2010-07-22 | glsl2: When inlining, don't clone and assign sampler arguments. | Eric Anholt | |
Instead, just use the incoming sampler param. Fixes many texture-using piglit tests since the linker rework. | |||
2010-07-22 | glsl2: When a "continue" happens in a "for" loop, run the loop expression. | Eric Anholt | |
Fixes: glsl1-for-loop with continue Bug #29097 | |||
2010-07-22 | ir_to_mesa: Pretty up the printing of MESA_GLSL=dump | Eric Anholt | |
2010-07-22 | mesa: Only complain about an infinite loop in a swrast program once. | Eric Anholt | |
Chances are, if one fragment looped badly, others will too, and debugging output gets overwhelmed by the looping complaints. | |||
2010-07-22 | ir_to_mesa: Add support for MESA_GLSL=dump environment var. | Eric Anholt | |
2010-07-22 | draw: added new assertions to clipping code | Brian Paul | |
2010-07-22 | i965: Respect VS/VP point size result when enabled. | Eric Anholt | |
Fixes glsl-vs-point-size. | |||
2010-07-22 | i965: Fix the disasm output for da16 src widths. | Eric Anholt | |
This has confused me twice now. It's a fixed width of 4 (usually a region description of <4,4,1>), not 1. If it was 1, we'd have been skipping all over register space. | |||
2010-07-22 | i965: Avoid extra MOV in VS indirect register reads. | Eric Anholt | |
2010-07-22 | i965: Fix up VS temporary array access for fixed index offset != 0. | Eric Anholt | |
2010-07-22 | r600: Flip point sprite coordinates when rendering to an FBO. | Henri Verbeet | |
This supersedes http://lists.freedesktop.org/archives/mesa-dev/2010-July/001442.html. | |||
2010-07-21 | glsl2: Use talloc on InfoLog handling in ValidateProgram | Eric Anholt | |
Fixes a segfault in Regnum Online. | |||
2010-07-21 | i965: In the VS, multiply the address reg by the appropriate register size. | Eric Anholt | |
The ARL value is increments of vec4 in the register file. But PROGRAM_TEMPORARY or PROGRAM_INPUT are stored as vec4s interleaved between the two verts being executed (thus a vec8 each), compared to PROGRAM_STATE_VAR being packed vec4s. Fixes: glsl-vs-arrays-2 glsl-vs-mov-after-deref (without regressing glsl-vs-arrays-3) | |||
2010-07-21 | i965: Clean up brw_dp_READ_4_vs() now that it has fewer options to support. | Eric Anholt | |
2010-07-21 | i965: Support relative addressed VS constant reads using the appropriate msg. | Eric Anholt | |
The previous support was overly complicated by trying to use the same 1-OWORD message for both offsets. | |||
2010-07-21 | i965: Fix the DP read msg_control definitions other than plain OWORD. | Eric Anholt | |
2010-07-21 | i965: Clean up dead code from the VS get_constant/get_reladdr_constant split. | Eric Anholt | |
2010-07-21 | i956: Set the execution size correctly for scratch space writes. | Eric Anholt | |
Otherwise, the second half isn't written, and we end up reading back black. Fixes the remaining junk drawn in glsl-max-varyings, and will likely help with a number of large real-world shaders. | |||
2010-07-21 | i965: Set the GEM domain flags for the scratch space. | Eric Anholt | |
They go into the render cache, so while we don't care about their contents after execution, failing to note them could cause the writes to be flushed over important buffer contents later. | |||
2010-07-21 | i965: Use the pretty define for 4-oword DP reads. | Eric Anholt | |
2010-07-21 | i965: Set the send commit bit on register spills as required pre-gen6. | Eric Anholt | |
Otherwise, the subsequent read may not get the written value. | |||
2010-07-21 | i965: Add disasm for dataport reads (register unspilling). | Eric Anholt | |
2010-07-21 | glx: Move last few dri_interface.h types out of glxclient.h and drop include | Kristian Høgsberg | |
2010-07-21 | glx: Move __driContext field out of __GLXcontextRec | Kristian Høgsberg | |
2010-07-21 | glsl2: Update TODO. | Kenneth Graunke | |
2010-07-21 | ir_constant_expression: Add support for array == and !=. | Kenneth Graunke | |
Piglit parser tests const-array-03.frag and const-array-04.frag now generate the correct code. | |||
2010-07-21 | ir_constant_expression: Add support for constant arrays. | Kenneth Graunke | |
Fixes piglit test const-array-02.frag. | |||
2010-07-21 | ir_reader: Add support for reading constant arrays. | Kenneth Graunke | |
2010-07-21 | ir_print_visitor: Print out constant arrays. | Kenneth Graunke | |
2010-07-21 | ir_print_visitor: Remove commas between ir_constant's components. | Kenneth Graunke | |
The IR reader does not expect commas. |