Jesse Barnes
06d228d8b9
intel: make sure we update the renderbuffers after a swap
Now that LOCK_HARDWARE is gone, we don't have a convenient place to
update the renderbuffers everywhere we need them. So grab new buffers
when we invalidate the old ones until we optimize things further.
пре 15 година
Alan Hourihane
550fc19a5f
add missing SCons.Util
пре 15 година
Brian Paul
cbecb8fc8e
vbo: if 'end' is out of bounds, clamp it
If we determine that the 'end' parameter to glDrawElements() is out of
bounds, clamp it to the max legal index value.
пре 15 година
Brian Paul
645e297a00
vbo: clamp DrawElements start/end to max possible values
Some apps are sloppy with their start/end values. Clamp them to
max possible values to prevent problems later.
пре 15 година
Alan Hourihane
18bb614acf
fix typo
пре 15 година
Alan Hourihane
6544be6223
Allow the environment to override certain flags.
пре 15 година
Alan Hourihane
1019f0de11
only use -Werror flags with gcc 4.2.x and 4.3.x.
could use a better test here though.
пре 15 година
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>
пре 15 година
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.
пре 15 година
Brian Paul
782f66c8a2
progs/tests: use glDrawRangeElements() in bufferobj.c
пре 15 година
Christoph Bumiller
a5d67dc011
nv50: supports independent blend enables
пре 15 година
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
пре 15 година
Brian Paul
1d8b308cbf
docs: document Intel, R300 env vars
пре 15 година
Corbin Simpson
786bd78be4
r300g: Per-MRT blending is not supported.
пре 15 година
Roland Scheidegger
9bc80ff174
mesa/st: code cleanups for new blend functionality
minor code changes, style and comment fixes
пре 15 година
Chia-I Wu
092b1ca989
egl: Remove _eglOpenDriver and _eglCloseDriver.
_eglCloseDriver is no-op and _eglOpenDriver does nothing but call
_eglMatchDriver. Export _eglMatchDriver directly.
пре 15 година
Chia-I Wu
545eaf83b5
egl: Fix a segfault when a display is initialized again.
Reset dpy->MaxConfigs so that dpy->Configs is re-allocated.
пре 15 година
Chia-I Wu
a1717970e7
egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.
They have little use in drivers since drivers need to work for multiple
current contexts.
пре 15 година
Chia-I Wu
11cf3cb2c4
egl: Fix leaks in eglReleaseThread.
There may be multiple bound contexts that should be unbound.
пре 15 година
Chia-I Wu
7c09296d4c
egl: Refactor _eglMakeCurrent.
Refactor _eglMakeCurrent into _eglCheckMakeCurrent,
_eglBindContextToSurface, and _eglBindContextToThread.
пре 15 година
Chia-I Wu
6f6f3e4227
egl: Add _eglGetAPIContext.
It will return the currently bound context of the given API.
пре 15 година
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.
пре 15 година
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.
пре 15 година
Vinson Lee
c73dbce891
glsl/pp: Silence GCC "no previous prototype" warning.
пре 15 година
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
.
пре 15 година
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.
пре 15 година
Eric Anholt
5e1851b144
i965: Remove unnecessary malloc/free in VS binding table setup.
пре 15 година
Eric Anholt
a098fd71d7
i965: Fix build after merge of mesa stable branch.
пре 15 година
Chia-I Wu
74aa773f7c
docs: Mention EGL and OpenGL ES in 7.8 release notes.
пре 15 година
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.
пре 15 година
Chia-I Wu
a6342afe50
docs: Update EGL documentation.
Add --enable-gallium-swrast to the example. Document missing
--with-egl-driver-dir and update TODOs.
пре 15 година
Chia-I Wu
0d2d40451d
egl/xdri: Update with glxclient.h change.
__glXFindDisplay is no longer static since
7a9329ba99
.
пре 15 година
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>
пре 15 година
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
пре 15 година
Alex Deucher
7e7f8815fb
r300: rv350+ support FLT16_2/4 vertex formats
пре 15 година
Corbin Simpson
5fe71949d9
r300g: Finish and enable immediate mode.
Based on Marek's immd-mode patch.
пре 15 година
Corbin Simpson
1571602153
radeong: Make sure that we're not emitting relocations for local buffers.
Split from Marek's immd-mode patch.
пре 15 година
Corbin Simpson
c486bfb463
radeong: Make is_r3xx inline to avoid warnings.
Split from Marek's immd-mode patch.
пре 15 година
Corbin Simpson
67149051be
radeong: Clean up domain usages.
Split from Marek's immd-mode patch.
пре 15 година
Corbin Simpson
72778a9d25
Revert "r300g,radeong: finish and enable the immediate mode"
This reverts commit 112239e9a6
.
пре 15 година
Roland Scheidegger
df4395198c
softpipe: enable new blend functionality
works with tests/drawbuffers2
пре 15 година
Jakob Bornecrantz
6749310d3f
st/xorg: Fix crash on resize with libkms
пре 15 година
Roland Scheidegger
5fae36147e
st/mesa: handle EXT_draw_buffers2 per rendertarget blend enables / colormasks
uses the new gallium per-rt blend functionality
пре 15 година
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>
пре 15 година
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.
пре 15 година
Roland Scheidegger
dbc0e24ab8
xorg: do not enable unnecessary blending for xv
пре 15 година
Roland Scheidegger
13b74b585a
trace: adapt to blend changes
пре 15 година
Roland Scheidegger
6893948d48
svga: adapt to blend changes
пре 15 година
Roland Scheidegger
4e6bfa6de1
softpipe: adapt to blend changes
пре 15 година
Roland Scheidegger
e908abf174
nouveau: adapt drviers to blend changes
пре 15 година