Commit graph

31849 commits

Author SHA1 Message Date
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
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
Ian Romanick
9aa3aa7138 Add version check for GCC
Mesa now requires GCC 3.3.0 or later.  See the following thread from
the mesa3d-dev mailing list for more details:

http://marc.info/?t=126748568900005&r=1&w=2

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00
Alex Deucher
3594bf233d radeon/r200/r300/r600: add check_blit vtbl function
Check if the native blit formats are supported, if not,
attempt to use an alternate format.

Skip 3, >4 bpp as per comments from mcencora on irc.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-03-03 16:14:17 -05:00
Ian Romanick
21cc53c2bc Note removal of color-index rendering in release notes. 2010-03-03 12:37:05 -08:00
Ian Romanick
0384214923 Remove stray defines of HAVE_RGBA
Now that color-index support is removed from t_dd_tritmp.h and
t_dd_unfilled.h, drivers no longer need define HAVE_RGBA.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:05 -08:00
Ian Romanick
889a0f3471 mesa/tnl_dd: Remove color-index support from t_dd_unfilled.h
The code removal and the re-indent were done together for this one
because the cause of the affected code blocks is much, much smaller
than in t_dd_tritmp.h.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:05 -08:00
Ian Romanick
e00b50c39a mesa/tnl_dd: White-space / indentation fixes after previous commit
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:05 -08:00
Ian Romanick
78742f8e86 mesa/tnl_dd: Remove color-index support from t_dd_tritmp.h
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:05 -08:00
Ian Romanick
06ceba0a7c mesa: Remove unused RasterIndex field
With the preceeding changes, gl_current_attrib::RasterIndex is not
used.  Remove it.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:05 -08:00