Brian Paul
1bdb134570
mesa: glsl: remove old assertion (fixes glsl/bitmap.c)
2008-07-29 17:49:38 -06:00
Brian Paul
40f7e5f674
mesa: disable debug code
2008-07-29 17:47:52 -06:00
Brian Paul
ff916d718a
mesa: regenerated files
2008-07-29 17:45:46 -06:00
Brian Paul
016701f686
mesa: Silence compiler warnings on Windows.
2008-07-29 17:43:35 -06:00
Brian Paul
b26a80aa12
mesa: cast to fix warning
2008-07-29 17:37:55 -06:00
Brian Paul
a7dd701421
mesa: fix bug/failure in recursive function inlining
...
Fixes a failure for cases such as y = f(a, f(a, b))
All the usual tests still pass but regressions are possible...
2008-07-29 17:37:13 -06:00
Brian Paul
6045f17138
mesa: glsl: silence warning (s/int/GLuint)
2008-07-29 17:33:52 -06:00
Brian Paul
a75015ef03
mesa: remove stray debug code
2008-07-29 17:32:35 -06:00
Brian Paul
1638edb325
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-29 17:29:30 -06:00
Brian Paul
6225e51a73
mesa: glsl: re-order some constructors
2008-07-29 17:27:59 -06:00
Brian Paul
d9b6425e00
mesa: glsl: remove unneeded operators
2008-07-29 17:27:54 -06:00
Brian Paul
91e1918f48
mesa: glsl: added null ptr check
2008-07-29 17:27:44 -06:00
Brian Paul
6f1abb9c21
mesa: fix issues causing warnings on Windows
2008-07-29 17:27:22 -06:00
Brian Paul
1b465f287f
mesa: glsl: additional error detection
...
Plus begin some fixes for vec/matrix constructors.
2008-07-29 17:25:44 -06:00
Brian Paul
16dc993d4f
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-29 17:23:52 -06:00
Brian Paul
3d500f00d2
mesa: glsl: only try to link shaders defining main()
2008-07-29 17:23:37 -06:00
Michal Krol
56bac7a35c
mesa: Silence compiler warning on windows.
2008-07-29 17:23:19 -06:00
Brian Paul
5d9b33095a
mesa: glsl: fix/simplify array element handling
...
Also fix bug in comparing large structs/arrays.
2008-07-29 17:22:58 -06:00
Brian Paul
d4c73c619a
mesa: glsl: mark constructor params as const
2008-07-29 17:20:43 -06:00
Brian Paul
01c0558f70
mesa: glsl: rework swizzle storage handling
...
Build on the heirarchal approach implemented for arrays/structs.
2008-07-29 17:20:30 -06:00
Brian Paul
fb3422a241
mesa: fix uninitialized var
2008-07-29 17:20:22 -06:00
Brian Paul
7af8dddf27
mesa: glsl: implement constructor functions for user-defined types
2008-07-29 17:20:14 -06:00
Brian Paul
a9412ca2e8
mesa: remove stray debug assertion
2008-07-29 17:20:06 -06:00
Brian
b36749d066
mesa: fix glUniform error checking for samplers
2008-07-29 17:19:40 -06:00
Brian Paul
b7eea9a1ce
mesa: refactor: move _mesa_Bind/Gen/DeleteProgram() to arbprogram.c
...
No API-level functions now in program.c.
2008-07-29 17:19:25 -06:00
Brian Paul
ff9b6a0ae2
mesa: initial support for GLSL struct/array comparisons
2008-07-29 17:17:22 -06:00
Brian Paul
65db8c9518
mesa: added null ptr check (error handling case)
2008-07-29 17:17:12 -06:00
Brian Paul
19d44b95fe
mesa: fix +=, -=, etc. operators
2008-07-29 17:16:59 -06:00
Brian Paul
be50c48101
mesa: remove an error check for NV_v_p that doesn't apply to ARB_v_p
2008-07-29 17:16:50 -06:00
Brian Paul
bc985b5790
mesa: fix some issues in _mesa_validate_program()
2008-07-29 17:16:33 -06:00
Brian Paul
ffbc66bf61
mesa: assorted glsl uniform/attribute fixes
...
Fix incorrect uniform/attribute size query results.
Add missing error checking for glUniform, glUniformMatrix params
Fix an array size/allocation error.
2008-07-29 17:16:17 -06:00
Brian Paul
74a19b0abd
mesa: glsl: various writemask/swizzle improvements and clean-ups
2008-07-29 17:15:27 -06:00
Brian Paul
38a62ede6c
mesa: rework array/struct addressing code.
...
The slang_ir_storage type now has a pointer to parent storage to represent
storage of an array element within an array, or a field within a struct.
This fixes some problems related to addressing of fields/elements in non-
trivial cases. More work to follow.
2008-07-29 17:15:08 -06:00
Brian Paul
378017417a
mesa: fix some GLSL /= int operators
...
plus add a few more special constructors to improve code quality.
2008-07-29 17:14:14 -06:00
Brian Paul
f45ed0eb8d
mesa: fix set_program_uniform_matrix(): need to loop over matrix count
2008-07-29 17:13:54 -06:00
Brian Paul
5bfbcf7265
mesa: implement grammar/parsing for precision/invariant syntax
...
Plus, fix some issues with pre-defined preprocessor symbols and version checking.
2008-07-29 17:12:19 -06:00
Brian Paul
c3ad176158
mesa: Silence compiler warnings on Windows.
2008-07-29 17:09:40 -06:00
Brian Paul
153407f72d
mesa: fix some function inlining bugs
...
Need to add local vars of original function to the new scope's variable
list (though the DECLs were already present).
In slang_operation_copy() call slang_replace_scope() for SLANG_OPER_BLOCK_NEW_SCOPE opers.
2008-07-29 17:05:54 -06:00
Brian Paul
527e1357b5
mesa: improved printing
2008-07-29 17:04:53 -06:00
Brian Paul
1a5c99f4b5
document GLSL 1.20 status
2008-07-29 16:46:08 -06:00
Brian Paul
44c7f37b44
disable GL_ARB_shading_language_120 until 1.20 features are complete
2008-07-29 07:47:56 -06:00
Florent Thoumie
b5095ab97f
autoconf: disable dri drivers build if being asked
...
Allow --with-dri-drivers={,no} to disable DRI drivers build.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org >
Signed-off-by: Robert Noland <rnoland@2hip.net >
2008-07-28 11:04:41 -04:00
Michel Dänzer
57aea290e1
r300: Fix off-by-one error in calculation of scissor cliprect.
...
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=16123 .
2008-07-28 10:49:43 +02:00
Nicolai Haehnle
c1fb448ce8
r300: Fix a crash related to depth textures (triggered by Glest w/ shadowmaps)
2008-07-27 21:40:17 +02:00
Nicolai Haehnle
c117d0efd2
r300: Implement ARB_shadow_ambient; add STATE_SHADOW_AMBIENT
2008-07-27 21:31:49 +02:00
Nicolai Haehnle
e88be7d375
r300: Fix point minmax size
...
There are 6 subpixel units per pixel, not 16.
2008-07-27 21:18:29 +02:00
Nicolai Haehnle
322677b878
r300: Implement hardware acceleration for ColorLogicOp
2008-07-27 18:18:59 +02:00
Nicolai Haehnle
0973d348d7
r500: Handle non-native swizzles in texture instructions
...
This fixes piglit's fp-kil and fp-generic/kil-swizzle tests.
2008-07-27 16:48:24 +02:00
Nicolai Haehnle
1bdf5e09a0
r500: Redirect TEX writes to output registers
...
While R500 fragment program texture instructions appear to support writemasks,
they cannot write to the output FIFO immediately, so we need to insert a MOV
for these instructions.
This fixes piglit's fp-fragment-position and fp-incomplete-tex tests.
2008-07-27 15:14:07 +02:00
Eric Anholt
902e401a38
intel: Don't return a renderbuffer with alpha when just GL_RGB is requested.
...
Fixes oglconform rbGetterFuncs testcase. The span code for this mode hasn't
actually been tested.
2008-07-26 17:39:23 -07:00