Michal Krol
153b179862
glsl: Handle `defined' preprocessor operator.
2009-09-07 10:11:51 +02:00
Michal Krol
3b027bca9d
glsl: Support if preprocessor directive and friends.
2009-09-07 10:11:50 +02:00
Michal Krol
3bb446ba6e
glsl: Add expression interpreter.
2009-09-07 10:11:49 +02:00
Michal Krol
2dad8ed9d6
glsl: Centralise sl_pp_macro constructor.
2009-09-07 10:11:48 +02:00
Michal Krol
6a11d4150c
glsl: Implement macro expansion.
2009-09-07 10:11:47 +02:00
Michal Krol
5e8e3cddae
glsl: Rename sl_pp_context_add_str to sl_pp_context_add_unique_str.
...
Return the same offset for same strings. Allows to compare strings
by comparing their's offsets.
2009-09-07 10:11:46 +02:00
Michal Krol
fd991d845a
glsl: Parse define directive in preprocessor.
2009-09-07 10:11:45 +02:00
Michal Krol
3ce5e66818
glsl: Simplify directive parser skeleton.
2009-09-07 10:11:44 +02:00
Michal Krol
f24322fbf6
glsl: Introduce sl_pp_context and maintain a reuseable pool of strings.
2009-09-07 10:11:43 +02:00
Michal Krol
f24ec185c5
glsl: Add `process' test app that returns tokenised and preprocessed text.
2009-09-07 10:11:42 +02:00
Michal Krol
9d336c5264
glsl: Add preprocessor skeleton for directive parsing.
2009-09-07 10:11:40 +02:00
Michal Krol
5d26deef98
glsl: Remove bogus sl_pp_directive.h include.
2009-09-07 10:11:39 +02:00
Michal Krol
b4e92367f3
glsl: Allow for multiple version statements.
2009-09-07 10:11:38 +02:00
Michal Krol
55f75c13f0
glsl/apps: Print out the number of tokens eaten in version test.
2009-09-07 10:11:38 +02:00
Michal Krol
474f754282
glsl: Raise an error on an unfinished comment block.
2009-09-07 10:11:37 +02:00
Michal Krol
af617c6037
glsl/apps: Add version test app.
2009-09-07 10:11:36 +02:00
Michal Krol
229e72956c
glsl: Parse optional version directive.
2009-09-07 10:11:33 +02:00
Michal Krol
0d5ef796f8
glsl: Add a tokenise app.
2009-09-07 10:11:32 +02:00
Michal Krol
2c9a627b48
glsl: Add a preprocessor tokeniser.
2009-09-07 10:11:31 +02:00
Michal Krol
121769eeb3
glsl: Add a purify command-line tool.
2009-09-07 10:11:30 +02:00
Michal Krol
0bbf59c305
glsl: Add preprocessor purifier.
2009-09-07 10:11:29 +02:00
Michal Krol
970823978c
mesa: Include <unistd.h> only when one is available.
2009-09-07 09:31:17 +02:00
Michal Krol
826d441cdf
mesa: Fix calling conventions of sync object api callbacks.
2009-09-07 09:16:35 +02:00
Michel Dänzer
617202b578
r300g: Fix some issues pointed out by compiler warnings.
2009-09-06 18:12:14 +02:00
Michel Dänzer
7b8ec0d8e7
r300g: Handle PIPE_BUFFER_USAGE_DONTBLOCK as intended.
...
Return NULL if the BO is busy, otherwise just map it.
2009-09-06 18:12:14 +02:00
Brian Paul
23663ae914
mesa: initial version of _mesa_meta_generate_mipmap()
...
Incomplete and totally untested. Based on intel_generate_mipmap().
2009-09-06 09:39:50 -06:00
Brian Paul
4d63c626d0
xlib: test _mesa_meta_bitmap()
2009-09-06 09:37:30 -06:00
Brian Paul
886e7b318d
mesa: use separate temp texture for bitmaps
2009-09-06 09:37:30 -06:00
Brian Paul
b2951ffe96
mesa: temp_texture changes
2009-09-06 09:37:30 -06:00
Brian Paul
f477fa7a85
mesa: free meta bitmap buffers
2009-09-06 09:37:29 -06:00
Brian Paul
0e5293a240
mesa: use _mesa_set_enable()
2009-09-06 09:37:29 -06:00
Brian Paul
bcb62ae78a
mesa: _mesa_meta_bitmap() function
2009-09-06 09:37:29 -06:00
Brian Paul
4fdc96db1d
xlib: move misplaced brace
2009-09-06 09:37:29 -06:00
Nicolai Hähnle
1ddb22675c
r300g: Fix a number of warnings
...
Seriously guys....
2009-09-06 15:14:22 +02:00
Nicolai Hähnle
4b01e6f614
r300g: Debug flags infrastructure
...
So that debugging is no longer a full-spam-or-nothing approach, you are now
supposed to set the RADEON_DEBUG environment flag just like for classic Mesa.
The available debug flags are different, however. Just running an OpenGL
application with RADEON_DEBUG set to an arbitrary string will print out
helpful information.
Everything must be compiled with -DDEBUG for any of this to work
2009-09-06 15:03:52 +02:00
Cooper Yuan
9778731732
r300g: update the value of register VAP_VF_MAX_VTX_INDX
...
according to actual vertex index count.
2009-09-05 20:58:32 +08:00
Cooper Yuan
80ea03bd17
r300g: update rs_block state after changing rasterizer
2009-09-05 14:26:39 +08:00
Cooper Yuan
8f990f928b
r300g: need to validate scissor and viewport state if bind new rasterizer
2009-09-05 10:26:39 +08:00
Alex Deucher
9ab19a3900
r600: add support for EXT_texture_sRGB
2009-09-04 18:46:16 -04:00
Alex Deucher
60ca65c016
r300: Add support for GL_EXT_provoking_vertex
2009-09-04 18:46:15 -04:00
Alex Deucher
8fd7586bcc
r600: Add support for GL_EXT_provoking_vertex
2009-09-04 18:46:15 -04:00
Eric Anholt
0612ad4f19
i965: Don't set the complete field when there is more VUE yet to come.
...
This should help with things like lightsmark, but I don't have a testcase
for this commit.
2009-09-04 14:20:09 -07:00
Eric Anholt
a47858e45e
i965: Add support for 2 threads in the GS.
...
This brings noop vertex shader throughput from 6.8M verts/sec to 10.4M
verts/sec using GL_QUADs on my GM45.
2009-09-04 14:20:09 -07:00
Eric Anholt
8f7f22ca1d
i965: Add support for KIL_NV in brw_wm_emit.c
...
I ran into this lack of support when writing a shader that always discarded
the fragments.
2009-09-04 14:20:08 -07:00
José Fonseca
9216b4e7be
scons: Used wrong exception class.
2009-09-04 19:38:35 +01:00
José Fonseca
b9f56078cd
scons: Don't use scons internal functions.
2009-09-04 19:34:11 +01:00
Alex Deucher
b13a553dd4
r600: fix Elts handling
...
Patch from taiu on IRC. fixes bug 23585
2009-09-04 14:07:53 -04:00
Brian Paul
592a6642fc
ARB prog: replace 'unsigned' with 'gl_state_index'
...
Fixes compilation warnings with MSVC.
2009-09-04 09:17:59 -06:00
Brian Paul
3fedd08779
ARB prog: rename POINT, SIZE to POINT_TOK, SIZE_TOK
...
Fixes symbol collisions with typedefs in Microsoft headers.
Perhaps we should prefix/suffix all the lexer tokens to avoid this.
2009-09-04 09:17:59 -06:00
Brian Paul
40636fe6f2
gallium/xlib: minor clean-ups
2009-09-04 09:17:59 -06:00