Commit Graph

31870 Commits

Author SHA1 Message Date
Brian Paul
e9968ebfa4 mesa: minor reformatting, new comments 2010-03-05 13:28:18 -07:00
Jesse Barnes
f846a008e9 progs/xdemos: fix up GLX extension checking
A few of my programs were using the client string in addition to the
main extensions string to see if a feature was present.  Correct this to
only check for the currently available and working extensions.
2010-03-05 11:22:05 -08:00
Jesse Barnes
1ca968363d DRI2: expose OML_sync_control if possible
If the server supports the OML related protocol, enable support for the
extension.
2010-03-05 11:22:05 -08:00
Jesse Barnes
6b3145d6ee GLX: remove debug prints from glXWaitForMscOML dispatch
Leftover from earlier commit.
2010-03-05 11:22:04 -08:00
Jesse Barnes
77bc721a52 xdemos/omlsync: add waitformsc and swap interval code 2010-03-05 11:22:04 -08:00
Michal Krol
2b15f4fc68 progs: Add arbocclude2 demo. 2010-03-05 18:42:42 +01:00
Brian Paul
c3b6adccc9 gallium/docs: updated/improve sampler state documentation 2010-03-05 09:53:47 -07:00
Brian Paul
60fae3b024 docs: document GL_APPLE_object_purgeable 2010-03-05 09:24:15 -07:00
Brian Paul
e176ae5f2a mesa: whitespace fixes, 80-column wrapping, etc. 2010-03-05 09:23:43 -07:00
Chris Wilson
6ba31fb2db Merge branch 'object-purgeable'
Acked-by: Brian Paul <brianp@vmware.com>
2010-03-05 15:03:56 +00:00
Chris Wilson
755915fa5d APPLE_object_purgeable: intel
Implement support for purgeable objects by using the GEM madvise ioctl.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-03-05 11:23:59 +00:00
Chris Wilson
99864d595f APPLE_object_purgeable: core
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-03-05 11:23:55 +00:00
Chia-I Wu
3490923c81 mesa/es: Update GLAPI and APISpec for GL_OES_EGL_image.
This generates the entrypoints and dispatches for GL_OES_EGL_image.
There is no real support yet.
2010-03-05 11:33:10 +08:00
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