Commit graph

37959 commits

Author SHA1 Message Date
Vinson Lee
ff27c68ca2 glsl: Clean up header file inclusion in slang_emit.h.
Remove imports.h.
Remove mtypes.h.
Remove slang_compile.h.
Include glheader.h for GL symbols.
Include slang_vartable.h for slang_var_table symbol.
2010-08-14 23:40:42 -07:00
Vinson Lee
0ef5449832 glsl: Clean up header file inclusion in slang_compile.h.
Remove imports.h.
Remove slang_typeinfo.h.
Remove slang_compile_operation.h.
Include glheader.h for GL symbols.
Include slang_utility.h for slang_atom_pool symbol.
2010-08-14 23:32:08 -07:00
Vinson Lee
8981fae4c3 glsl: Include missing headers in slang_compile_struct.h.
Include glheader.h for GL symbols.
Include slang_utility.h for slang_atom symbol.
2010-08-14 23:19:28 -07:00
Marek Olšák
d5a86f9fc9 r300g: do not use HiZ if HiZ RAM is not properly initialized 2010-08-15 08:07:11 +02:00
Marek Olšák
59c2230879 r300g: rename dirty_zmask -> zmask_in_use 2010-08-15 08:07:11 +02:00
Marek Olšák
516152112e r300g: do not clear with blitter if we clear just the ZMask RAM
This skips the blitter clear path entirely if the color is not cleared and
the depth+stencil is cleared with the ZMask.
2010-08-15 08:07:11 +02:00
Marek Olšák
5f8ccf1e27 r300g: do not use fastfill if ZMask RAM is not properly initialized
z_fastfill -> dirty_zmask[level].
2010-08-15 08:07:11 +02:00
Marek Olšák
0d699e8ee9 r300g: separate num_cs_end_dwords out from prepare_for_rendering 2010-08-15 08:07:11 +02:00
Vinson Lee
f1702b1808 glsl: Include missing headers in slang_print.h.
Include glheader.h for GL symbols.
Include slang_compile_function.h for slang_function symbol.
Include slang_compile_operation.h for slang_operation symbol.
Include slang_compile_variable.h for slang_variable and slang_variable_scope symbols.
Include slang_typeinfo.h for slang_type_qualifer and slang_fully_specified_type symbols.
2010-08-14 23:14:42 -07:00
Vinson Lee
4fef77c7c5 glsl: Include missing headers in slang_compile_function.h
Include glheader.h for GL symbols.
Include slang_compile_function.h for slang_function symbol.
Include slang_compile_operation.h for slang_operation symbol.
Include slang_compile_variable.h for slang_variable and
slang_variable_scope symbols.
Include slang_log.h for slang_info_log symbols.
Include slang_utility.h for slang_atom and slang_atom_pool symbols.
2010-08-14 22:57:47 -07:00
Vinson Lee
9bfbfd55af glsl: Include missing headers in slang_compiler_operation.h.
Include glheader.h for GL symbols.
Include slang_compile_variable.h for slang_variable_scope symbol.
Include slang_utility.h for slang_atom symbol.
2010-08-14 22:43:26 -07:00
Vinson Lee
1918820d2e glsl: Include missing headers in slang_simplify.h.
Include glheader.h for GL symbols.
Include slang_compile.h for slang_name_space symbol.
Include slang_compile_function.h for slang_function symbol.
Include slang_compile_operation.h for slang_operation symbol.
Include slang_log.h for slang_info_log symbol.
Include slang_utility.h for slang_atom_pool symbol.
2010-08-14 21:21:10 -07:00
Vinson Lee
99003560ca glsl: Include missing header in slang_utility.h.
Include glheader.h for GL symbols.
2010-08-14 18:56:17 -07:00
Vinson Lee
845554eb3b glsl: Include missing headers in slang_vartable.h.
Include glheader.h for GL symbols.
Include slang_utility.h for slang_atom symbol.
2010-08-14 18:53:22 -07:00
Jakob Bornecrantz
fe19935a12 gallium/docs: Add rbug to distribution 2010-08-15 01:06:57 +01:00
Jakob Bornecrantz
d62b29f567 gallium/docs: Add a debugging section 2010-08-15 01:06:53 +01:00
Jakob Bornecrantz
7f5202be63 gallium: Make printing info on debug builds default off
This commit silences the printing off most of the debug information
when running debug builds. The big culprits are: the tgsi sanity checker
that gets run on all shaders on debug; all the options; and
finaly the cpu caps printer.
2010-08-15 01:03:23 +01:00
Vinson Lee
84ec422232 glsl: Include missing header in slang_log.h.
Include glheader.h for GLboolean symbol.
2010-08-14 16:27:42 -07:00
Vinson Lee
fcd2da4e7a glsl: Include missing headers in slang_compile_variable.h.
Include glheader.h for GL symbols.
Include slang_typeinfo.h for slang_fully_specified_type symbol.
Include slang_utility.h for slang_atom symbol.
2010-08-14 15:16:14 -07:00
Vinson Lee
586fbc7286 glsl: Clean up header file inclusion in slang_codegen.h.
Remove mtypes.h.
Include glheader.h for GL symbols.
Include slang_compile_variable.h for slang_variable symbol.
Include slang_typeinfo.h for slang_type_specifier symbol.
Include slang_utility.h for slang_atom_pool symbol.
2010-08-14 14:58:09 -07:00
Vinson Lee
10d77f3f6b gallivm: Remove unnecessary header. 2010-08-14 12:54:21 -07:00
Vinson Lee
db0e24e34a scons: Fix r600g build. 2010-08-14 12:18:51 -07:00
Vinson Lee
77458b565a r600g: Remove unnecessary headers. 2010-08-14 11:56:26 -07:00
Vinson Lee
e01a49af61 r300g: Remove unnecessary header. 2010-08-14 11:44:01 -07:00
Luca Barbieri
9232566269 u_cpu_detect: remove arch and little_endian
This logic duplicates the one in p_config.h, so remove it and adjust
the only two places that were using it.
2010-08-14 19:23:52 +02:00
José Fonseca
eacb624a4a gallivm: Refactor the Newton-Rapshon steps, and disable once again.
It causes a very ugly corruption on the Earth's halo on Google Earth.
2010-08-14 18:03:13 +01:00
José Fonseca
9349379d1a Revert "glsl2: Use stdint.h instead of inttypes.h"
This reverts commit a77a6bc008.
2010-08-14 16:01:24 +01:00
José Fonseca
8df0bea9c5 Replace our custom C99 headers with http://code.google.com/p/msinttypes/
Perhaps http://www.azillionmonkeys.com/qed/pstdint.h would be a better
(more portable) choice, but only MSVC uses this anyway, and we can always
change later.
2010-08-14 16:00:52 +01:00
José Fonseca
1cbcf6693a glsl: Standardize a few more uses of struct vs class keyword. 2010-08-14 15:35:57 +01:00
José Fonseca
1d22923fae scons: Link talloc. 2010-08-14 15:29:15 +01:00
José Fonseca
4b1721eaf3 glsl: Silence gcc warning "control reaches end of non-void function". 2010-08-14 14:40:39 +01:00
José Fonseca
19acfa42ed mesa: Silence gcc warning "control reaches end of non-void function". 2010-08-14 14:40:06 +01:00
José Fonseca
325aa1b3cd mesa: Silence gcc warning "missing initializer for member". 2010-08-14 14:38:09 +01:00
José Fonseca
8881b0fe43 mesa: Recent versions of MSVC define the single precision functions already. 2010-08-14 13:10:24 +01:00
José Fonseca
2322404b55 scons: Add new source files. 2010-08-14 12:45:14 +01:00
José Fonseca
68f602afb1 mesa: atan2f and powf need two args. 2010-08-14 12:44:41 +01:00
Vinson Lee
3c9b00e6e8 glsl: Clean up header file inclusion in slang_builtin.h.
Remove prog_parameter.h and slang_utility.h.
Include glheader.h for GL symbols.
Include mtypes.h for gl_*_result symbols.
2010-08-14 01:59:54 -07:00
Vinson Lee
71a6dea0f5 glsl: Clean up header file inclusion. 2010-08-14 01:46:21 -07:00
Vinson Lee
d75eac5db1 glsl: Include missing header in slang_compile.c.
Include sl_pp_purify.h for sl_pp_purify_options symbol.
2010-08-14 01:38:04 -07:00
Vinson Lee
de33671a4f glsl/cl: Add forward declaration. 2010-08-14 00:53:28 -07:00
Ian Romanick
443a7e4e9a Merge branch 'master' into glsl2 2010-08-13 20:22:46 -07:00
Ian Romanick
2f8ee757ab mesa: Work-arounds for platforms that lack C99 math functions 2010-08-13 20:18:08 -07:00
Kenneth Graunke
9364ad8528 glsl2/Makefile: Add a 'make builtins' target.
This copies over a dummy builtin_functions.cpp and rebuilds a
bootstrapped version of the compiler, then uses that to generate the
proper list of builtins.  Finally, it rebuilds the compiler with the new
list.

Unfortunately, it's no longer automatic, but at least it works.
2010-08-13 19:09:36 -07:00
Kenneth Graunke
43ff8f1a4b glsl2: Rework builtin function generation.
Each language version/extension and target now has a "profile" containing
all of the available builtin function prototypes.  These are written in
GLSL, and come directly out of the GLSL spec (except for expanding genType).

A new builtins/ir/ folder contains the hand-written IR for each builtin,
regardless of what version includes it.  Only those definitions that have
prototypes in the profile will be included.

The autogenerated IR for texture builtins is no longer written to disk,
so there's no longer any confusion as to what's hand-written or
generated.

All scripts are now in python instead of perl.
2010-08-13 19:09:36 -07:00
Kenneth Graunke
d802ba110f ir_reader: Don't mark functions as defined if their body is empty. 2010-08-13 19:09:35 -07:00
Ian Romanick
d01bf822dd glsl2: Commit generated file change by commit ab18be74
This would have been included in commit 23f6017d, but make wisely did
not regenerate the file when the .lpp file did not change.
2010-08-13 19:05:54 -07:00
Eric Anholt
8f8cdbfba4 glsl2: Add a pass to strip out noop swizzles.
With the glsl2-965 branch, the optimization of glsl-algebraic-rcp-rcp
regressed due to noop swizzles hiding information from ir_algebraic.
This cleans up those noop swizzles for us.
2010-08-13 17:54:47 -07:00
Eric Anholt
42cab131da glsl2: Convert ir_constant_propagation to ir_rvalue_visitor.
This one is a little tricky because of the LHS handling.
2010-08-13 17:54:47 -07:00
Eric Anholt
b3b0cf6a4c glsl2: Add a generic visitor class to call back with pointers to each rvalue.
I keep copy and pasting this code all over, so consolidate it in one
place.
2010-08-13 17:54:46 -07:00
Eric Anholt
9c3acce680 mesa: Avoid using c++ keyword in dri_util.h when compiled with c++. 2010-08-13 17:54:46 -07:00