Brian Paul
efe91b0000
mesa: better error message when running out of GLSL samplers
...
(cherry picked from commit ca0540e25c )
2009-01-06 09:17:53 -07:00
Brian Paul
681ff412f9
mesa: disable debug output
...
(cherry picked from commit 3be8d6db9e )
2009-01-06 09:15:16 -07:00
Brian Paul
c2009111cc
mesa: fix some GLSL array regressions
...
array.length() wasn't working.
Swizzle mask for accessing elements of float arrays was incorrect.
(cherry picked from commit 368df1615e )
2009-01-06 09:14:56 -07:00
Brian Paul
2ced2647fb
mesa: updated GLSL docs
...
(cherry picked from commit c4341fe80a )
2009-01-06 09:14:39 -07:00
Brian Paul
c18860ad1c
mesa: bump glsl grammar revision
...
And update some copyrights.
(cherry picked from commit 4561307a27 )
2009-01-06 09:14:21 -07:00
Brian Paul
6045a6a908
mesa: more re-org of variable declarations in glsl compiler
...
(cherry picked from commit 49543d7177 )
2009-01-06 09:13:54 -07:00
Brian Paul
ceb800a107
mesa: more comments, clean up
...
(cherry picked from commit a1229cc9e7 )
2009-01-06 09:13:30 -07:00
Brian Paul
5b5b05c894
mesa: added comments, remove unused code
...
(cherry picked from commit a66ff046cc )
2009-01-06 09:13:10 -07:00
Brian Paul
be620a66eb
mesa: checkpoint: handle uniform vars in _slang_gen_var_decl()
...
This allows uniform declarations with scalar/array initializers.
The code is rough though, and will be cleaned up.
(cherry picked from commit aa1b904636 )
2009-01-06 09:12:52 -07:00
Brian Paul
d0a39f3d65
mesa: place glsl constant arrays in constant memory
...
For example, a declaration like
const float[3] xxx = float[3](1.1, 2.2, 3.3);
will place the array in the constant buffer whereas a regular, non-const array
would be placed in the temporary register file.
Next up: do the same thing for uniform arrays.
2009-01-06 09:12:19 -07:00
Brian Paul
7f0462abe7
mesa: remove old size=4 limit
...
(cherry picked from commit 0da44c62cc )
2009-01-06 09:12:00 -07:00
Brian Paul
e153275ae8
mesa: code clean-up in glsl compiler
...
(cherry picked from commit d4be09fb2b )
2009-01-06 09:11:52 -07:00
Brian Paul
70050191ed
mesa: remove unneeded swizzle init code in glsl compiler
...
(cherry picked from commit 240e211c71 )
2009-01-06 09:11:40 -07:00
Brian Paul
9d6804bd28
mesa: disable glsl debug output
...
(cherry picked from commit 4d49fc83f1 )
2009-01-06 09:11:20 -07:00
Brian Paul
ceaf57524b
mesa: remove unused varpool code in glsl compiler
...
(cherry picked from commit 81253be334 )
2009-01-06 09:11:08 -07:00
Brian Paul
71ef9e3775
mesa: basic array constructors work now
...
For example: float[3] xxx = float[3](1.1, 2.2, 3.3);
Optimizations for const-qualified arrays next.
(cherry picked from commit 5c0c5e5af9 )
2009-01-06 09:10:59 -07:00
Brian Paul
ae701a1201
mesa: copy array_len in slang_fully_specified_type_copy()
...
(cherry picked from commit c20d00f04b )
2009-01-06 09:10:44 -07:00
Brian Paul
91535b8a61
mesa: remove incorrect array_len assignment
...
(cherry picked from commit 9016331d0f )
2009-01-06 09:10:35 -07:00
Brian Paul
a2ca0c0430
mesa: array size fix in _slang_typeof_operation()
...
(cherry picked from commit 87a00959ba )
2009-01-06 09:10:21 -07:00
Brian Paul
47331842d4
mesa: fix some more GLSL 1.20 array things.
...
Function that return arrays should work now.
(cherry picked from commit 8571401d7d )
2009-01-06 09:10:09 -07:00
Brian Paul
3d7d6cfbc2
mesa: more glsl function renaming
...
(cherry picked from commit d5367622a3 )
2009-01-06 09:09:56 -07:00
Brian Paul
18dd05fbc5
mesa: use _slang_alloc()
...
(cherry picked from commit b4019483de )
2009-01-06 09:09:47 -07:00
Brian Paul
c22801841c
mesa: glsl compiler function renaming
...
(cherry picked from commit 456a4e274f )
2009-01-06 09:09:38 -07:00
Brian Paul
9fc529bcff
mesa: more glsl type/function movement
...
(cherry picked from commit 9a174ef409 )
2009-01-06 09:09:20 -07:00
Brian Paul
a5cd8fef91
mesa: move some glsl compiler functions to different files to be more consistant
...
(cherry picked from commit aeeb9bca27 )
2009-01-06 09:09:11 -07:00
Brian Paul
fbc55bfbb8
mesa: move _slang_locate_function() to different file
...
(cherry picked from commit ea9dc3879f )
2009-01-06 09:09:03 -07:00
Brian Paul
a7e3f85fd6
mesa: remove unused fixup table code in glsl compiler
...
(cherry picked from commit 19ca2908be )
2009-01-06 09:08:54 -07:00
Brian Paul
593073a3b3
mesa: checkpoint: GLSL 1.20 array constructors
...
(cherry picked from commit ade777ea1b )
2009-01-06 09:08:35 -07:00
Brian Paul
0d293f6687
mesa: consolidate variable declaration initializer code for globals too
...
(cherry picked from commit 1737f2dbdd )
2009-01-06 09:08:16 -07:00
Brian Paul
6bc2fa0f82
mesa: move variable initializer IR generation into _slang_gen_var_decl()
...
More code consolidation coming...
(cherry picked from commit 2760bca1e1 )
2009-01-06 09:08:07 -07:00
Brian Paul
de4f208866
mesa: simplify some glsl variable declaration code
...
(cherry picked from commit 05ed9f7fe9 )
2009-01-06 09:07:58 -07:00
Brian Paul
6095b7e224
mesa: glsl clean-ups
...
(cherry picked from commit 929eb00b32 )
2009-01-06 09:07:42 -07:00
Brian Paul
9b28d5ecd6
mesa: checkpoint commit of GLSL 1.20 array syntax.
...
This allows things like float[3] x = float[3](1., 2., 3.);
Parsing and AST construction now. Codegen not working yet.
(cherry picked from commit 2dc3de016c )
2009-01-06 09:07:29 -07:00
Brian Paul
1f8109dd06
mesa: in slang linker, replace assertion with link error when max samplers exceeded
...
(cherry picked from commit e8f5c1a5e8 )
2009-01-06 09:05:53 -07:00
Brian
525145a9f6
mesa: fix conditional in save_Lightfv(), bug 18838
...
(cherry picked from commit 1e2f574251 )
2009-01-06 09:04:31 -07:00
Brian Paul
aeb3caeba5
mesa: add missing type check for function calls
...
(cherry picked from commit 001b1cbb0d )
2009-01-06 09:03:23 -07:00
Brian Paul
e42ed1ed0b
mesa: add missing size check for assignment optimization
...
(cherry picked from commit aa40de5c6f )
2009-01-06 09:03:06 -07:00
Brian Paul
96cab36e2e
mesa: remove debug code
...
(cherry picked from commit fea3a32e17 )
2009-01-06 09:02:47 -07:00
Brian Paul
b8cf2f0076
gallium: added centroid/invarient fields to declarations
...
(cherry picked from commit 4de360e67d )
2009-01-06 09:01:18 -07:00
Brian Paul
06f2139b82
mesa: added support for GLSL 1.20 array.length() method
...
This is the only method supported in GLSL 1.20 so we take a few short-cuts.
(cherry picked from commit 8d95e66cf7 )
2009-01-06 09:00:35 -07:00
Brian Paul
d450ede4c4
mesa: support for GLSL 1.20 array types
...
This allows syntax like "float[8] foo, bar;"
(cherry picked from commit 0fab514ff5 )
2009-01-06 09:00:24 -07:00
Brian Paul
89acfecd0b
mesa: pass shader centroid/invariant info through to the TGSI shader
...
(cherry picked from commit c5b52b5e0e )
2009-01-06 08:57:58 -07:00
Brian Paul
dc48ae97dc
tgsi: add tgsi_declaration fields for centroid sampling, invariant optimization
...
(cherry picked from commit 434e255eae )
2009-01-06 08:57:28 -07:00
Brian Paul
a48b004c44
mesa: add gl_program::Input/OutputFlags[] array
...
These arrays will indicate per-input or per-output options for vertex/fragment
programs such as centroid-sampling and invariance.
(cherry picked from commit b730d0d3e9 )
2009-01-06 08:54:23 -07:00
Brian Paul
71c900abc7
mesa: copy centroid/invariance/precision info in parse_init_declarator()
...
(cherry picked from commit a203713738 )
2009-01-06 08:53:46 -07:00
Brian Paul
674d7181f8
mesa: check that varying variable qualifiers agree
...
(cherry picked from commit dc1107c08d )
2009-01-06 08:53:35 -07:00
Brian Paul
19111c5efc
mesa: copy precision/variant/centroid info in slang_fully_specified_type_copy()
...
(cherry picked from commit 0e2f757413 )
2009-01-06 08:53:28 -07:00
Brian Paul
c249ac6d14
mesa: set flags for varying vars
...
(cherry picked from commit 3197954554 )
2009-01-06 08:53:01 -07:00
Brian Paul
af988262e3
mesa: rename program parameter flags to match other Mesa conventions
...
(cherry picked from commit f490ec9797 )
2009-01-06 08:52:49 -07:00
Brian Paul
64de78723c
mesa: copy Flags in _mesa_clone_parameter_list()
...
(cherry picked from commit 08b825a771 )
2009-01-06 08:52:39 -07:00