Commit Graph

32057 Commits

Author SHA1 Message Date
Chia-I Wu 9373447a61 st/egl: Add support for EGL_KHR_image_base and EGL_KHR_image_pixmap.
These extensions are not quite useful until the client APIs gain support
for the respective EGLImage extensions.
2010-03-05 11:33:10 +08:00
Chia-I Wu fade8a6eb6 st/egl: Add get_param to native display interface.
get_param can be used to query the parameters of a native display.
There is only NATIVE_PARAM_USE_NATIVE_BUFFER right now.  It queries
whether the window/pixmap surfaces use the native buffers instead of
private buffers.
2010-03-05 11:32:29 +08:00
Chia-I Wu 89a75b7634 st/egl: Move modeset interface to native_modeset.h.
native.h is getting more and more complex.  Move the independent modeset
interface to native_modeset.h to simplify native.h a little.
2010-03-05 11:32:11 +08:00
Chia-I Wu e38f28dded st/egl: Add event support to the native display interface.
There is only invalid_surface event right now.  When EGL receives the
event, it sets the force_validate flag of the context binding to the
surface.  This helps skip an unnecessary check.
2010-03-05 10:19:05 +08:00
Vinson Lee 45df4bad9f Revert "mesa: Remove pointless comparison of unsigned integer with a negative constant."
This reverts commit a05fdbcb71.

Removing the comparison is wrong. The comparison with -1 should be changed
to another value (probably PROGRAM_UNDEFINED) along with another
change in the shader assembler.

Conflicts:

	src/mesa/shader/prog_execute.c
2010-03-04 17:41:20 -08:00
Eric Anholt bb35000b4b intel: Remove non-kernel-exec-fencing support.
Shaves 60k off the driver from removing the broken spans code.  This
means we now require 2.6.29, which seems fair given that it's a year
old and we've removed support for non-KMS already in the last release
of 2D.
2010-03-04 16:56:32 -08:00
Eric Anholt 7cbc4c07ee intel: Remove the unused s8 spans code. Not hit during no_rast piglit.
Shaves 5.5k off of the driver.
2010-03-04 16:50:51 -08:00
Michel Dänzer 391b396f3f Fix comparison of unsigned value against < 0. 2010-03-05 00:15:40 +01:00
Brian Paul b37c541500 softpipe: minor tweaks to texture filtering code 2010-03-04 15:58:01 -07:00
Brian Paul 2b5c5c0dcf gallivm: implement texture border color, plus tweaks to some wrap modes
The progs/test/texwrap demo looks pretty good, but there are still some
tiny differences from softpipe.  There may be a sub-pixel texcoord
interpolation error somewhere.

There's some room for optimization.  Many of the wrap modes compute
intermediate values that are constant for the texture size (see the
min/max values).  These could be computed earlier and stored somewhere
for later use.
2010-03-04 15:56:55 -07:00
Brian Paul 946edea794 gallivm: added texture border_color field 2010-03-04 15:56:55 -07:00
Brian Paul 71c0568952 gallivm: added question/comment 2010-03-04 15:56:55 -07:00
Brian Paul ad1456a444 llvmpipe: new comment 2010-03-04 15:56:55 -07:00
Brian Paul 877f2356b2 gallivm: comments 2010-03-04 15:56:55 -07:00
Francisco Jerez a42fd95f43 dri/nouveau: Remove some CI remnants. 2010-03-04 23:43:02 +01:00
Andrew Randrianasulu 9c4937524e dri/nouveau: Trivially add GL_ARB_texture_mirrored_repeat.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-04 23:42:53 +01:00
Andrew Randrianasulu 44df3577a7 dri/nouveau: Enable GL_EXT_stencil_wrap.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-04 23:14:24 +01:00
Andrew Randrianasulu 210bcf6d15 dri/nouveau: Add GL_EXT_stencil_wrap for nv04.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-04 23:07:11 +01:00
Francisco Jerez 9c21c1e865 dri/nouveau: Fix rb->DataType for z24s8 renderbuffers. 2010-03-04 23:07:11 +01:00
Francisco Jerez 80316cbefa dri/nouveau: Try to keep client buffers smaller than the scratch VBO length. 2010-03-04 23:07:11 +01:00
Francisco Jerez 43c347c63e dri/nouveau: Pack client arrays as they're copied to the real BO. 2010-03-04 23:07:10 +01:00
Jesse Barnes b6456dc234 xdemos: add OML sync test
Add program to test glXSwapBuffersMscOML behavior.  Based on glsync.c.
2010-03-04 13:14:59 -08:00
Corbin Simpson 566390bedf r300g: Fix indexbuf upper limits.
Wine tends to pessimistically use ~0 for its max index, but r300s
only can go up to 2^24-1, causing the kernel checker to freak out.

Civ4 is marginally improved now. Still crashes, but not as bad.
2010-03-04 12:49:44 -08:00
Chris Wilson 894d0ab938 APPLE_object_purgeable: autogenerated files 2010-03-04 19:43:19 +00:00
Chris Wilson e5c49e49cc APPLE_object_purgeable: xml
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-03-04 19:26:54 +00:00
Brian Paul 4c0c728b2a gallivm: rework and implement more texture wrap modes
All the texture wrap modes are now implemented for linear and nearest
sampling.

However, texture border color is not yet supported so some wrap modes
will produce int coords outside the texture bounds.  We'll get garbage
values insted of the texture border color for now.
2010-03-04 10:53:27 -07:00
Brian Paul 516bad2272 gallivm: added lp_build_fract() 2010-03-04 10:53:27 -07:00
Brian Paul 6464d81e77 gallivm: added lp_build_set_sign() 2010-03-04 10:53:26 -07:00
Brian Paul 7d230dae70 gallivm: added lp_build_negate() 2010-03-04 10:53:26 -07:00
Brian Paul 38110fd1c3 gallivm: clarify unsigned vs. signed integer type construction
The lp_int_type() function was creating an unsigned type.  So rename
that function to lp_uint_type() and create new lp_int_type() that
creates a signed type.
2010-03-04 10:53:26 -07:00
Eric Anholt 8e7a8d6593 i915: Enable texture tiling by default.
This now passes piglit testcases, and shows performance improvements
on openarena.  Blit-heavy apps may see degradation, but the
expectation is that the common case of 3D rendering will see
significant wins.

This regresses gen-teximage on my 855, and no piglit tests on my 945.
2010-03-04 08:18:53 -08:00
Eric Anholt 41d3fdc380 i915: Fix up i830 for tiled drawing offsets.
Corresponds to b87406e55f.
2010-03-04 08:18:50 -08:00
George Sapountzis aae81a7681 fix getprocaddress test 2010-03-04 16:34:01 +02:00
Ian Romanick c7f7a309af DRI: Put back missing break-statement
The break in the __DRI_ATTRIB_RENDER_TYPE case was accidentally
removed in commit 5cf2c5851b.  This puts
it back.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-04 01:58:28 -08:00
Vinson Lee 34b2cec95c Revert "mesa: Fix unsigned comparison."
This reverts commit f9504e75f0.

This patch is incorrect.
2010-03-04 01:53:14 -08:00
Vinson Lee ac610ab830 glsl: Remove unsigned greater than or equal zero comparison. 2010-03-04 01:35:28 -08:00
Vinson Lee f9504e75f0 mesa: Fix unsigned comparison. 2010-03-04 01:24:44 -08:00
Vinson Lee 0dd40cc20a glsl: Remove unsigned greater than or equal zero comparison. 2010-03-04 01:10:44 -08:00
Vinson Lee 3c90777fd7 glsl: Return NULL on _slan_gen_asm error path on non-debug builds.
Exit the function early on the error path, instead of continuing, to
prevent a null pointer dereference later on.
2010-03-04 00:58:36 -08:00
Vinson Lee df20c3943a glsl: Add assert to check input to strcmp. 2010-03-04 00:53:52 -08:00
Vinson Lee df62b0da92 mesa: Add asserts to check inputs to memcpy. 2010-03-04 00:41:21 -08:00
Dave Airlie 25e439e69f r300: make blit code work on swtcl machines.
Only tested this on my rv530 with R300_NO_TCL=1, but it works there
at least. It would be nice to fix the tex_offset by chaning the vertex
program on tcl to read from offset 6 but this isn't really necessary.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-04 15:49:57 +10:00
Dave Airlie c27fed58e4 r300_blit: initialise whole fp structure to 0
at least on the r500 we get a lockup unless I do this, the compiler
seems to fail to compile and we just get a null fp.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-04 15:11:42 +10:00
Vinson Lee e5d0956ca4 Remove ffb and gamma from configs. 2010-03-03 19:03:45 -08:00
Vinson Lee f4113012e0 wgl: Fix mingw32 build.
This was missed in commit fcf438e9e0.
2010-03-03 18:20:01 -08:00
Ian Romanick 6d9a9e57dc Fix unmatched parenthesis introduce by previous commits
I wasn't careful enough when removing support for GCC versions earlier
than 3.3.0.  I could have sworn that I compile tested before pushing,
but apparently not.  FAIL.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 17:50:11 -08:00
Ian Romanick 7d7e2198dd Note removal of pre-GCC 3.3.0 support in release notes. 2010-03-03 16:43:13 -08:00
Ian Romanick f7dde2c131 Remove support for GCC older than 3.3.0 from generated sources
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00
Ian Romanick 6e8e4b918d Remove support for GCC older than 3.3.0 from generator scripts
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00
Ian Romanick 016fc30839 Remove support for GCC older than 3.3.0
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00