mesa.git
14 years agoTrack whether whole-arrays are assignable
Ian Romanick [Sat, 3 Apr 2010 00:17:47 +0000 (17:17 -0700)]
Track whether whole-arrays are assignable

In GLSL 1.10 this was not allowed, but in GLSL 1.20 and later it is.

This causes the following tests to pass:

    glslparsertest/glsl2/array-09.vert
    glslparsertest/glsl2/array-13.vert

14 years agoWhole structures are assignable
Ian Romanick [Sat, 3 Apr 2010 00:05:59 +0000 (17:05 -0700)]
Whole structures are assignable

Whole arrays are assignable in GLSL 1.20 and later, but it's not clear
how to handle that within the IR because the IR is supposed to be
shading language version agnostic.

14 years agoUse glsl_type::element_type to get the type of array elements
Ian Romanick [Fri, 2 Apr 2010 23:08:44 +0000 (16:08 -0700)]
Use glsl_type::element_type to get the type of array elements

14 years agoEnsure that 'in' and 'inout' formal parameters are valid lvalues
Ian Romanick [Fri, 2 Apr 2010 22:51:02 +0000 (15:51 -0700)]
Ensure that 'in' and 'inout' formal parameters are valid lvalues

This causes the following tests to pass:

    glslparsertest/shaders/function10.frag

14 years agoAdditional void parameter checks
Ian Romanick [Fri, 2 Apr 2010 22:30:45 +0000 (15:30 -0700)]
Additional void parameter checks

If there is a void parameter it must not have a name, and it must be
the only parameter.

14 years agoRequire that function formal parameters have names
Ian Romanick [Fri, 2 Apr 2010 22:09:33 +0000 (15:09 -0700)]
Require that function formal parameters have names

14 years agoMake built-in gl_TexCoord available in vertex and fragment shaders
Ian Romanick [Fri, 2 Apr 2010 18:59:57 +0000 (11:59 -0700)]
Make built-in gl_TexCoord available in vertex and fragment shaders

14 years agoFix matching of integer function parameters
Ian Romanick [Fri, 2 Apr 2010 18:45:06 +0000 (11:45 -0700)]
Fix matching of integer function parameters

This causes the following tests to pass:

    glslparsertest/shaders/function10.frag

14 years agoAdd bool/int conversion as IR operations.
Eric Anholt [Fri, 2 Apr 2010 12:17:08 +0000 (02:17 -1000)]
Add bool/int conversion as IR operations.

Fixes constructor-09.glsl and CorrectParse2.frag.

14 years agoAdd conversion of bool to float as an IR operation to match int to float.
Eric Anholt [Fri, 2 Apr 2010 12:13:43 +0000 (02:13 -1000)]
Add conversion of bool to float as an IR operation to match int to float.

14 years agoAdd PASS / FAIL annotations to tests missing them.
Eric Anholt [Fri, 2 Apr 2010 11:59:50 +0000 (01:59 -1000)]
Add PASS / FAIL annotations to tests missing them.

This tricked my import of the tests into piglit.

14 years agoTest that invalid quailfiers aren't used on variables in GLSL 1.10.
Eric Anholt [Fri, 2 Apr 2010 11:53:57 +0000 (01:53 -1000)]
Test that invalid quailfiers aren't used on variables in GLSL 1.10.

14 years agoAllow array dereferences to be considered as lvalues.
Eric Anholt [Fri, 2 Apr 2010 06:27:35 +0000 (20:27 -1000)]
Allow array dereferences to be considered as lvalues.

Fixes glsl-vs-arrays.vert and glsl-vs-mov-after-deref.vert.
Regresses parser3.frag which was failing for the wrong reason.

14 years agoTest for the type being different in parameter_lists_match.
Eric Anholt [Fri, 2 Apr 2010 05:00:29 +0000 (19:00 -1000)]
Test for the type being different in parameter_lists_match.

Fixes CorrectFuncOverload.frag.

14 years agoAdd some more operations to ir_constant_expression.cpp.
Eric Anholt [Fri, 2 Apr 2010 04:35:42 +0000 (18:35 -1000)]
Add some more operations to ir_constant_expression.cpp.

14 years agoMake ir_constant_expression.cpp support multi-component types.
Eric Anholt [Fri, 2 Apr 2010 04:25:11 +0000 (18:25 -1000)]
Make ir_constant_expression.cpp support multi-component types.

14 years agoSimplify ir_constant_expression.cpp by factoring operand computation out.
Eric Anholt [Fri, 2 Apr 2010 04:07:08 +0000 (18:07 -1000)]
Simplify ir_constant_expression.cpp by factoring operand computation out.

14 years agoReject non-float varyings.
Eric Anholt [Thu, 1 Apr 2010 07:21:20 +0000 (21:21 -1000)]
Reject non-float varyings.

Fixes varying2.frag.

14 years agoRemove fake ir_binop_logic_not. I think you meant ir_unop_logic_not.
Eric Anholt [Thu, 1 Apr 2010 07:12:12 +0000 (21:12 -1000)]
Remove fake ir_binop_logic_not.  I think you meant ir_unop_logic_not.

14 years agoHandle logic not in constant expression evaluation.
Eric Anholt [Thu, 1 Apr 2010 07:09:02 +0000 (21:09 -1000)]
Handle logic not in constant expression evaluation.

14 years agoFix error handling of logic operators.
Eric Anholt [Thu, 1 Apr 2010 03:05:32 +0000 (17:05 -1000)]
Fix error handling of logic operators.

They were always throwing a type error because type wasn't being set.

14 years agoEmit errors for unfinished ast_to_hir expression operations.
Eric Anholt [Thu, 1 Apr 2010 02:53:47 +0000 (16:53 -1000)]
Emit errors for unfinished ast_to_hir expression operations.

14 years agoFix ast_logic_not handling to be unary, not binary.
Eric Anholt [Thu, 1 Apr 2010 02:50:55 +0000 (16:50 -1000)]
Fix ast_logic_not handling to be unary, not binary.

14 years agoAdd errors for type results of other expressions.
Eric Anholt [Thu, 1 Apr 2010 02:45:20 +0000 (16:45 -1000)]
Add errors for type results of other expressions.

14 years agoEmit errors from failure in arithmetic_result_type.
Eric Anholt [Thu, 1 Apr 2010 02:38:11 +0000 (16:38 -1000)]
Emit errors from failure in arithmetic_result_type.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoStart trying to fill in a few bits of ir_constant_expression.cpp
Eric Anholt [Thu, 1 Apr 2010 02:25:12 +0000 (16:25 -1000)]
Start trying to fill in a few bits of ir_constant_expression.cpp

This makes a little progress on CorrectParse2.frag.

14 years agoCompute the constant value of a constant initializer.
Eric Anholt [Thu, 1 Apr 2010 01:53:26 +0000 (15:53 -1000)]
Compute the constant value of a constant initializer.

Fixes constFunc.frag.

14 years agoAllow initializers of constant values to succeed.
Eric Anholt [Thu, 1 Apr 2010 01:44:38 +0000 (15:44 -1000)]
Allow initializers of constant values to succeed.

This regresses constFunc.frag, but that's just unexpectedly passing
because of the FINISHME just above.

14 years agoDon't create a parameter declaration for a (void) parameter.
Eric Anholt [Wed, 31 Mar 2010 19:56:36 +0000 (09:56 -1000)]
Don't create a parameter declaration for a (void) parameter.

Fixes segfaults in a shader consisting of just:

    void main(void) { }

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoRemove ast_node::type
Ian Romanick [Fri, 2 Apr 2010 18:03:47 +0000 (11:03 -0700)]
Remove ast_node::type

It isn't a type (is was enum specifying the kind of node), it was
unused, and it was easily confused with actual type fields.  Kill with fire.

14 years agoTrack max accessed array element, reject additional out-of-bounds accesses
Ian Romanick [Fri, 2 Apr 2010 01:31:11 +0000 (18:31 -0700)]
Track max accessed array element, reject additional out-of-bounds accesses

For unsized arrays, we can't flag out-of-bounds accesses until the
array is redeclared with a size.  Track the maximum accessed element
and generate an error if the declaration specifies a size that would
cause that access to be out-of-bounds.

This causes the following tests to pass:

    glslparsertest/shaders/array10.frag

14 years agoBegin processing ast_array_index nodes
Ian Romanick [Fri, 2 Apr 2010 01:03:59 +0000 (18:03 -0700)]
Begin processing ast_array_index nodes

This causes the following tests to pass:

    glslparsertest/shaders/parser3.frag
    glslparsertest/shaders/varying3.frag (also generates spurious error)

14 years agoFix type handling in ir_dereference array dereference constructor
Ian Romanick [Fri, 2 Apr 2010 01:02:48 +0000 (18:02 -0700)]
Fix type handling in ir_dereference array dereference constructor

14 years agoAllow unsized arrays to be redeclared with a size
Ian Romanick [Fri, 2 Apr 2010 00:25:11 +0000 (17:25 -0700)]
Allow unsized arrays to be redeclared with a size

Test glslparsertest/shaders/array11.frag now passes for the right reason.

14 years agoAdd glsl_type::element_type and glsl_type::array_size queries
Ian Romanick [Fri, 2 Apr 2010 00:17:34 +0000 (17:17 -0700)]
Add glsl_type::element_type and glsl_type::array_size queries

The former gets the type of elements in an array, and the later gets
the declared size, if any, of the array.

14 years agoSet source locations on AST nodes so error messages print locations.
Kenneth Graunke [Thu, 1 Apr 2010 00:12:34 +0000 (17:12 -0700)]
Set source locations on AST nodes so error messages print locations.

I haven't verified that these are all correct, but it's still a lot
better than not having anything.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
14 years agoAdd ast_function::hir
Ian Romanick [Thu, 1 Apr 2010 01:23:21 +0000 (18:23 -0700)]
Add ast_function::hir

ast_function::hir consists of bits pulled out of
ast_function_definition::hir.  In fact, the later uses the former to
do a lot of its processing.  Several class private data fields were
added to ast_function to facilitate communicate between the two.

This causes the following tests to pass:

    glslparsertest/shaders/CorrectModule.frag

This causes the following tests to fail.  These shaders were
previously failing to compile, but they were all failing for the wrong
reasons.

    glslparsertest/shaders/function9.frag
    glslparsertest/shaders/function10.frag

14 years agoFix exec_list::move_nodes_to when the source list is empty
Ian Romanick [Thu, 1 Apr 2010 01:15:50 +0000 (18:15 -0700)]
Fix exec_list::move_nodes_to when the source list is empty

14 years agoUse ir_variable::clone to copy parameters to the function body
Ian Romanick [Thu, 1 Apr 2010 00:54:26 +0000 (17:54 -0700)]
Use ir_variable::clone to copy parameters to the function body

Several other code movements were also done.  This partitions this
function into two halves.  The first half processes the prototype
part, and the second have processes the actual function definition.
The coming patch series will parition ast_function_definition::hir
into (at least) two separate functions.

14 years agoAdd ir_variable::clone
Ian Romanick [Thu, 1 Apr 2010 00:52:44 +0000 (17:52 -0700)]
Add ir_variable::clone

14 years agoMinor cleanups in ast_function_definition::hir
Ian Romanick [Thu, 1 Apr 2010 00:39:10 +0000 (17:39 -0700)]
Minor cleanups in ast_function_definition::hir

14 years agoGenerate array constructor calls
Ian Romanick [Wed, 31 Mar 2010 23:48:48 +0000 (16:48 -0700)]
Generate array constructor calls

14 years agoAdd ir_function_signature::function_name
Ian Romanick [Wed, 31 Mar 2010 23:44:12 +0000 (16:44 -0700)]
Add ir_function_signature::function_name

14 years agoMake ir_function::signatures private
Ian Romanick [Wed, 31 Mar 2010 23:40:58 +0000 (16:40 -0700)]
Make ir_function::signatures private

14 years agoAdd ir_function::iterator to iterate over function signatures
Ian Romanick [Wed, 31 Mar 2010 23:40:26 +0000 (16:40 -0700)]
Add ir_function::iterator to iterate over function signatures

14 years agoUse ir_function::add_signature to create link between function and signature
Ian Romanick [Wed, 31 Mar 2010 23:37:10 +0000 (16:37 -0700)]
Use ir_function::add_signature to create link between function and signature

ir_function_signature now has a pointer back to the ir_function that owns it.

14 years agoAdd glsl_type::generate_constructor_prototype
Ian Romanick [Wed, 31 Mar 2010 23:30:56 +0000 (16:30 -0700)]
Add glsl_type::generate_constructor_prototype

Generates a symbol table entry and the IR approximation of a prototype for a
type's constructor.  Currently only arrays are supported.

14 years agoRefactor parts of match_function_by_name into process_parameters and process_call
Ian Romanick [Wed, 31 Mar 2010 23:28:51 +0000 (16:28 -0700)]
Refactor parts of match_function_by_name into process_parameters and process_call

These will be used in the functions that implement calls to array constructors.

14 years agoReject array constructor calls in GLSL 1.10
Ian Romanick [Wed, 31 Mar 2010 23:25:21 +0000 (16:25 -0700)]
Reject array constructor calls in GLSL 1.10

14 years agoUse ast_type_specifier::glsl_type to get the type of a constructor
Ian Romanick [Wed, 31 Mar 2010 23:22:56 +0000 (16:22 -0700)]
Use ast_type_specifier::glsl_type to get the type of a constructor

This is the first baby step towards getting array constructors working.

14 years agoMove type_specifier_to_glsl_type to ast_type_specifier::glsl_type
Ian Romanick [Wed, 31 Mar 2010 23:22:06 +0000 (16:22 -0700)]
Move type_specifier_to_glsl_type to ast_type_specifier::glsl_type

This make is easily accessible from other modules.

14 years agoMore array declaration tests
Ian Romanick [Wed, 31 Mar 2010 23:16:54 +0000 (16:16 -0700)]
More array declaration tests

14 years agoFix big dumbness in glsl_type::get_array_instance
Ian Romanick [Wed, 31 Mar 2010 23:13:38 +0000 (16:13 -0700)]
Fix big dumbness in glsl_type::get_array_instance

hash_table_insert needs to keep the key so that it compare keys on a
following hash_table_find call.  Since key was allocated on the stack,
it disappeared out from under the hash table.

14 years agoglsl_type array constructor generate a real name for the type
Ian Romanick [Wed, 31 Mar 2010 21:37:42 +0000 (14:37 -0700)]
glsl_type array constructor generate a real name for the type

14 years agoTest that const declarations include initializers.
Eric Anholt [Wed, 31 Mar 2010 19:29:33 +0000 (09:29 -1000)]
Test that const declarations include initializers.

Fixes dataType6.frag, and also array2.frag for an unexpected but valid
reason.

14 years agoReject declarations with 'in' or 'out' qualifiers
Ian Romanick [Wed, 31 Mar 2010 20:15:23 +0000 (13:15 -0700)]
Reject declarations with 'in' or 'out' qualifiers

'in' and 'out' can only be used in function parameter lists or at
global scope (1.30 and later).  This change enforces this.

14 years agoAdd 'in' to some parameters of the function
Ian Romanick [Wed, 31 Mar 2010 20:14:37 +0000 (13:14 -0700)]
Add 'in' to some parameters of the function

This goes along with the qualifier-?? tests.

14 years agoAdd some variable declaration qualifier tests
Ian Romanick [Wed, 31 Mar 2010 20:13:12 +0000 (13:13 -0700)]
Add some variable declaration qualifier tests

14 years agoFix comment bug and printf bug in previous commit
Ian Romanick [Wed, 31 Mar 2010 20:03:56 +0000 (13:03 -0700)]
Fix comment bug and printf bug in previous commit

14 years agoRequire that 'uniform' and 'varying' variables be declared at global scope
Ian Romanick [Wed, 31 Mar 2010 19:31:18 +0000 (12:31 -0700)]
Require that 'uniform' and 'varying' variables be declared at global scope

This causes the following tests to pass:

    glslparsertest/shaders/uniform.frag
    glslparsertest/shaders/varying.frag

14 years agoSlightly refector checks for declarations that must be at global scope
Ian Romanick [Wed, 31 Mar 2010 19:26:03 +0000 (12:26 -0700)]
Slightly refector checks for declarations that must be at global scope

14 years agoImplement logical operators.
Eric Anholt [Wed, 31 Mar 2010 19:11:39 +0000 (09:11 -1000)]
Implement logical operators.

Fixes parser9.frag.

14 years agoTest that variable names don't use the reserved gl_ prefix.
Eric Anholt [Wed, 31 Mar 2010 18:20:58 +0000 (08:20 -1000)]
Test that variable names don't use the reserved gl_ prefix.

Fixes identifier2.frag.

14 years agoTest that discard only appears in the fragment shader.
Eric Anholt [Wed, 31 Mar 2010 09:40:14 +0000 (23:40 -1000)]
Test that discard only appears in the fragment shader.

Fixes fragmentOnly4.vert.

14 years agoTest that main doesn't take any parameters.
Eric Anholt [Wed, 31 Mar 2010 09:37:51 +0000 (23:37 -1000)]
Test that main doesn't take any parameters.

Fixes main2.vert.

14 years agoTest that a non-void function returns a value.
Eric Anholt [Wed, 31 Mar 2010 09:28:20 +0000 (23:28 -1000)]
Test that a non-void function returns a value.

14 years agoTest that a void function doesn't return a value.
Eric Anholt [Wed, 31 Mar 2010 09:23:16 +0000 (23:23 -1000)]
Test that a void function doesn't return a value.

Fixes function1.frag.

14 years agoFix unused variable warning.
Eric Anholt [Wed, 31 Mar 2010 04:31:32 +0000 (18:31 -1000)]
Fix unused variable warning.

14 years agoForbid array comparisons in GLSL 1.10
Ian Romanick [Wed, 31 Mar 2010 00:04:48 +0000 (17:04 -0700)]
Forbid array comparisons in GLSL 1.10

This causes the following tests to pass:

    glslparsertest/shaders/array3.frag

14 years agoBegin handling array declarations
Ian Romanick [Tue, 30 Mar 2010 23:59:27 +0000 (16:59 -0700)]
Begin handling array declarations

This causes the following tests to pass:

    glslparsertest/shaders/array4.frag
    glslparsertest/shaders/array5.frag

This causes the following tests to fail.  These shaders were
previously failing to compile, but they were all failing for the wrong
reasons.

    glslparsertest/shaders/array3.frag

14 years agoImplement array type handling
Ian Romanick [Tue, 30 Mar 2010 23:58:19 +0000 (16:58 -0700)]
Implement array type handling

Since all glsl_type objects are flyweights, support is added to track all
known array types.  This accounts for most of the changes.

14 years agoAdd proper wrappers so that C++ code can use hash_table type
Ian Romanick [Tue, 30 Mar 2010 23:57:29 +0000 (16:57 -0700)]
Add proper wrappers so that C++ code can use hash_table type

14 years agoInitial bits of constant expression evaluator
Ian Romanick [Tue, 30 Mar 2010 23:56:50 +0000 (16:56 -0700)]
Initial bits of constant expression evaluator

Currently only works for constants.  The rest will be added later.

14 years agoAdd some array declaration tests
Ian Romanick [Tue, 30 Mar 2010 23:56:22 +0000 (16:56 -0700)]
Add some array declaration tests

14 years agoArrays are not allowed as vertex shader inputs in GLSL 1.30 either
Ian Romanick [Tue, 30 Mar 2010 00:40:11 +0000 (17:40 -0700)]
Arrays are not allowed as vertex shader inputs in GLSL 1.30 either

14 years agoAdd several tests for vertex shader attributes
Ian Romanick [Tue, 30 Mar 2010 00:19:13 +0000 (17:19 -0700)]
Add several tests for vertex shader attributes

14 years agoAdd some checking for vertex shader inputs / attributes
Ian Romanick [Tue, 30 Mar 2010 00:16:35 +0000 (17:16 -0700)]
Add some checking for vertex shader inputs / attributes

This causes the following tests to pass:

     glslparsertest/shaders/attribute.vert
     glslparsertest/shaders/attribute1.vert
     glslparsertest/shaders/attribute2.vert

14 years agoAdd parser support for texture rectangle types
Ian Romanick [Mon, 29 Mar 2010 23:44:29 +0000 (16:44 -0700)]
Add parser support for texture rectangle types

14 years agoUse call-by-reference for apply_implicit_conversion
Ian Romanick [Mon, 29 Mar 2010 23:32:55 +0000 (16:32 -0700)]
Use call-by-reference for apply_implicit_conversion

I'm not sure if this is a win or not.  It makes the code in
apply_implicit_conversion more clear, but it obscures the fact that it
may change the pointers.

14 years agoApply implicit conversions to ?: operator
Ian Romanick [Mon, 29 Mar 2010 23:25:56 +0000 (16:25 -0700)]
Apply implicit conversions to ?: operator

14 years agoApply implicit conversions to equality operators
Ian Romanick [Mon, 29 Mar 2010 23:22:38 +0000 (16:22 -0700)]
Apply implicit conversions to equality operators

14 years agoApply implicit conversions to relational operators
Ian Romanick [Mon, 29 Mar 2010 23:20:07 +0000 (16:20 -0700)]
Apply implicit conversions to relational operators

14 years agoApply implicit conversions to arithmetic operators
Ian Romanick [Mon, 29 Mar 2010 23:17:56 +0000 (16:17 -0700)]
Apply implicit conversions to arithmetic operators

14 years agoAdd glsl_type::is_array and glsl_type::is_float queries
Ian Romanick [Mon, 29 Mar 2010 23:17:15 +0000 (16:17 -0700)]
Add glsl_type::is_array and glsl_type::is_float queries

14 years agoAllow single-component constructors
Ian Romanick [Mon, 29 Mar 2010 22:36:02 +0000 (15:36 -0700)]
Allow single-component constructors

This causes the following tests to pass:

    glslparsertest/shaders/CorrectVersion.V110.frag
    shaders/glsl-vs-sqrt-zero.frag
    shaders/glsl-vs-sqrt-zero.vert

This causes the following tests to fail.  These shaders were
previously failing to compile, but they were all failing for the wrong
reasons.

    glslparsertest/shaders/attribute1.vert
    glslparsertest/shaders/attribute2.vert
    glslparsertest/shaders/main2.vert

14 years agoAdd tests for :? operator
Ian Romanick [Mon, 29 Mar 2010 22:34:21 +0000 (15:34 -0700)]
Add tests for :? operator

14 years agoImplement HIR conversion for ?: operator
Ian Romanick [Mon, 29 Mar 2010 22:33:54 +0000 (15:33 -0700)]
Implement HIR conversion for ?: operator

14 years agoAdd generate_temporary to generate an anonymous temporary
Ian Romanick [Mon, 29 Mar 2010 22:20:42 +0000 (15:20 -0700)]
Add generate_temporary to generate an anonymous temporary

14 years agoImplement HIR conversion for ast_nequal and ast_equal
Ian Romanick [Mon, 29 Mar 2010 22:11:05 +0000 (15:11 -0700)]
Implement HIR conversion for ast_nequal and ast_equal

The following tests now pass:

    shaders/glsl-unused-varying.frag
    shaders/glsl-fs-sqrt-branch.frag

14 years agoAdd missing break-statements in ast_expression::hir
Ian Romanick [Mon, 29 Mar 2010 21:15:05 +0000 (14:15 -0700)]
Add missing break-statements in ast_expression::hir

The ast_conditional case was flowing right into ast_pre_inc.

14 years agoImplement ir_if (for if-statments) and conversion from AST
Ian Romanick [Mon, 29 Mar 2010 21:11:25 +0000 (14:11 -0700)]
Implement ir_if (for if-statments) and conversion from AST

The following tests now pass:

    glslparsertest/shaders/if1.frag
    glslparsertest/shaders/if2.frag

The following tests that used to pass now fail.  It appears that most
of these fail because ast_nequal and ast_equal are not converted to HIR.

    shaders/glsl-unused-varying.frag
    shaders/glsl-fs-sqrt-branch.frag

14 years agoAdd several simple if-statement tests
Ian Romanick [Mon, 29 Mar 2010 21:11:10 +0000 (14:11 -0700)]
Add several simple if-statement tests

14 years agoAdd a variable to the symbol table after processing the initializer
Ian Romanick [Mon, 29 Mar 2010 19:59:02 +0000 (12:59 -0700)]
Add a variable to the symbol table after processing the initializer

14 years agoTrivial code cleanup in ir_dereference::is_lvalue
Ian Romanick [Mon, 29 Mar 2010 19:52:00 +0000 (12:52 -0700)]
Trivial code cleanup in ir_dereference::is_lvalue

14 years agoAdd support for builtin radians() and degrees().
Eric Anholt [Sun, 28 Mar 2010 08:55:38 +0000 (01:55 -0700)]
Add support for builtin radians() and degrees().

14 years agoAdd definitions for 1.10 built-in uniforms for ff state.
Eric Anholt [Sun, 28 Mar 2010 08:46:48 +0000 (01:46 -0700)]
Add definitions for 1.10 built-in uniforms for ff state.

14 years agoDon't let swizzles with duplicated components be considered as lvalues.
Eric Anholt [Sun, 28 Mar 2010 08:29:18 +0000 (01:29 -0700)]
Don't let swizzles with duplicated components be considered as lvalues.

Fixes swizzle2.frag.

14 years agoReject main() declarations with a non-void return value.
Eric Anholt [Sun, 28 Mar 2010 08:24:55 +0000 (01:24 -0700)]
Reject main() declarations with a non-void return value.

Fixes main3.vert.

14 years agoReject variables marked with attribute in the fragment shader.
Eric Anholt [Sun, 28 Mar 2010 07:56:22 +0000 (00:56 -0700)]
Reject variables marked with attribute in the fragment shader.

Fixes attribute.frag.

14 years agoAdd the instruction for the parameter variable declarations of builtin funcs.
Eric Anholt [Sun, 28 Mar 2010 07:36:06 +0000 (00:36 -0700)]
Add the instruction for the parameter variable declarations of builtin funcs.

Matches constructor setup, but I'm not really sure why we make the
variable twice.