Commit graph

13145 commits

Author SHA1 Message Date
Brian Paul
50ecc38545 mesa: glsl: if/while/do condition must be boolean 2008-08-04 17:14:49 -06:00
Brian Paul
f70f6e076c mesa: glsl: additional type checking for ?: and = operators 2008-08-04 17:14:49 -06:00
Brian Paul
e194c457fd mesa: glsl: don't allow comparision of arrays 2008-08-04 17:14:49 -06:00
Brian Paul
250910a59d mesa: glsl: error on const-qualified array declarations 2008-08-04 17:14:49 -06:00
Brian Paul
b57c53b2bc mesa: glsl: added null ptr check 2008-08-04 17:14:49 -06:00
Brian Paul
c610c0d77d mesa: glsl: set literal_size for const vars 2008-08-04 17:14:49 -06:00
Brian Paul
95ecc33330 mesa: glsl: add missing code emit for struct/field 2008-08-04 17:14:48 -06:00
Brian Paul
02d223a781 mesa: glsl: stop code emit after error is recorded 2008-08-04 17:14:48 -06:00
Brian Paul
1028458354 mesa: glsl: check that rhs of const var initializer is also const 2008-08-04 17:14:48 -06:00
Brian Paul
901c4db2ed mesa: glsl: handle user-defined const vars in expression simplification 2008-08-04 17:14:48 -06:00
Brian Paul
26ec3780b8 mesa: glsl: fix initialize size error check 2008-08-04 17:14:48 -06:00
Brian Paul
e68a3ef1ef mesa: glsl: added initializer size/type error checking 2008-08-04 17:14:48 -06:00
Brian Paul
7c59a2b5a2 mesa: glsl: only allow one #version directive 2008-08-04 17:14:48 -06:00
Brian Paul
d95bb24ddc mesa: glsl: regenerated file 2008-08-04 17:14:48 -06:00
Brian Paul
012a1f1cf6 mesa: glsl: new bvec4 constructor 2008-08-04 17:14:48 -06:00
Jonathan White
655ca5afad egl: fix _eglGlobal initialization for Windows 2008-08-04 16:30:04 -06:00
Michal Krol
2783f3bfab tgsi: Put a newline after IMM. 2008-08-04 12:18:09 +02:00
Brian Paul
eb80ed0d2e added null ptr check (fix bug 16959) 2008-08-03 11:14:47 -06:00
Younes Manton
4a8b908a46 softpipe: support PIPE_FORMAT_R16_SNORM. 2008-08-02 19:37:16 +02:00
Brian Paul
ab945fc38c mesa: glsl: remove old assertion (fixes glsl/bitmap.c) 2008-07-29 17:49:47 -06:00
Brian Paul
43ac397fb8 mesa: disable debug code 2008-07-29 17:47:39 -06:00
José Fonseca
76164bf7a2 tgsi: Insert newlines after the statements, instead of before.
Prevents shader dumps from getting concatenated with the next debug message.
2008-07-30 00:44:56 +09:00
José Fonseca
28454a512a util: Don't define replacement math functions for CE.
It appears to be working without this before, and it is probably necessary.
2008-07-28 22:42:18 +09:00
José Fonseca
c208a2c791 Merge tgsi/exec and tgsi/util directories. 2008-07-28 12:42:13 +09:00
José Fonseca
ff7a7031ca gallium: Windows miniport portability fixes. 2008-07-26 09:18:07 +09:00
Brian Paul
40acf8cce2 mesa: glsl: assorted fixes for resolving polymorphic functions
Plus,
- fix some issues in casting function arguments to format param types.
- fix some vec/mat constructor bugs
- find/report more syntax/semantic errors
2008-07-25 15:33:02 -06:00
Brian Paul
4b3fb99b50 mesa: regenerated files 2008-07-25 14:48:49 -06:00
Brian Paul
9d9076af5c mesa: glsl: re-order some constructors 2008-07-25 14:48:36 -06:00
Brian Paul
c72bc3f372 mesa: glsl: remove unneeded operators 2008-07-25 14:48:14 -06:00
Brian Paul
72809f3773 mesa: fix issues causing warnings on Windows 2008-07-25 08:34:54 -06:00
Brian Paul
03de81aea1 mesa: glsl: additional error detection
Plus begin some fixes for vec/matrix constructors.
2008-07-25 08:26:53 -06:00
Michal Krol
2acf917f00 mesa: Mark as XXX unresolved warnings on windows. 2008-07-25 10:41:53 +02:00
Brian Paul
7b2ef2b884 mesa: gls: fix broken else clause of conditional break/continue
In the following case:

   for () {
      if (cond)
         break;  // or continue;
      else
         something;
   }

The "something" block didn't get emitted.
2008-07-24 15:49:09 -06:00
Brian Paul
643228c506 mesa: move extensions->version code into separate function 2008-07-24 15:12:42 -06:00
Brian Paul
0216a58430 mesa: don't include Mesa version in GL_SHADING_LANGUAGE_VERSION string 2008-07-24 15:11:59 -06:00
Brian Paul
90a3af7d9d mesa: glsl: only try to link shaders defining main() 2008-07-24 15:11:38 -06:00
José Fonseca
101d1a658a mesa: Prefix main includes with dir to avoid conflicts.
Some of the headers in src/mesa/main have pretty common names which
easily conflict with third-party code, e.g. config.h
2008-07-24 21:24:10 +09:00
José Fonseca
fd6865c7e5 softpipe: Remove unused variables. 2008-07-24 21:23:09 +09:00
José Fonseca
83869ceab5 tgsi: Silent msvc warning.
Rather stupid warning: msvc is warning that converting from a 1bit
structure bitfield to a unsigned char looses precision... /WX makes this
an error.
2008-07-24 21:23:08 +09:00
Michal Krol
b4ed6e9b17 mesa: Silence compiler warning on windows. 2008-07-24 11:03:05 +02:00
Brian Paul
f7be39ea10 gallium: bump TGSI_EXEC_NUM_TEMPS to 128 2008-07-23 16:28:15 -06:00
Brian Paul
d5835c1d0f mesa: glsl: fix/simplify built-in constant lookup 2008-07-23 15:14:22 -06:00
Brian Paul
564c97660a mesa: glsl: fix/simplify array element handling
Also fix bug in comparing large structs/arrays.
2008-07-23 15:04:25 -06:00
Brian Paul
576c5fcc61 mesa: glsl: mark constructor params as const 2008-07-23 12:00:48 -06:00
Brian Paul
5f2a5f6164 gallium: print extended swizzle negation flags 2008-07-23 09:56:44 -06:00
Brian Paul
93f553ed4d gallium: fix translation of extended swizzles, per-component negation 2008-07-23 09:56:20 -06:00
Michal Krol
0aa0141e0c tgsi: Fix tgsi_util_get_full_src_register_extswizzle(). 2008-07-23 17:53:50 +02:00
Jakob Bornecrantz
818cd9dca2 i915: intel_flush_frontbuffer does work 2008-07-23 14:07:26 +02:00
Brian Paul
7f3d6e7481 mesa: glsl: rework swizzle storage handling
Build on the heirarchal approach implemented for arrays/structs.
2008-07-22 18:27:56 -06:00
Brian Paul
0d1ed45cbf mesa: fix uninitialized var 2008-07-22 17:38:55 -06:00