Commit graph

40564 commits

Author SHA1 Message Date
Keith Whitwell
e3ea4aec03 r600g: avoid recursion with staged uploads
Don't use an intermediate for formats which don't support hardware
blits under u_blitter.c, as these will recursively attempt to create a
transfer.
2010-11-09 20:12:46 +00:00
Brian Paul
6e2e136428 mesa: no-op glBufferSubData() on size==0
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31439

NOTE: this is a candidate for the 7.9 branch
2010-11-09 12:24:51 -07:00
Brian Paul
61ea76c8da softpipe: can't no-op depth test stage when occlusion query is enabled
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31479
2010-11-09 11:44:34 -07:00
Chia-I Wu
5b6ec5a553 st/dri: Add support for surfaceless current contexts.
Tested with Wayland.
2010-11-10 02:01:04 +08:00
Chia-I Wu
3418f74a94 docs: Update egl docs. 2010-11-10 01:31:38 +08:00
Chia-I Wu
dbacbb8219 autoconf: Add --enable-gallium-egl.
This option comes handy when we want to build gallium DRI drivers but
not st/egl.
2010-11-10 00:57:49 +08:00
Vinson Lee
3e6a05b1aa mesa: Clean up header file inclusion in nvprogram.h. 2010-11-09 06:22:25 -08:00
Vinson Lee
0c123679fc mesa: Clean up header file inclusion in multisample.h. 2010-11-09 06:08:29 -08:00
Vinson Lee
c509bf91ec mesa: Clean up header file inclusion in matrix.h. 2010-11-09 06:00:01 -08:00
Vinson Lee
e09800432b mesa: Clean up header file inclusion in lines.h. 2010-11-09 05:47:17 -08:00
Vinson Lee
a20e440c65 mesa: Clean up header file inclusion in light.h. 2010-11-09 05:35:24 -08:00
Vinson Lee
934fc80b06 mesa: Add missing header and forward declarations in dd.h. 2010-11-09 05:13:48 -08:00
Vinson Lee
90394b2d96 mesa: Clean up header file inclusion in image.h. 2010-11-09 05:00:44 -08:00
Thomas Hellstrom
24c6c41bd0 gallium/targets: Trivial crosscompiling fix
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-09 12:50:12 +01:00
Thomas Hellstrom
0d5b4b320c svga/drm: Optionally resolve calls to powf during link-time
When linked with certain builds of libstdc++, it appears like powf is resolved
by a symbol in that library. Other builds of libstdc++ doesn't contain that
symbol resulting in a linker / loader error. Optionally
resolve that symbol and replace it with calls to logf and expf.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-09 12:31:25 +01:00
Thomas Hellstrom
8e630fad72 st/egl: Fix build for include files in nonstandard places
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-09 12:31:24 +01:00
Thomas Hellstrom
6af2a7fe2c mesa: Add talloc includes for gles
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-09 12:31:24 +01:00
Thomas Hellstrom
675aec8178 egl: Add an include for size_t
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-09 12:31:24 +01:00
Zack Rusin
9d9df964c4 scons: build the xorg state trackers only when env includes drm 2010-11-09 10:41:59 +00:00
Vinson Lee
d79d942b2e mesa: Clean up header file inclusion in histogram.h. 2010-11-09 01:14:55 -08:00
Vinson Lee
5b3d6bd39e mesa: Clean up header file inclusion in hint.h. 2010-11-09 01:12:34 -08:00
Vinson Lee
63f1740a5d mesa: Clean up header file inclusion in framebuffer.h. 2010-11-09 01:04:22 -08:00
Vinson Lee
b35d3b33e7 mesa: Clean up header file inclusion in fog.h. 2010-11-09 00:58:46 -08:00
Vinson Lee
08354667a3 mesa: Clean up header file inclusion in ffvertex_prog.h. 2010-11-09 00:56:02 -08:00
Vinson Lee
6121730e74 mesa: Clean up header file inclusion in fbobject.h. 2010-11-09 00:52:49 -08:00
Chad Versace
b62c1c4595 glsl: Fix ir_expression::constant_expression_value()
When the type of the ir_expression is error_type, return NULL.
This fixes bug 31371.
2010-11-09 00:50:54 -08:00
Johann Rudloff
d7855ee332 radeon: Implement GL_OES_EGL_image
agd5f: add support to radeon/r200/r300 as well
2010-11-08 19:59:53 -05:00
Johann Rudloff
b42e562a11 radeon: Implement __DRI_IMAGE and EGL_MESA_image_drm 2010-11-08 19:59:53 -05:00
Alex Deucher
4990b771de egl_dri2: Add radeon chip ids 2010-11-08 19:59:53 -05:00
Johann Rudloff
f9b5201dbd radeon: Implement EGL_MESA_no_surface_extension 2010-11-08 19:59:53 -05:00
Kenneth Graunke
a457ca7844 ir_dead_functions: Actually free dead functions and signatures.
This makes linked shaders use around 36k less memory since the
built-in prototypes are now freed.
2010-11-08 16:22:15 -08:00
Vinson Lee
ef6967ddc2 graw: Add struct pipe_surface forward declaration.
Fixes this GCC warning.
graw.h:93: warning: 'struct pipe_surface' declared inside parameter list
graw.h:93: warning: its scope is only this definition or declaration,
which is probably not what you want
2010-11-08 11:55:30 -08:00
Mario Kleiner
d8eef5196f mesa/r300classic: Fix dri2Invalidate/radeon_prepare_render for page flipping.
A call to radeon_prepare_render() at the beginning of draw
operations was placed too deep in the call chain,
inside r300RunRenderPrimitive(), instead of
r300DrawPrims() where it belongs. This leads to
emission of stale target color renderbuffer into the cs if
bufferswaps via page-flipping are used, and thereby causes
massive rendering corruption due to unsynchronized
rendering into the active frontbuffer.

This patch fixes such problems for use with the
upcoming radeon page-flipping patches.

Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
2010-11-08 13:53:23 -05:00
Benjamin Franzke
46c1970067 r600g: implement texture_get_handle (needed for eglExportDRMImageMESA) 2010-11-08 13:44:54 -05:00
Peter Clifton
10b9e018ca intel: Fix emit_linear_blit to use DWORD aligned width blits
The width of the 2D blits used to copy the data is defined as a 16-bit
signed integer, but the pitch must be DWORD aligned. Limit to an integral
number of DWORDs, (1 << 15 - 4) rather than (1 << 15 -1).

Fixes corruption to data uploaded with glBufferSubData.

Signed-off-by: Peter Clifton <pcjc2@cam.ac.uk>
2010-11-08 10:14:17 -08:00
Alex Deucher
5b15b5f4a8 r600c: properly align mipmaps to group size
fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=31400
2010-11-08 12:06:15 -05:00
Michal Krol
136ff67ce8 graw: Export graw_save_surface_to_file().
Allows applications to dump surfaces to file without
referencing gallium/auxiliary entry points statically.

Existing test apps have been modified such that
they save the contents of the fronbuffer only
when the `-o' option's specified.
2010-11-08 17:24:11 +01:00
Michal Krol
9e7132b52d os: Open file streams in binary mode.
Otherwise we'll get garbled data on Windows.
2010-11-08 17:24:11 +01:00
Vinson Lee
962967d080 mesa: Clean up header file inclusion in extensions.h. 2010-11-07 21:15:45 -08:00
Vinson Lee
0be44c9406 mesa: Clean up header file inclusion in enable.h. 2010-11-07 21:09:32 -08:00
Vinson Lee
82cc8261d3 mesa: Clean up header file inclusion in drawtex.h. 2010-11-07 21:05:01 -08:00
Vinson Lee
5c2558884f mesa: Clean up header file inclusion in drawpix.h. 2010-11-07 21:02:31 -08:00
Vinson Lee
5953eac7ac mesa: Clean up header file inclusion in depthstencil.h. 2010-11-07 20:57:32 -08:00
Vinson Lee
e0bbb8e5a4 mesa: Clean up header file inclusion in depth.h. 2010-11-07 20:54:33 -08:00
Vinson Lee
76a5fed501 mesa: Clean up header file inclusion in debug.h. 2010-11-07 20:47:10 -08:00
Vinson Lee
a408dbeb37 mesa: Clean up header file inclusion in convolve.h. 2010-11-07 20:39:54 -08:00
Vinson Lee
cc0c45e7c5 mesa: Clean up header file inclusion in colortab.h. 2010-11-07 20:23:15 -08:00
Vinson Lee
fdf3174007 mesa: Clean up header file inclusion in buffers.h. 2010-11-07 20:00:32 -08:00
Vinson Lee
f26565f221 mesa: Clean up header file inclusion in blend.h. 2010-11-07 19:54:00 -08:00
Vinson Lee
42a8af9239 mesa: Clean up header file inclusion in attrib.h. 2010-11-07 19:49:12 -08:00