Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-09-08 | glsl: Update README talking about multi-instruction operations. | Eric Anholt | |
The previous thing taking multiple instructions ended up being handled at the IR level, as we suggested would be the common result. Pick a new one. | |||
2010-09-08 | glsl/builtins: Set the API in the fake context. | Kenneth Graunke | |
Otherwise it gets used uninitialized. | |||
2010-09-08 | glsl2: Clear out profile pointers in _mesa_glsl_release_functions | Ian Romanick | |
Otherwise builtin_profiles contains dangling pointers the next time _mesa_read_profile is called. I suspect this may fix bugzilla #29847, but I was never able to reproduce it. | |||
2010-09-08 | glsl: Fix for scalar float built-in definitions. | Kenneth Graunke | |
These need abs, and we need more tests. | |||
2010-09-08 | glsl: regenerate builtins | Eric Anholt | |
2010-09-08 | glsl: Fix typo in builtin step() using a wrong channel. | Eric Anholt | |
2010-09-08 | ir_validate: Ensure ir_binop_dot is only used on vector types. | Kenneth Graunke | |
2010-09-08 | glsl: Refresh automatically generated file builtin_function.cpp. | Kenneth Graunke | |
2010-09-08 | glsl/builtins: Don't use ir_binop_dot on floating point values. | Kenneth Graunke | |
ir_binop_dot is only defined for vector types. Use ir_binop_mul. | |||
2010-09-08 | glsl/builtins: Simplify degenerate scalar float cases. | Kenneth Graunke | |
The code being generated was just stupid, considering that: - normalize(x) = 1.0 - length(x) = x - distance(x, y) = x - y | |||
2010-09-08 | glsl2: Make sure _mesa_glsl_parse_state constructor gets a context | Ian Romanick | |
Fix an major regression in dc754586. Too bad that change was obviously never tested. | |||
2010-09-08 | glsl: Support GLSL ES in the standalone compile. | Chia-I Wu | |
GLSL ES mode is enabled when --glsl-es is passed to glsl_compiler. | |||
2010-09-08 | glsl: Require a context in _mesa_glsl_parse_state. | Chia-I Wu | |
Create a dummy context in the standalone compiler and pass it to _mesa_glsl_parse_state. | |||
2010-09-07 | glcpp: Fix build on non-GCC compilers. | Kenneth Graunke | |
2010-09-07 | ast_to_hir: Mark arrays as lvalues in GLSL ES, but prohibit assignment. | Kenneth Graunke | |
This allows them to be passed as out/inout parameters, but still prevents them from being used as the target of an assignment. This is per section 5.8 of the GLSL ES 1.00 specification. | |||
2010-09-07 | glsl: Allow overloading of built-ins without hiding in GLSL ES. | Kenneth Graunke | |
The rules are explicitly different from desktop GLSL. | |||
2010-09-07 | glsl: Move is_builtin flag back to ir_function_signature. | Kenneth Graunke | |
This effectively reverts b6f15869b324ae64a00d0fe46fa3c8c62c1edb6c. In desktop GLSL, defining a function with the same name as a built-in hides that built-in function completely, so there would never be built-in and user function signatures in the same ir_function. However, in GLSL ES, overloading built-ins is allowed, and does not hide the built-in signatures - so we're back to needing this. | |||
2010-09-07 | ast_to_hir: Reject embedded structure definitions in GLSL ES 1.00. | Kenneth Graunke | |
2010-09-07 | ast_to_hir: Reject unsized array declarations in GLSL ES 1.00. | Kenneth Graunke | |
2010-09-07 | ast_to_hir: Allow matrix-from-matrix constructors in GLSL ES. | Kenneth Graunke | |
Everything but 1.10 supports this, so just change the check to ==. | |||
2010-09-07 | linker: Fix assertion and cross-version checks for version 100. | Kenneth Graunke | |
Fixes an assert (min_version >= 110) which was no longer correct, and also prohibits linking ES2 shaders with non-ES2 shaders. I'm not positive this is correct, but the specification doesn't seem to say. | |||
2010-09-07 | glsl: Add built-in function profiles for GLSL ES 1.00. | Kenneth Graunke | |
2010-09-07 | glsl: Add built-in variables for GLSL ES 1.00. | Kenneth Graunke | |
2010-09-07 | glsl: Split out types that are in 1.10 but not GLSL ES 1.00. | Kenneth Graunke | |
2010-09-07 | glsl: Recognize GLSL ES 1.00 keywords. | Kenneth Graunke | |
2010-09-07 | glsl: Define GL_ES preprocessor macro if API is OpenGL ES 2.0. | Kenneth Graunke | |
Also define it if #version 100 is encountered. | |||
2010-09-07 | glsl: Accept language version 100 and make it the default on ES2. | Kenneth Graunke | |
2010-09-07 | glsl: Set default language version in mesa_glsl_parse_state constructor. | Kenneth Graunke | |
This should make it easier to change the default version based on the API (say, version 1.00 for OpenGL ES). Also, synchronize the symbol table's version with the parse state's version just before doing AST-to-HIR. This way, it will be set when it matters, but the main initialization code doesn't have to care about the symbol table. | |||
2010-09-07 | glsl2: Forbid array-types in ?: operator in GLSL 1.10 | Ian Romanick | |
Fixes bugzilla #30039. | |||
2010-09-07 | glsl2: Early return with visit_continue in ↵ | Ian Romanick | |
loop_analysis::visit(ir_dereference_variable *) Returning early with visit_continue_with_parent prevented the then-statements and else-statements of if-statements such as the following from being processed: if (some_var) { ... } else { ... } Fixes piglit test case glsl-fs-loop-nested-if and bugzilla #30030. | |||
2010-09-07 | glsl: Change grammar rules for selection statements to match the spec. | Kenneth Graunke | |
Fixes piglit test case loop-06.vert. Unfortunately, causes 1 shift/reduce conflict. | |||
2010-09-07 | glsl2: check for _NumLinkedShaders being 0 | Török Edvin | |
Otherwise spring 0.82+.4.0 crashes when starting a game because prog->_LinkedShaders[0] is NULL. This also fixes piglit test cases glsl-link-empty-prog-0[12]. | |||
2010-09-05 | glsl: Add new files to sconscript. | José Fonseca | |
2010-09-05 | ir_reader: Only validate IR when a global 'debug' flag is set. | Kenneth Graunke | |
This extra validation is very useful when working on the built-ins, but in general overkill - the results should stay the same unless the built-ins or ir_validate have changed. Also, validating all the built-in functions in every test case makes piglit run unacceptably slow. | |||
2010-09-04 | ir_reader: Run ir_validate on the generated IR. | Kenneth Graunke | |
It's just too easy to get something wrong in hand-written IR. | |||
2010-09-04 | ir_reader: Emit global variables at the top of the instruction list. | Kenneth Graunke | |
Since functions are emitted when scanning for prototypes, functions always come first, even if the original IR listed the variable declarations first. Fixes an ir_validate error (to be turned on in the next commit). | |||
2010-09-04 | ir_reader: Drop support for reading the old assignment format. | Kenneth Graunke | |
2010-09-04 | glsl: Regenerate autogenerated file builtin_function.cpp. | Kenneth Graunke | |
2010-09-04 | glsl/builtins: Convert assignments to new format (with write mask). | Kenneth Graunke | |
2010-09-04 | ir_reader: Read the new assignment format (with write mask). | Kenneth Graunke | |
This preserves the ability to read the old format, for momentary compatibility with all the existing IR implementations of built-ins. | |||
2010-09-04 | ir_reader: Track the current function and report it in error messages. | Kenneth Graunke | |
2010-09-04 | glsl/builtins: Actually print the info log if reading a builtin failed. | Kenneth Graunke | |
2010-09-03 | exec_list: replace class with struct | Brian Paul | |
To match the definition below. | |||
2010-09-03 | glsl2: Use as_constant some places instead of constant_expression_value | Ian Romanick | |
The places where constant_expression_value are still used in loop analysis are places where a new expression tree is created and constant folding won't have happened. This is used, for example, when we try to determine the maximal loop iteration count. Based on review comments by Eric. "...rely on constant folding to have done its job, instead of going all through the subtree again when it wasn't a constant." | |||
2010-09-03 | glsl2: Allow copy / constant propagation into array indices | Ian Romanick | |
2010-09-03 | glsl2: Add module to perform simple loop unrolling | Ian Romanick | |
2010-09-03 | glsl2: Track the number of ir_loop_jump instructions that are in a loop | Ian Romanick | |
2010-09-03 | ir_expression: Add static operator_string method | Ian Romanick | |
I've used this in quite a few debug commits that never reached an up-stream tree. | |||
2010-09-03 | exec_node: Add insert_before that inserts an entire list | Ian Romanick | |
2010-09-03 | glsl2: Eliminate zero-iteration loops | Ian Romanick | |