Commit graph

30179 commits

Author SHA1 Message Date
Corbin Simpson
fc20efe8e5 r300g: Turn the RS block into an atom.
At least one extraneous dirty was eliminated, as well as the chance for
avoiding dirty on shader change.
2010-01-26 22:08:11 -08:00
Corbin Simpson
60aa7f1f80 r300g: Make vertex_format into an atom.
Some delicious hax here.
2010-01-26 21:49:02 -08:00
Corbin Simpson
e62520de70 r300g: Kill dead code for hashing custom state.
It just wasn't meant to be.
2010-01-26 21:41:44 -08:00
Corbin Simpson
15e283669a r300g: Add A8_UNORM texture format.
Keeps teeworld happy.
2010-01-26 20:11:39 -08:00
Dave Airlie
395e08a839 radeon/r200/r300: don't clean non-emitted state.
So if we don't actually emit an atom to the hw because we don't
need it in the current state (e.g. lighting related atoms when
lighting is off) then don't mark it as clean, because when
lighting gets switched on we won't emit it at all.

This fixes funky gears colors.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-27 12:48:47 +10:00
Dave Airlie
e6df209490 radeon: remove unused file 2010-01-27 12:48:41 +10:00
Eric Anholt
2792baec34 intel: Remove dead code from having to clip copyteximage source rect.
mesa core does it now.  If only it did so for other entrypoints.
2010-01-26 18:27:07 -08:00
Eric Anholt
c8e6a0f2f8 intel: Use a handy helper in glReadPixels source clipping. 2010-01-26 18:02:21 -08:00
Eric Anholt
41f4d82ba8 intel: Clean up stale comments about cliprects. 2010-01-26 18:02:21 -08:00
Eric Anholt
a389d6bd56 intel: Remove the remaining cliprects code from DRI1. 2010-01-26 18:02:20 -08:00
Eric Anholt
ee454f0ba4 intel: Remove DRI1 junk from spans code.
This reduces the driver size by over 1%.
2010-01-26 18:02:20 -08:00
Eric Anholt
348fadc5df intel: Remove DRI1 junk from blit glBitmap. 2010-01-26 18:02:20 -08:00
Eric Anholt
3f912e0b3a intel: Remove DRI1 junk from CopyPixels. 2010-01-26 18:02:20 -08:00
Eric Anholt
3efd88f183 intel: Remove DRI1 junk from glClear blit implementation. 2010-01-26 18:02:20 -08:00
Eric Anholt
a3d8e7e481 i965: Remove DRI1 leftovers from stipple offset handling. 2010-01-26 18:02:20 -08:00
Vinson Lee
25b8ce3a6a i965g: Silence uninitialized variable warning. 2010-01-26 17:00:15 -08:00
Vinson Lee
6ab9740b7a softpipe: Remove unused variables. 2010-01-26 16:45:32 -08:00
Vinson Lee
1187a3c957 st/mesa: Silence uninitialized variable warning. 2010-01-26 16:39:25 -08:00
Eric Anholt
63b10e8fe7 intel: Fix PBO blit ReadPixels from an FBO.
Bug #25921 -- clutter PBO usage gave unreliable results.
2010-01-26 16:30:12 -08:00
Igor Oliveira
db89bf4002 docs: add documentation to double opcodes
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-26 17:18:44 -07:00
Eric Anholt
ab53f71015 i965: Add support for EXT_draw_buffers2. 2010-01-26 14:43:23 -08:00
Eric Anholt
f62c2a0bb8 i965: Fix fp fragment.position handling and enable HW part of ARB_fcc.
As with swrast, this fixes the default pixel center behavior which was
broken, and implements the previous behavior for integer.  Fixes
piglit fp-arb-fragment-coord-conventions-none.  The extension won't be
exposed until we get the GLSL part implemented.

The DRI1 origin_x/y parts are dropped since they're no longer relevant.
2010-01-26 13:30:26 -08:00
Eric Anholt
11c581c6ce swrast: Implement ARB_fragment_coord_conventions but don't enable.
This brings swrast's support up to the state of gallium, and fixes the
default center behavior of fragment.position.xy in piglit
fp-arb-fragment-coord-conventions-none.

The extension is not enabled currently because the GLSL part of the
extension isn't supported, so piglit
glsl-arb-fragment-coord-conventions-define fails as would any serious
test of the GLSL part.
2010-01-26 13:30:26 -08:00
Alan Hourihane
dea98eb792 support an 'embedded' platform target which turns off most parts of the
build.
2010-01-26 20:59:12 +00:00
Alan Hourihane
46f453b298 Check for __USE_MISC for defining uint & ushort 2010-01-26 20:59:11 +00:00
Brian Paul
43867acb6a Merge branch 'mesa_7_7_branch'
Merging was easier than cherry picking in this instance.
2010-01-26 13:25:53 -07:00
Erik Wien
68ca19afd7 mesa: Don't bind DRAW/READ_FRAMEBUFFER separately without FBO blit support
If GL_EXT_framebuffer_blit was not supported _mesa_DeleteFramebuffersEXT
would raise an error when deleting the currently bound framebuffer. This
because it tried to bind the default DRAW- and READ_FRAMEBUFFER separately.
This patch binds the default FRAMEBUFFER instead in that case.

Encountered in the fbo/fbo-copyteximage piglit test on R600.

Patch cleaned up a bit by Brian Paul.
2010-01-26 13:19:32 -07:00
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.
2010-01-26 22:18:27 +02:00
Alan Hourihane
550fc19a5f add missing SCons.Util 2010-01-26 19:57:34 +00:00
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.
2010-01-26 12:49:48 -07:00
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.
2010-01-26 12:47:54 -07:00
Alan Hourihane
18bb614acf fix typo 2010-01-26 19:18:32 +00:00
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
Brian Paul
1d8b308cbf docs: document Intel, R300 env vars 2010-01-26 09:12:32 -07: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