Commit Graph

30198 Commits

Author SHA1 Message Date
Brian Paul ca0d048e4e mesa: fix int/uint comparison warnings
Reported by Karl Schultz.
2010-01-27 17:04:30 -07:00
Brian Paul 28bd4a1d81 tnl: fix double->float and int/uint conversion warnings
Reported by Karl Schultz.
2010-01-27 17:04:30 -07:00
Brian Paul 880411c72a swrast: silence double->float assignment warnings
Reported by Karl Schultz.
2010-01-27 17:04:30 -07:00
Brian Paul 4e5364d6fc mesa: more info in glActiveTexture error msg 2010-01-27 17:04:30 -07:00
Brian Paul f103f7e460 configs: added vega to default GALLIUM_STATE_TRACKERS_DIRS 2010-01-27 17:04:30 -07:00
Vinson Lee 83e6ba564c i965g: Remove unnecessary headers. 2010-01-27 15:54:21 -08:00
Vinson Lee f7f59b50ce util: Remove unnecessary header. 2010-01-27 15:35:58 -08:00
Vinson Lee 00c3607917 tgsi: Remove unnecessary header. 2010-01-27 15:32:48 -08:00
Vinson Lee 83d2b4d4a6 gallium/draw: Remove unnecessary headers. 2010-01-27 15:06:13 -08:00
Vinson Lee 01ed5c6ef5 r300g: Silence GCC "missing braces around initializer" warning. 2010-01-27 14:04:53 -08:00
Alex Deucher ccb4ba3e3b r600: fix warning 2010-01-27 12:18:02 -05:00
Alex Deucher 1fdf04ade3 r600: rv670 support 8 tex instructions just like other r6xx
also clarify some other const values.
2010-01-27 12:16:50 -05:00
Brian Paul b8656c4825 cell: remove commas from structs wrapped in PIPE_ALIGN_TYPE macro
This avoids the need to make PIPE_ALIGN_TYPE a variadic macro.
2010-01-27 09:26:39 -07:00
Alan Hourihane 1ecf505087 Duplicate CCVERSION check code to compensate for different env CC. 2010-01-27 12:46:46 +00:00
Andre Maasikas 07d47cb92d r600: increase max texture units to 16 2010-01-27 11:22:56 +02:00
Andre Maasikas fb24c2678a r600: fix XPD with writemask
same variable used for 2 different temp registers
fixes e.g. glsl/bump
2010-01-27 10:22:32 +02:00
Vinson Lee 2a06221822 softpipe: Remove unnecessary header. 2010-01-26 23:28:23 -08:00
Vinson Lee aa2423b5b3 i915g: Remove unnecessary headers. 2010-01-26 23:26:41 -08:00
Vinson Lee 7d29afb3a2 scons: Use '-Werror=' option on GCC 4.2.x and greater.
The existing code only checked for GCC 4.2.x and 4.3.x.
2010-01-26 22:56:58 -08:00
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