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
Vinson Lee
ca70bf8c9d
scons: Add main/querymatrix.c to SCons build.
...
Commit 87eb667759
added querymatrix.c to
make but not to SCons.
2010-08-12 16:34:22 -07:00
Brian Paul
c59c6c0122
glsl: print to stderr like other program printing code
2010-08-12 16:00:03 -06:00
Vinson Lee
56450d5f11
mesa: Fix FreeBSD build with llvm enabled.
...
On FreeBSD LC_CTYPE_MASK is not available but 'llvm-config --cppflags'
adds the compiler flag -D_GNU_SOURCE to the build.
2010-08-12 14:54:30 -07:00
Luca Barbieri
b9abe7f62c
translate_test: fix compilation on non-POSIX platforms
...
Use a kludgy function based on rand() instead of drand48()
2010-08-12 22:10:09 +02:00
Luca Barbieri
4d946c4e8a
translate_test: improve
...
1. Generate random data specifically for float and doubles, so that
they end up in [0, 1] range
2. Don't test useless conversions like SCALED <-> NORM
3. Poison the buffers before testing
2010-08-12 18:36:21 +02:00
Marek Olšák
f668ea11bd
Revert "u_blitter: unify clear_depth_stencil and flush_depth_stencil"
...
This reverts commit de4784e365
.
2010-08-12 13:35:16 +02:00
Andre Maasikas
e62e5b0922
r600: add support for draw_elements_base_vertex
...
use VTX_BASE_VTX_LOC for offset, last time using INDEX_OFFSET was
probably a wrong register for this
2010-08-12 12:44:10 +03:00
Vinson Lee
17bcfaa475
mesa: Clean up header file inclusion in prog_uniform.h.
...
Remove mtypes.h.
Remove prog_statevars.h.
Include glheader.h for GL symbols.
2010-08-12 00:33:48 -07:00
Vinson Lee
791d7d4bf9
mesa: Include missing headers in prog_print.h.
...
Include stdio.h for FILE symbol.
Include glheader.h for GL symbols.
Include mtypes.h for GLcontext symbol.
Add forward declarations.
2010-08-12 00:27:01 -07:00
Vinson Lee
991a24d033
mesa: Include missing header in prog_optimize.h.
...
Include mtypes.h for GLcontext symbol.
2010-08-12 00:18:33 -07:00
Dave Airlie
582129ced6
r600g: fix typo in stencil translate.
...
fixes piglit stencil-twoside and stencil-wrap
2010-08-12 16:32:19 +10:00
Dave Airlie
13bc2098ca
r600g: fix provoking-vertex piglit test.
2010-08-12 16:29:04 +10:00
Dave Airlie
e2df0a8b23
r600g: improve texture format checker.
...
This takes the r300g texture format checker and fixes it up for r600g,
it passes glean texSwizzle, pixelformats, and texture_srgb tests,
however I think it L8S8_SRGB is broken as is L8_SRGB, need to investigate.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-12 16:20:31 +10:00
Marek Olšák
de4784e365
u_blitter: unify clear_depth_stencil and flush_depth_stencil
...
No need to enable depth test for clear.
2010-08-12 06:21:24 +02:00
Vinson Lee
e1bb9ee7a6
scons: Fix freebsd8 build.
2010-08-11 18:57:27 -07:00
Vinson Lee
4a859cd12f
scons: Add freebsd8 to list of accepted platforms.
2010-08-11 17:58:06 -07:00
Marek Olšák
608f168709
r300/compiler: remove an unused variable
2010-08-12 00:39:04 +02:00
Luca Barbieri
39cd4f7ceb
translate_test: fix segfault on x86-64
2010-08-11 22:32:20 +02:00
Luca Barbieri
41c7ff11e6
u_staging: remove useless inline keyword
2010-08-11 22:11:19 +02:00
Luca Barbieri
99cc6d70a4
translate_test: fix, reindent, and improve
...
1. Fix the segfault due to the reverted commit using the new interface
2. Reindent to Mesa 3 spaces style
3. Improve output and return success/failure with error code
4. Add much better support for testing translate_sse
2010-08-11 21:47:28 +02:00
Luca Barbieri
10adb7840c
translate: allow clients to ask for supported output formats
...
Currently translate asserts on unsupported output formats, making
it impossible to use for some purposes, such as testing whether it
actually works on all formats it supports.
Removing the assert was met with opposition, so this change allows
clients to ask whether an output format is supported, and they are thus
able to avoid attempting to use it.
Since this is just an addition to the API, no adverse effect is
possible, and it makes the testsuite work again.
2010-08-11 21:47:27 +02:00
Vinson Lee
27fe2347bc
auxiliary: Make u_staging.c MSVC compatible.
...
Fixes MSVC build.
2010-08-11 12:45:02 -07:00
Vinson Lee
f7d7b080a1
translate: Add translate_test.c to SCons.
...
This is a follow-up to commit 945e38c73b
,
which added translate_test.c to make.
2010-08-11 12:18:25 -07:00
Vinson Lee
04cfc6234c
auxiliary: Add u_staging.c to SCons build.
...
This is a follow-up to commit b85c71d4e1
which added u_staging.c to make.
2010-08-11 12:04:54 -07:00
Tom Stellard
f78445de5d
r300/compiler: Implement the CONT opcode.
2010-08-11 11:39:57 -07:00
Tom Stellard
953e39c61d
r300/compiler: Handle loops in the register allocator.
2010-08-11 11:39:57 -07:00
Jerome Glisse
481b65abae
r600g: accept empty frag prog shader
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-11 14:26:07 -04:00
Jerome Glisse
1bb0427a85
r600g: add src negation support
...
Should fix few glBitmap cases.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-11 13:50:19 -04:00
José Fonseca
b481a1237e
gallivm: Fix and enable the extra Newton/Raphson step in lp_build_rcp().
...
Thanks to Michal for spotting this.
2010-08-11 18:45:26 +01:00
Jerome Glisse
457378e031
r600g: add point/sprite rendering support
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-11 12:20:28 -04:00