Commit Graph

30324 Commits

Author SHA1 Message Date
Alan Hourihane
6544be6223 Allow the environment to override certain flags. 2010-01-26 19:14:50 +00:00
Alan Hourihane
1019f0de11 only use -Werror flags with gcc 4.2.x and 4.3.x.
could use a better test here though.
2010-01-26 19:14:49 +00:00
Aaron Plattner
cec0e7c086 glxgears: Support GLX_EXT_swap_control for querying the current swap interval.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-26 12:00:51 -07:00
Brian Paul
af1e9403e7 mesa: remove redundant _MaxElement computation
Eric added some new code to check if offset < obj_size before computing
_MaxElement but my original code was still present afterward and it
clobbered the _MaxElement value.

Not sure if this came from a bad merge or what.
2010-01-26 10:53:40 -07:00
Brian Paul
782f66c8a2 progs/tests: use glDrawRangeElements() in bufferobj.c 2010-01-26 10:48:00 -07:00
Christoph Bumiller
a5d67dc011 nv50: supports independent blend enables 2010-01-26 18:33:05 +01:00
Roland Scheidegger
1a9d01dcde gallium: add the new PIPE_CAP blend bits to more drivers
some drivers will complain if they don't know the cap bit
2010-01-26 17:32:57 +01:00
Brian Paul
1d8b308cbf docs: document Intel, R300 env vars 2010-01-26 09:12:32 -07:00
Corbin Simpson
786bd78be4 r300g: Per-MRT blending is not supported. 2010-01-26 07:35:33 -08:00
Roland Scheidegger
9bc80ff174 mesa/st: code cleanups for new blend functionality
minor code changes, style and comment fixes
2010-01-26 15:35:31 +01:00
Chia-I Wu
092b1ca989 egl: Remove _eglOpenDriver and _eglCloseDriver.
_eglCloseDriver is no-op and _eglOpenDriver does nothing but call
_eglMatchDriver.  Export _eglMatchDriver directly.
2010-01-26 18:46:06 +08:00
Chia-I Wu
545eaf83b5 egl: Fix a segfault when a display is initialized again.
Reset dpy->MaxConfigs so that dpy->Configs is re-allocated.
2010-01-26 18:46:05 +08:00
Chia-I Wu
a1717970e7 egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.
They have little use in drivers since drivers need to work for multiple
current contexts.
2010-01-26 18:46:05 +08:00
Chia-I Wu
11cf3cb2c4 egl: Fix leaks in eglReleaseThread.
There may be multiple bound contexts that should be unbound.
2010-01-26 18:46:05 +08:00
Chia-I Wu
7c09296d4c egl: Refactor _eglMakeCurrent.
Refactor _eglMakeCurrent into _eglCheckMakeCurrent,
_eglBindContextToSurface, and _eglBindContextToThread.
2010-01-26 18:46:05 +08:00
Chia-I Wu
6f6f3e4227 egl: Add _eglGetAPIContext.
It will return the currently bound context of the given API.
2010-01-26 18:46:05 +08:00
Chia-I Wu
f65ed0a309 egl: Use a boolean to indicate whether a resource is linked.
An unlinked resource may still be a current resource such as current
surfaces.  There might still be a need to know which display the
unlinked resource belongs to.
2010-01-26 18:46:05 +08:00
Chia-I Wu
d21ee93fdb egl: Mark _eglCheckResource as PUBLIC.
To support extensions such as GL_OES_EGL_image, the drivers need a way
to check if a given EGLImageKHR is valid.
2010-01-26 18:46:05 +08:00
Vinson Lee
c73dbce891 glsl/pp: Silence GCC "no previous prototype" warning. 2010-01-26 00:47:31 -08:00
Eric Anholt
7aed23c362 intel: Don't do client-side frame throttling with DRI2 SwapBuffers.
The server side does the throttling on our behalf now by putting the
client to sleep, so we don't need our previous hacks for limiting the
number of outstanding frames.  Same effect as
7d4e674b21.
2010-01-25 22:57:33 -08:00
Eric Anholt
c7fc9bfb22 Revert "intel: Use the new DRI2 flush invalidate entrypoint to signal frame done."
This reverts commit 7d4e674b21.  It broke
throttling in the non-new-DRI2 case.
2010-01-25 22:57:33 -08:00
Eric Anholt
5e1851b144 i965: Remove unnecessary malloc/free in VS binding table setup. 2010-01-25 22:57:30 -08:00
Eric Anholt
a098fd71d7 i965: Fix build after merge of mesa stable branch. 2010-01-25 22:27:46 -08:00
Chia-I Wu
74aa773f7c docs: Mention EGL and OpenGL ES in 7.8 release notes. 2010-01-26 11:35:30 +08:00
Chia-I Wu
146931769c glx: Build GLX normally.
GLX was built specially and before Mesa core because libglapi.a could
not be built with IN_DRI_DRIVER defined.  This is no longer the case
since 6e99e6ddbf.

It works fine in my (limited) testing with both direct and indirect
rendering.  I also compare the outputs after preprocessing (gcc -E) with
or without this commit, and they are identical.
2010-01-26 11:03:54 +08:00
Chia-I Wu
a6342afe50 docs: Update EGL documentation.
Add --enable-gallium-swrast to the example.  Document missing
--with-egl-driver-dir and update TODOs.
2010-01-26 10:55:28 +08:00
Chia-I Wu
0d2d40451d egl/xdri: Update with glxclient.h change.
__glXFindDisplay is no longer static since
7a9329ba99.
2010-01-26 10:48:16 +08:00
Robert Bragg
7a9329ba99 mesa: misc GLX_INTEL_swap_event fixes
Fixup a few issues found through testing:
  - update GLX names to match glproto
  - register DRI2WireToEvent so it actually gets called

Signed-off-by: Robert Bragg <robert@linux.intel.com>
2010-01-25 15:40:56 -08:00
Brian Paul
9b22427911 Merge branch 'mesa_7_7_branch'
Conflicts:

	src/mesa/drivers/dri/intel/intel_screen.c
	src/mesa/drivers/dri/intel/intel_swapbuffers.c
	src/mesa/drivers/dri/r300/r300_emit.c
	src/mesa/drivers/dri/r300/r300_ioctl.c
	src/mesa/drivers/dri/r300/r300_tex.c
	src/mesa/drivers/dri/r300/r300_texstate.c
2010-01-25 14:46:17 -07:00
Alex Deucher
7e7f8815fb r300: rv350+ support FLT16_2/4 vertex formats 2010-01-25 16:19:19 -05:00
Corbin Simpson
5fe71949d9 r300g: Finish and enable immediate mode.
Based on Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson
1571602153 radeong: Make sure that we're not emitting relocations for local buffers.
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson
c486bfb463 radeong: Make is_r3xx inline to avoid warnings.
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson
67149051be radeong: Clean up domain usages.
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson
72778a9d25 Revert "r300g,radeong: finish and enable the immediate mode"
This reverts commit 112239e9a6.
2010-01-25 11:30:38 -08:00
Roland Scheidegger
df4395198c softpipe: enable new blend functionality
works with tests/drawbuffers2
2010-01-25 20:20:52 +01:00
Jakob Bornecrantz
6749310d3f st/xorg: Fix crash on resize with libkms 2010-01-25 20:12:59 +01:00
Roland Scheidegger
5fae36147e st/mesa: handle EXT_draw_buffers2 per rendertarget blend enables / colormasks
uses the new gallium per-rt blend functionality
2010-01-25 19:27:05 +01:00
Igor Oliveira
0d051af612 vega: fix incorrect samplers, textures indexes in blend_bind_samplers()
Fixes fd.o bug 25863.

Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-25 09:53:53 -07:00
Roland Scheidegger
0d3a6a505d vega: don't enable blending if not necessary
In some places blending was enabled even though it wasn't necessary.
Also remove a (bogus) reenabling of color writes, which wasn't really used.
2010-01-25 16:52:14 +01:00
Roland Scheidegger
dbc0e24ab8 xorg: do not enable unnecessary blending for xv 2010-01-25 16:43:33 +01:00
Roland Scheidegger
13b74b585a trace: adapt to blend changes 2010-01-25 16:41:57 +01:00
Roland Scheidegger
6893948d48 svga: adapt to blend changes 2010-01-25 16:39:39 +01:00
Roland Scheidegger
4e6bfa6de1 softpipe: adapt to blend changes 2010-01-25 16:39:16 +01:00
Roland Scheidegger
e908abf174 nouveau: adapt drviers to blend changes 2010-01-25 16:38:32 +01:00
Roland Scheidegger
d241964e47 r300g: adapt to blend changes 2010-01-25 16:37:51 +01:00
Roland Scheidegger
4e0c825a79 i965g: adapt to blend changes 2010-01-25 16:37:27 +01:00
Roland Scheidegger
bc160fc9b2 i915g: adapt to blend changes 2010-01-25 16:37:09 +01:00
Roland Scheidegger
88388b99fb cell: adapt to blend changes 2010-01-25 16:36:37 +01:00
Roland Scheidegger
99e28d4ee3 llvmpipe: adapt to blend changes 2010-01-25 16:35:56 +01:00