Commit Graph

31916 Commits

Author SHA1 Message Date
Marek Olšák 6dfcff6b05 r300g: mark HiZ/ZMask_clear atoms as non-dirty after emission in clear 2010-08-15 09:20:30 +02:00
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
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
Brian Paul e8000ffeaf mesa: assorted clean-ups, var type changes, assertions in prog_optimize.c 2010-08-13 15:59:25 -06:00
Benjamin Segovia 9021c56a57 mesa: more/better program optimizations
This is the patch from Benjamin's Aug 11, 2010 email with minor fixes
(such as moving declarations before code)

Signed-off-by: Brian Paul <brianp@vmware.com>
2010-08-13 15:59:25 -06:00
George Sapountzis 5c0a0f2198 st/dri: make dri_drawable_validate_att static 2010-08-13 23:08:02 +03:00
George Sapountzis c14b4371ed st/dri: move TFP code to dri_drawable.c
This is based on a patch by nobled <nobled@dreamwidth.org> and allows the TFP
extension to be enabled for DRISW also. This patch does not enable TFP for DRISW
though, because testing on xephyr segfaults here (for both classic and gallium):

Program received signal SIGSEGV, Segmentation fault.
0x00786a4a in _mesa_GenTextures (n=1, textures=0xbfffee4c) at main/texobj.c:788
788	   ASSERT_OUTSIDE_BEGIN_END(ctx);
(gdb)
(gdb) where
\#0  0x00786a4a in _mesa_GenTextures (n=1, textures=0xbfffee4c) at main/texobj.c:788
\#1  0x0817a004 in __glXDisp_GenTextures ()
\#2  0x08168498 in __glXDispatch ()
\#3  0x0808b6ce in Dispatch ()
\#4  0x08084435 in main ()

The TFP code is generic except for the teximage call. We need to verify that
DRISW correclty implements whatever hook teximage finally calls.
2010-08-13 22:58:11 +03:00
nobled 5270deaab6 st/dri: Fix segmentation fault in sw drivers 2010-08-13 22:57:26 +03:00
George Sapountzis d3758feb6b st/dri: dri_drawable_get_format is shared between DRI2 and DRISW 2010-08-13 22:20:19 +03:00
Vinson Lee 48def868d9 mesa: Clean up header file inclusion in vf.h.
Remove mtypes.h.
Include glheader.h for GL symbols.
2010-08-13 01:23:39 -07:00
Vinson Lee 5dbd3fe3d4 swrast: Clean up header file inclusion in ss_vb.h.
Remove unnecessary header swrast_setup.h.
2010-08-13 00:48:34 -07:00
Vinson Lee c7f24afcaf swrast: Clean up header file inclusion in ss_triangle.h.
Remove ss_context.h.
Include mtypes.h for GLcontext symbol.
2010-08-12 23:56:52 -07:00
Vinson Lee 8829e0c3f3 swrast: Clean up header file inclusion in ss_context.h.
Remove mtypes.h and swrast_setup.h.
Include glheader.h for GL symbols.
2010-08-12 23:51:16 -07:00
Vinson Lee db0c6810f9 mesa: Include missing header in programopt.h.
Include mtypes.h for GLcontext and gl_register_file symbols.
2010-08-12 23:28:25 -07:00
Marek Olšák bac59b336b r300g: do not support separate depth/stencil clear in the driver
It doesn't work well with Hyper-Z, so put the burden on the state tracker.
2010-08-13 08:23:06 +02:00
Marek Olšák aa6bdd38af r300g: fix fastfill when color and Z clear are invoked separately
This always restores the previous depth clear value after CBZB clear.
2010-08-13 04:41:38 +02:00
Marek Olšák 4985ce1755 r600g: update shader caps
Sent on ML by Владимир.

These values are what fglrx returns.
2010-08-13 03:28:35 +02:00
Marek Olšák 16e782b83f r300g: disable depth clamp for now
It breaks Regnum Online in that it renders random triangles
all over the screen.

https://bugs.freedesktop.org/show_bug.cgi?id=29518
2010-08-13 02:59:01 +02:00
Vinson Lee 06928ba3c3 mesa: fpclassify is available with MinGW.
This patch fixes the MinGW build.
2010-08-12 17:37:00 -07:00
Dave Airlie 527ac905f6 r600g: fix warning in the winsys 2010-08-13 10:22:46 +10:00
Dave Airlie f2804e7062 r600g: fix memory leaks running gears.
I noticed gears memory usage was heading skywards, some r600 "states"
aren't properly refcounted, and the ctx->state is never freed.
2010-08-13 10:22:46 +10:00
Vinson Lee 26c042c30a translate_test: Fix compilation with MSVC. 2010-08-12 17:12:56 -07:00