Merge branch 'glsl2'
[mesa.git] / src / glsl / TODO
1 - Handle constant expressions of (struct == struct)
2
3 - Handle constant expressions of (struct != struct)
4
5 - Treat built-in functions with constant parameters as constant expressions.
6 - Rewrite all built-in functions return a single expression.
7 - Modify the HIR generator for functions to automatically inline built-in
8 functions durning translation.
9 - Care must be taken to handle both the 1.10 rules and the 1.20+ rules. In
10 1.10, built-in functions cannot be constant expressions.
11
12 - Detect code paths in non-void functions that don't reach a return statement
13
14 - Handle over-riding built-in functions
15 - Is the overload per-compilation unit or per-linked shader?
16
17 - Handle redeclaration of built-in variables
18 - Handle addition of qualifiers such as 'invariant' or 'centroid'.
19 - Handle resizing of arrays.
20 - Other? We'll have to look at the spec.
21
22 - Improve handling of constants and their initializers. Constant initializers
23 should never generate any code. This is trival for scalar constants. It is
24 also trivial for arrays, matrices, and vectors that are accessed with
25 constant index values. For others it is more complicated. Perhaps these
26 cases should be silently converted to uniforms?
27
28 1.30 features:
29
30 - Implement AST-to-HIR conversion of bit-shift operators.
31
32 - Implement AST-to-HIR conversion of bit-wise {&,|,^,!} operators.
33
34 - Implement AST-to-HIR conversion of switch-statements
35 - switch
36 - case
37 - Update break to correcly handle mixed nexting of switch-statements
38 and loops.
39
40 - Handle currently unsupported constant expression types
41 - ir_unop_bit_not
42 - ir_binop_mod
43 - ir_binop_lshift
44 - ir_binop_rshift
45 - ir_binop_bit_and
46 - ir_binop_bit_xor
47 - ir_binop_bit_or
48
49 - Implement support for 1.30 style shadow compares which only return a float
50 instead of a vec4.