Commit graph

40538 commits

Author SHA1 Message Date
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
Vinson Lee
908272b183 mesa: Clean up header file inclusion in atifragshader.h. 2010-11-07 19:41:42 -08:00
Brian Paul
11dd228415 mesa: make fixed-pt and byte-valued arrays a runtime feature
These ES1 features were only tested for in the vertex array code.
Checking the ctx->API field at runtime is cleaner than the #ifdef
stuff and supports choosing the API at runtime.
2010-11-07 18:35:35 -07:00
Brian Paul
802bd6b705 mesa: remove stray GL_FLOAT case in _mesa_is_legal_format_and_type() 2010-11-07 18:33:53 -07:00
Brian Paul
dd28b4c1fc mesa: implement uint texstore code
We used float temporary images before which could lose precision for
uint-valued texture images.
2010-11-07 18:33:42 -07:00
Brian Paul
90c52c26d8 mesa: rename vars in pixel pack/unpack code 2010-11-07 18:33:20 -07:00
Brian Paul
e54d5a9d68 mesa: consolidate pixel packing/unpacking code 2010-11-07 18:33:07 -07:00
Vinson Lee
3a223c3098 mesa: Clean up header file inclusion in arrayobj.h. 2010-11-07 14:29:21 -08:00
Henri Verbeet
9f06411645 r600g: Mention AMD in the renderer string. 2010-11-07 18:40:12 +01:00
Vinson Lee
6bf0ac0916 mesa: Include mfeatures.h in api_validate.c for FEATURE_* symbols. 2010-11-06 21:13:40 -07:00
Vinson Lee
d421149cc8 mesa: Include mfeatures.h in api_loopback for FEATURE_beginend. 2010-11-06 21:05:16 -07:00
Vinson Lee
fb83400f6b mesa: Clean up header file inclusion in api_validate.h. 2010-11-06 20:56:15 -07:00
Vinson Lee
af12de279e mesa: Clean up header file inclusion in api_loopback.h. 2010-11-06 20:50:13 -07:00
Vinson Lee
31bdc53057 mesa: Clean up header file inclusion in version.h. 2010-11-06 20:40:13 -07:00
Vinson Lee
7a33b1c0a9 mesa: Clean up header file inclusion in accum.h. 2010-11-06 20:27:45 -07:00
Eric Anholt
d348b0c72d mesa: Fix delayed state flagging for EXT_sso-related program changes.
Flushing the vertices after having already updated the state doesn't
do any good.  Fixes useshaderprogram-flushverts-1.  As a side effect,
by moving it to the right place we end up skipping no-op state changes
for traditional glUseProgram.
2010-11-06 11:44:32 -07:00
Francisco Jerez
8eaa97592a meta: Don't try to disable cube maps if the driver doesn't expose the extension.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-11-06 02:40:21 +01:00
Francisco Jerez
2e64c2209e vbo: Avoid unnecessary copy to/from current in vertex format upgrade.
Rebuilding the vertex format from scratch every time we see a new
vertex attribute is rather costly, new attributes can be appended at
the end avoiding a copy to current and then back again, and the full
attr pointer recalculation.

In the not so likely case of an already existing attribute having its
size increased the old behavior is preserved, this could be optimized
more, not sure if it's worth it.

It's a modest improvement in FlightGear (that game punishes the VBO
module pretty hard in general, framerate goes from some 46 FPS to 50
FPS with the nouveau classic driver).

Signed-off-by: Brian Paul <brianp@vmware.com>
2010-11-06 01:59:59 +01:00
Jakob Bornecrantz
f1600d3a97 scons: Unify state tracker SConscripts 2010-11-05 20:58:49 +00:00
Jakob Bornecrantz
7e9f5eab4e scons: Move dependancy checks to the main gallium scons file 2010-11-05 20:58:49 +00:00
Jakob Bornecrantz
c0db7854d5 scons: Check for libdrm_[intel|radeon] as well
And run SConscripts if they are present.
Also make dri depend on both drm and x11.
2010-11-05 20:58:49 +00:00
Jakob Bornecrantz
98d6ed8742 scons: Check for pkg-config before trying to use it
Silences warning about missing packages
2010-11-05 20:58:49 +00:00
Jakob Bornecrantz
b4ac0adb75 scons: Detabify
Drivers scons files for a later time
2010-11-05 20:58:49 +00:00
Jakob Bornecrantz
834cde5844 scons: Remove old pipebuffer SConscript 2010-11-05 20:58:49 +00:00
Brian Paul
e82fddfcd3 softpipe: disable vertex texturing with draw/llvm
This is a temporary work around to prevent crashes with glean/glsl1
(for example) which try to do vertex shader texturing.
2010-11-05 14:41:40 -06:00
Brian Paul
55c5408ad0 gallivm: add const qualifiers, fix comment string 2010-11-05 08:51:53 -06:00
Brian Paul
e8d6b2793f gallivm: alloca() was called too often for temporary arrays
Need to increment the array index to point to the last value.
Before, we were calling lp_build_array_alloca() over and over for
no reason.
2010-11-05 08:49:57 -06:00