Brian Paul
8de625c7cf
i965: fix incorrect test for vertex position attribute
2009-09-08 12:21:42 -06:00
Michel Dänzer
e34ea368d9
st/xorg: Add support for EXA_MIXED_PIXMAPS and EXA_SUPPORTS_PREPARE_AUX.
...
Also make sure not to leak malloced memory when switching pixmaps to texture
based.
2009-09-08 18:08:24 +02:00
Brian Paul
18bdb6e712
egl: also use X types for building on Apple/MacOS X
...
See bug 20413.
2009-09-08 09:20:43 -06:00
Vinson Lee
2c307c7750
scons: Add Mac OS to target platform list.
2009-09-08 12:32:37 +01:00
Michal Krol
fab99092a0
slang: Correctly handle end of tokens marker.
2009-09-08 13:32:20 +02:00
Michal Krol
2ec2936454
slang: Do not parse whitespace.
...
The preprocessor tokeniser deals with those.
2009-09-08 13:29:17 +02:00
Michal Krol
58fa89c902
slang: Correctly parse numbers from the new preprocessor.
2009-09-08 12:46:34 +02:00
Michal Krol
b837f6c372
grammar: Fix token stripping.
2009-09-08 10:57:39 +02:00
Michal Krol
d06069f305
slang: Remove the old preprocessor.
2009-09-08 10:46:29 +02:00
Michal Krol
7e6e5cd60a
slang: Remove dependencies on error tokens.
2009-09-08 10:33:49 +02:00
Michal Krol
0aeff7638b
gdi: Fix prototype of gdi_softpipe_surface_buffer_create().
2009-09-08 10:23:05 +02:00
Michal Krol
fcb94f6e3e
gdi: Fix prototype of gdi_softpipe_surface_buffer_create().
2009-09-08 10:22:07 +02:00
Michal Krol
5ddcdc4227
slang: Adapt shader syntax description to grammar parser changes.
2009-09-07 21:30:34 +02:00
Michal Krol
ce9309d245
grammar: Adapt grammar to the glsl preprocessor.
2009-09-07 21:27:42 +02:00
Michal Krol
d26d77295b
gdi: Add glsl to LIBS.
2009-09-07 21:23:43 +02:00
Michal Krol
b97a734658
grammar: Remove dead code.
2009-09-07 17:45:26 +02:00
Vinson Lee
79f48c9f9e
scons: Don't set LLVM_VERSION if one of the llvm-config calls fails.
...
Ubuntu 8.10 has llvm-config version 2.2, which doesn't have
nativecodegen. This triggers an exception.
2009-09-07 15:16:25 +01:00
José Fonseca
b481fb2c6d
llvmpipe: Silent debug statement.
2009-09-07 15:02:08 +01:00
José Fonseca
1127201088
llvmpipe: Better abs for floating points.
2009-09-07 15:02:08 +01:00
José Fonseca
e4c76c02f7
llvmpipe: Code generate the texture sampling inside the shader.
...
Finally a substantial performance improvement: framerates of apps using
texturing tripled, and furthermore, enabling/disabling texturing only
affects around 15% of the framerate, which means the bottleneck is now
somewhere else.
Generated texture sampling code is not complete though -- we always
sample from the base level -- so final figures will be different.
2009-09-07 15:02:08 +01:00
José Fonseca
de8376e2f2
llvmpipe: Texture sampling code generation primitives.
...
Only supports single level 2d textures, with neareast and bilinear
filtering for now.
2009-09-07 15:02:07 +01:00
José Fonseca
0c2ea24338
llvmpipe: Convenience function to obtain the integer type with same bitdepth of an arbitrary type.
2009-09-07 15:02:07 +01:00
José Fonseca
fa0f4b35be
llvmpipe: Utility functions for linear and bilinear interpolation.
2009-09-07 15:02:07 +01:00
José Fonseca
4da20234f3
llvmpipe: Correct implementation of floor.
2009-09-07 15:02:07 +01:00
José Fonseca
b1eff018c7
llvmpipe: Utility function to get the pointer to a structure member.
2009-09-07 15:02:07 +01:00
José Fonseca
866fbacf2b
llvmpipe: SoA pixel unpacking specialization.
2009-09-07 15:02:06 +01:00
José Fonseca
6b129a8222
util: Utility function to check if a number is a power of two.
2009-09-07 15:02:06 +01:00
José Fonseca
8be72bb764
llvmpipe: Further abstract the texture sampling generation from TGSI translation.
2009-09-07 15:02:06 +01:00
Michal Krol
8bed21ecf9
grammar: Remove grammar_check().
2009-09-07 10:55:45 +02:00
Michal Krol
5ad8937752
glsl: Add error messages for version parser.
2009-09-07 10:12:12 +02:00
Michal Krol
b7960b3d3a
glsl: Handle file tokens in apps/process.
2009-09-07 10:12:11 +02:00
Michal Krol
a64ba93aab
glsl: Handle file numbering.
2009-09-07 10:12:10 +02:00
Michal Krol
2d2d638444
glsl: Actually respect the hash-line directive.
2009-09-07 10:12:09 +02:00
Michal Krol
b6df77fb9a
glsl: Handle line tokens in apps/process.
2009-09-07 10:12:08 +02:00
Michal Krol
4aa3222df3
glsl: Correctly handle line numbering.
2009-09-07 10:12:07 +02:00
Michal Krol
0d9c5eafeb
glsl: Preserve newline inside comment blocks.
2009-09-07 10:12:06 +02:00
Michal Krol
e8afc65589
glsl: Implement predefinded macros.
...
The values are hardcoded: __LINE__ = 1, __FILE__ = 0 and __VERSION__ = 110.
2009-09-07 10:12:05 +02:00
Michal Krol
bb8f38ea6f
glsl: Implement `line' preprocessor directive.
2009-09-07 10:12:03 +02:00
Michal Krol
ddd8ae7fbc
glsl: Output endof token after processing a directive.
...
Some directives may output tokens as a result of their operation.
2009-09-07 10:12:03 +02:00
Michal Krol
7f187583c1
glsl: Handle extension tokens in apps/proces.
2009-09-07 10:12:02 +02:00
Michal Krol
87d2de04fb
glsl: Implement `extension' preprocessor directive.
...
No extensions supported.
2009-09-07 10:12:00 +02:00
Michal Krol
94321b4441
glsl: Handle pragma tokens in apps/process.
2009-09-07 10:11:59 +02:00
Michal Krol
0e046420e4
glsl: Implement `pragma' preprocessor directive.
...
Handle `optimize(on|off)' and `debug(on|off)' pragmas.
2009-09-07 10:11:58 +02:00
Michal Krol
c42428c787
glsl: Print out error message in apps/process.
2009-09-07 10:11:56 +02:00
Michal Krol
f9bd6f7152
glsl: Implement `error' preprocessor directive.
2009-09-07 10:11:55 +02:00
Michal Krol
3dc2b5f71c
glsl: Implement `undef' preprocessor directive.
2009-09-07 10:11:54 +02:00
Michal Krol
a294715612
glsl: Allow for preprocessor macro redefinition.
2009-09-07 10:11:52 +02:00
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