mesa.git
14 years agoRemove stray defines of HAVE_RGBA
Ian Romanick [Sat, 27 Feb 2010 01:58:53 +0000 (17:58 -0800)]
Remove stray defines of HAVE_RGBA

Now that color-index support is removed from t_dd_tritmp.h and
t_dd_unfilled.h, drivers no longer need define HAVE_RGBA.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa/tnl_dd: Remove color-index support from t_dd_unfilled.h
Ian Romanick [Sat, 27 Feb 2010 01:54:59 +0000 (17:54 -0800)]
mesa/tnl_dd: Remove color-index support from t_dd_unfilled.h

The code removal and the re-indent were done together for this one
because the cause of the affected code blocks is much, much smaller
than in t_dd_tritmp.h.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa/tnl_dd: White-space / indentation fixes after previous commit
Ian Romanick [Sat, 27 Feb 2010 01:45:27 +0000 (17:45 -0800)]
mesa/tnl_dd: White-space / indentation fixes after previous commit

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa/tnl_dd: Remove color-index support from t_dd_tritmp.h
Ian Romanick [Sat, 27 Feb 2010 01:41:15 +0000 (17:41 -0800)]
mesa/tnl_dd: Remove color-index support from t_dd_tritmp.h

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Remove unused RasterIndex field
Ian Romanick [Thu, 25 Feb 2010 03:29:53 +0000 (19:29 -0800)]
mesa: Remove unused RasterIndex field

With the preceeding changes, gl_current_attrib::RasterIndex is not
used.  Remove it.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Always return default value for CURRENT_RASTER_INDEX
Ian Romanick [Thu, 25 Feb 2010 03:28:04 +0000 (19:28 -0800)]
mesa: Always return default value for CURRENT_RASTER_INDEX

Since there is no color-index rendering, it is impossible to update
this value.  Just return the initial setting and be happy.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Eliminate index parameter to _mesa_feedback_vertex
Ian Romanick [Thu, 25 Feb 2010 03:25:19 +0000 (19:25 -0800)]
mesa: Eliminate index parameter to _mesa_feedback_vertex

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Remove ClearIndex and IndexMask from device-driver interface
Ian Romanick [Thu, 25 Feb 2010 03:12:30 +0000 (19:12 -0800)]
mesa: Remove ClearIndex and IndexMask from device-driver interface

These are used to inform the driver of the clear value for color-index
buffers and to control write-masking of bits in color-index buffers.
No driver use or need (not even Nouveau) these interfaces.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove _swrast_logicop_ci_span
Ian Romanick [Thu, 25 Feb 2010 03:06:29 +0000 (19:06 -0800)]
swrast: Remove _swrast_logicop_ci_span

After all the recent color-index rendering removal,
_swrast_logicop_ci_span is no longer used anywhere.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Remove _mesa_add_color_index_renderbuffers
Ian Romanick [Thu, 25 Feb 2010 03:03:23 +0000 (19:03 -0800)]
mesa: Remove _mesa_add_color_index_renderbuffers

After all the recent color-index visual support removal,
_mesa_add_color_index_renderbuffers is no longer used anywhere.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Remove checks of Visual.rgbMode in Get paths
Ian Romanick [Thu, 25 Feb 2010 03:00:50 +0000 (19:00 -0800)]
mesa: Remove checks of Visual.rgbMode in Get paths

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Remove checks of Visual.rgbMode
Ian Romanick [Thu, 25 Feb 2010 02:58:38 +0000 (18:58 -0800)]
mesa: Remove checks of Visual.rgbMode

This must always be true now, so there is no reason to check it.  Ever.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Remove support for creating color-index visuals
Ian Romanick [Thu, 25 Feb 2010 02:49:33 +0000 (18:49 -0800)]
mesa: Remove support for creating color-index visuals

Remove the rgbMode and indexBits parameters from _mesa_create_visual
and _mesa_initialize_visual.  These values are now hardcoded to
GL_TRUE and 0.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agotnl: Remove color-index TNL support
Ian Romanick [Thu, 25 Feb 2010 02:24:07 +0000 (18:24 -0800)]
tnl: Remove color-index TNL support

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoDRI: Remove support for color-index visuals
Ian Romanick [Thu, 25 Feb 2010 02:23:19 +0000 (18:23 -0800)]
DRI: Remove support for color-index visuals

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast_setup: Remove more color-index rendering support
Ian Romanick [Thu, 25 Feb 2010 02:15:40 +0000 (18:15 -0800)]
swrast_setup: Remove more color-index rendering support

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove color-index rendering support from s_spantemp.h
Ian Romanick [Thu, 25 Feb 2010 01:48:27 +0000 (17:48 -0800)]
swrast: Remove color-index rendering support from s_spantemp.h

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa/xlib: Remove support for color-index rendering
Ian Romanick [Thu, 25 Feb 2010 01:44:28 +0000 (17:44 -0800)]
mesa/xlib: Remove support for color-index rendering

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoosmesa: Remove support for color-index rendering
Ian Romanick [Thu, 25 Feb 2010 00:59:27 +0000 (16:59 -0800)]
osmesa: Remove support for color-index rendering

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agofbdev: Remove support for color-index rendering
Ian Romanick [Thu, 25 Feb 2010 00:51:40 +0000 (16:51 -0800)]
fbdev: Remove support for color-index rendering

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoDRI/swrast: Remove color-index support from DRI swrast driver
Ian Romanick [Thu, 25 Feb 2010 00:44:39 +0000 (16:44 -0800)]
DRI/swrast: Remove color-index support from DRI swrast driver

It appears that color-index rendering wasn't actually supported
anyway.  swrastFillInModes did not previously create an color-index
configs, so it doesn't seem like there would be any way to get a
color-index visual.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove SPAN_INDEX
Ian Romanick [Thu, 25 Feb 2010 00:34:21 +0000 (16:34 -0800)]
swrast: Remove SPAN_INDEX

Also adjust the bits that appear after it to fill in the gap.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove _swrast_read_index_span
Ian Romanick [Thu, 25 Feb 2010 00:11:43 +0000 (16:11 -0800)]
swrast: Remove _swrast_read_index_span

After all the recent color-index rendering removal,
_swrast_read_index_span is no longer used anywhere.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove _swrast_mask_ci_span
Ian Romanick [Thu, 25 Feb 2010 00:10:02 +0000 (16:10 -0800)]
swrast: Remove _swrast_mask_ci_span

After all the recent color-index rendering removal,
_swrast_mask_ci_span is no longer used anywhere.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove _swrast_fog_ci_span and associated code
Ian Romanick [Thu, 25 Feb 2010 00:07:11 +0000 (16:07 -0800)]
swrast: Remove _swrast_fog_ci_span and associated code

After all the recent color-index rendering removal,
_swrast_fog_ci_span is no longer used anywhere.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove _swrast_write_index_span and associated code
Ian Romanick [Thu, 25 Feb 2010 00:05:20 +0000 (16:05 -0800)]
swrast: Remove _swrast_write_index_span and associated code

After all the recent color-index rendering removal,
_swrast_write_index_span is no longer used anywhere.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove remaining color-index state tracking infrastructure
Ian Romanick [Thu, 25 Feb 2010 00:02:38 +0000 (16:02 -0800)]
swrast: Remove remaining color-index state tracking infrastructure

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for ReadPixels from a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:54:33 +0000 (15:54 -0800)]
swrast: Remove support for ReadPixels from a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for Clear into a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:45:36 +0000 (15:45 -0800)]
swrast: Remove support for Clear into a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for rendering antialiased lines into a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:39:08 +0000 (15:39 -0800)]
swrast: Remove support for rendering antialiased lines into a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for rendering antialiased triangles into a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:26:48 +0000 (15:26 -0800)]
swrast: Remove support for rendering antialiased triangles into a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for rendering lines into a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:22:56 +0000 (15:22 -0800)]
swrast: Remove support for rendering lines into a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for rendering points into a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:20:11 +0000 (15:20 -0800)]
swrast: Remove support for rendering points into a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for rendering triangles into a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:17:30 +0000 (15:17 -0800)]
swrast: Remove support for rendering triangles into a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for Bitmap into a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:15:01 +0000 (15:15 -0800)]
swrast: Remove support for Bitmap into a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove _swrast_write_zoomed_index_span and associated code
Ian Romanick [Wed, 24 Feb 2010 23:11:04 +0000 (15:11 -0800)]
swrast: Remove _swrast_write_zoomed_index_span and associated code

After removing support for CopyPixels and DrawPixels involving
color-index buffers, _swrast_write_zoomed_index_span is no longer
used.  Removed it and all the support for COLOR_INDEX formats in zoom_span.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for CopyPixels to / from a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 23:02:59 +0000 (15:02 -0800)]
swrast: Remove support for CopyPixels to / from a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoswrast: Remove support for DrawPixels into a color-index buffer
Ian Romanick [Wed, 24 Feb 2010 22:55:25 +0000 (14:55 -0800)]
swrast: Remove support for DrawPixels into a color-index buffer

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agollvmpipe: Store the original triangle coordinates in the debug build.
José Fonseca [Wed, 3 Mar 2010 19:55:31 +0000 (19:55 +0000)]
llvmpipe: Store the original triangle coordinates in the debug build.

For debugging purposes only.

14 years agollvmpipe: Ensure context is flushed when destroying shaders.
José Fonseca [Wed, 3 Mar 2010 18:47:29 +0000 (18:47 +0000)]
llvmpipe: Ensure context is flushed when destroying shaders.

14 years agoi915: Use x,y drawing offsets instead of changing buffer offsets.
Eric Anholt [Wed, 3 Mar 2010 02:06:24 +0000 (18:06 -0800)]
i915: Use x,y drawing offsets instead of changing buffer offsets.

This should fix rendering into mipmaps of tiled textures.

14 years agoi915: Tell the kernel when we actually need fence registers on our BOs.
Eric Anholt [Wed, 3 Mar 2010 02:04:40 +0000 (18:04 -0800)]
i915: Tell the kernel when we actually need fence registers on our BOs.

This improves tiled texture performance of OA on my 945 from 25.3fps
to 29.0fps, whereas untiled is 28.2fps, by avoiding stalls for fence
register changes.

14 years agointel: Use drm_intel_bo_alloc_tiled for region allocs.
Eric Anholt [Tue, 2 Mar 2010 23:34:17 +0000 (15:34 -0800)]
intel: Use drm_intel_bo_alloc_tiled for region allocs.

This moves the logic for how to align pitches, heights, and sizes of
objects to one central location.  Fixes rendering with texture tiling
on i915.  Note that current libdrm is required for the change for
I915_TILING_NONE pitch alignment.

14 years agoi915: Don't do the pitch expansion for tiled buffers.
Eric Anholt [Tue, 2 Mar 2010 23:28:36 +0000 (15:28 -0800)]
i915: Don't do the pitch expansion for tiled buffers.

The weirdness that led to the bumping of pitch for those 512/1024
pixels is that in taking a 2x2 subspan or bilinear filtering we'd end
up hitting the same channel in 2 different pages, leading to lower
performance.  With tiling, that doesn't occur, so we don't need to
waste the memory.

14 years agointel: Use GTT mapping in the blit fallback path in case there's tiling.
Eric Anholt [Tue, 2 Mar 2010 18:41:08 +0000 (10:41 -0800)]
intel: Use GTT mapping in the blit fallback path in case there's tiling.

14 years agoi965: Fix up Sandybridge VS sizing.
Eric Anholt [Tue, 2 Mar 2010 18:27:51 +0000 (10:27 -0800)]
i965: Fix up Sandybridge VS sizing.

14 years agoglapi: minor cosmetic
George Sapountzis [Wed, 3 Mar 2010 19:22:38 +0000 (21:22 +0200)]
glapi: minor cosmetic

14 years agoglapi: drop condvar
George Sapountzis [Wed, 3 Mar 2010 19:22:38 +0000 (21:22 +0200)]
glapi: drop condvar

Seems unused and replaced by functionality in os module.

14 years agor600: add new rs880 pci id
Alex Deucher [Wed, 3 Mar 2010 19:09:53 +0000 (14:09 -0500)]
r600: add new rs880 pci id

14 years agoegl_dri2: Factor out DRI2 protocol bits from initialize.
Kristian Høgsberg [Tue, 2 Mar 2010 20:34:18 +0000 (15:34 -0500)]
egl_dri2: Factor out DRI2 protocol bits from initialize.

14 years agointel: Set InternalFormat for renderbuffers created from an EGLImage
Kristian Høgsberg [Tue, 2 Mar 2010 20:41:12 +0000 (15:41 -0500)]
intel: Set InternalFormat for renderbuffers created from an EGLImage

14 years agoprogs/gallium/unit: Test (un)pack_4ub.
José Fonseca [Wed, 3 Mar 2010 13:47:42 +0000 (13:47 +0000)]
progs/gallium/unit: Test (un)pack_4ub.

Most of them are failing.

14 years agogallium: Remove PIPE_FORMAT_R8G8B8X8_SNORM.
José Fonseca [Wed, 3 Mar 2010 13:08:23 +0000 (13:08 +0000)]
gallium: Remove PIPE_FORMAT_R8G8B8X8_SNORM.

14 years agoutil: Remove PIPE_FORMAT_R8G8B8X8_SNORM information.
José Fonseca [Wed, 3 Mar 2010 13:08:08 +0000 (13:08 +0000)]
util: Remove PIPE_FORMAT_R8G8B8X8_SNORM information.

14 years agor300: Remove PIPE_FORMAT_R8G8B8X8_SNORM support.
José Fonseca [Wed, 3 Mar 2010 13:07:56 +0000 (13:07 +0000)]
r300: Remove PIPE_FORMAT_R8G8B8X8_SNORM support.

14 years agoprogs/gallium/unit: Remove PIPE_FORMAT_R8G8B8X8_SNORM test cases.
José Fonseca [Wed, 3 Mar 2010 13:07:43 +0000 (13:07 +0000)]
progs/gallium/unit: Remove PIPE_FORMAT_R8G8B8X8_SNORM test cases.

14 years agollvmpipe: Linux is no longer a dependency. Llvmpipe builds and runs fine on windows...
José Fonseca [Wed, 3 Mar 2010 12:07:39 +0000 (12:07 +0000)]
llvmpipe: Linux is no longer a dependency. Llvmpipe builds and runs fine on windows too.

14 years agollvmpipe: Centralize LLVM initialization.
José Fonseca [Wed, 3 Mar 2010 12:00:25 +0000 (12:00 +0000)]
llvmpipe: Centralize LLVM initialization.

14 years agogallivm: Centralize initialization. Fix stack alignment issues on Windows.
José Fonseca [Wed, 3 Mar 2010 12:00:08 +0000 (12:00 +0000)]
gallivm: Centralize initialization. Fix stack alignment issues on Windows.

14 years agollvmpipe: Update for lp_bld_init.h rename.
José Fonseca [Wed, 3 Mar 2010 11:17:16 +0000 (11:17 +0000)]
llvmpipe: Update for lp_bld_init.h rename.

14 years agogallivm: Rename lp_bld_misc -> lp_bld_init.
José Fonseca [Wed, 3 Mar 2010 10:54:35 +0000 (10:54 +0000)]
gallivm: Rename lp_bld_misc -> lp_bld_init.

14 years agoradeon/r200/r300/r600: fix blit BO buffer validation
Dave Airlie [Wed, 3 Mar 2010 06:27:21 +0000 (16:27 +1000)]
radeon/r200/r300/r600: fix blit BO buffer validation

there is no need for these to be persistent since we flush the CS
at the end of the blit, and we don't reuse these buffers at all.

on my r600 the Wine DX9 test suite doesn't crash at least anymore.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agor300g: Use a macro to consolidate general state handling.
Corbin Simpson [Wed, 3 Mar 2010 03:14:09 +0000 (19:14 -0800)]
r300g: Use a macro to consolidate general state handling.

My God, I've reinvented R300_STATECHANGE. Forgive me. :C

14 years agonv50: fix RT formats after format rename fixes
Christoph Bumiller [Tue, 2 Mar 2010 18:16:39 +0000 (19:16 +0100)]
nv50: fix RT formats after format rename fixes

Getting rid of the evil pre-processor magic, but not changing our
internal format naming convention (at least for now).

14 years agonouveau: Rename pipe formats.
José Fonseca [Tue, 2 Mar 2010 17:26:40 +0000 (17:26 +0000)]
nouveau: Rename pipe formats.

These format uses were being hiden by pre-processor magic and were
missed in the previous search'n'replace.

14 years agoMerge branch 'gallium-format-cleanup'
José Fonseca [Tue, 2 Mar 2010 16:00:34 +0000 (16:00 +0000)]
Merge branch 'gallium-format-cleanup'

14 years agollvmpipe: improve based on review from Jose and fix else clauses
Zack Rusin [Tue, 2 Mar 2010 15:18:29 +0000 (10:18 -0500)]
llvmpipe: improve based on review from Jose and fix else clauses

else was broken in the outter most else statemants, plus the code
didn't need an inverted mask to compute the inverse of the current
condition.

14 years agollvmpipe: remove some ifdefs
Keith Whitwell [Tue, 2 Mar 2010 15:02:29 +0000 (15:02 +0000)]
llvmpipe: remove some ifdefs

No longer any need to protect expensive asserts with #ifdef DEBUG.

14 years agollvmpipe: reorganize transfer usage
Keith Whitwell [Tue, 2 Mar 2010 14:41:35 +0000 (14:41 +0000)]
llvmpipe: reorganize transfer usage

Move transfer creation and mapping to the "scene" object, and out of
the rasterizer.  The rasterizer operates on already-mapped
framebuffers only, and no longer needs a screen or context pointer.

The scene object has access to a pipe_context, and this reorg prepares
for moving transfer functionality from the screen to the context.

14 years agointel: passs correct context type to intel_prepare_render() call
Brian Paul [Tue, 2 Mar 2010 14:50:15 +0000 (07:50 -0700)]
intel: passs correct context type to intel_prepare_render() call

14 years agoi965: include macros.h to get CLAMP macro
Brian Paul [Tue, 2 Mar 2010 14:47:56 +0000 (07:47 -0700)]
i965: include macros.h to get CLAMP macro

14 years agoglx: replace assertion with conditional
Brian Paul [Tue, 2 Mar 2010 14:34:29 +0000 (07:34 -0700)]
glx: replace assertion with conditional

See fd.o bug 26832.

14 years agoprogs/gallium/unit: Add test cases for single precision floats.
José Fonseca [Tue, 2 Mar 2010 12:47:16 +0000 (12:47 +0000)]
progs/gallium/unit: Add test cases for single precision floats.

14 years agoprogs/gallium/unit: Add test cases for Nx16 and Nx32 integer formats.
José Fonseca [Tue, 2 Mar 2010 12:40:09 +0000 (12:40 +0000)]
progs/gallium/unit: Add test cases for Nx16 and Nx32 integer formats.

14 years agoMerge branch 'gallium-no-rhw-position'
Michal Krol [Tue, 2 Mar 2010 12:35:30 +0000 (13:35 +0100)]
Merge branch 'gallium-no-rhw-position'

Conflicts:
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_state_derived.c

14 years agoprogs/gallium/unit: Add more test cases.
José Fonseca [Tue, 2 Mar 2010 11:30:46 +0000 (11:30 +0000)]
progs/gallium/unit: Add more test cases.

14 years agoutil: Tweak comment for D3D10-like formats.
José Fonseca [Tue, 2 Mar 2010 11:30:23 +0000 (11:30 +0000)]
util: Tweak comment for D3D10-like formats.

14 years agoprogs/gallium/python: Rename pipe formats.
José Fonseca [Mon, 1 Mar 2010 18:15:04 +0000 (18:15 +0000)]
progs/gallium/python: Rename pipe formats.

14 years agogallium/unit: Rename pipe formats.
José Fonseca [Mon, 1 Mar 2010 18:14:48 +0000 (18:14 +0000)]
gallium/unit: Rename pipe formats.

14 years agorbug: Rename pipe formats.
José Fonseca [Mon, 1 Mar 2010 18:14:38 +0000 (18:14 +0000)]
rbug: Rename pipe formats.

14 years agogdi: Rename pipe formats.
José Fonseca [Mon, 1 Mar 2010 18:14:31 +0000 (18:14 +0000)]
gdi: Rename pipe formats.

14 years agodrm/nouveau: Rename pipe formats.
José Fonseca [Mon, 1 Mar 2010 18:14:26 +0000 (18:14 +0000)]
drm/nouveau: Rename pipe formats.

14 years agosvga: Rename pipe formats.
José Fonseca [Mon, 1 Mar 2010 18:14:12 +0000 (18:14 +0000)]
svga: Rename pipe formats.

14 years agosoftpipe: Rename pipe formats.
José Fonseca [Mon, 1 Mar 2010 18:13:57 +0000 (18:13 +0000)]
softpipe: Rename pipe formats.

14 years agor300: Rename pipe formats.
José Fonseca [Mon, 1 Mar 2010 18:13:41 +0000 (18:13 +0000)]
r300: Rename pipe formats.

14 years agoutil/blitter: Fix the viewport transformation for Z coordinates
Marek Olšák [Tue, 2 Mar 2010 01:37:45 +0000 (02:37 +0100)]
util/blitter: Fix the viewport transformation for Z coordinates

When clearing buffers, the depth is specified in the range [0, 1]
and should be passed through blitter "as is".

14 years agoi915g: Add assert to check for null pointer dereference.
Vinson Lee [Tue, 2 Mar 2010 09:15:02 +0000 (01:15 -0800)]
i915g: Add assert to check for null pointer dereference.

14 years agoglsl: Add assert to check input to strcmp.
Vinson Lee [Tue, 2 Mar 2010 09:10:29 +0000 (01:10 -0800)]
glsl: Add assert to check input to strcmp.

14 years agomesa: Add asserts to check inputs to memcpy.
Vinson Lee [Tue, 2 Mar 2010 09:01:23 +0000 (01:01 -0800)]
mesa: Add asserts to check inputs to memcpy.

14 years agor600: fix blender picking.
Dave Airlie [Tue, 2 Mar 2010 04:05:21 +0000 (14:05 +1000)]
r600: fix blender picking.

This fixes the sw fallback for GL_SELECT picking modes.

Fixes object picking blender + depthpick test

http://bugs.freedesktop.org/show_bug.cgi?id=26419

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agollvmpipe: implement some control-flow
Zack Rusin [Tue, 2 Mar 2010 03:11:08 +0000 (22:11 -0500)]
llvmpipe: implement some control-flow

implements if/else/endif constructs and lays down the code for looping
and others. we create a conditional execution mask which decides which
of the four inputs are enabled for any store. it's used only if an
execution mask is present, otherwise we go through a direct store.

14 years agoglapi: fix compile with ES
George Sapountzis [Tue, 2 Mar 2010 01:31:16 +0000 (03:31 +0200)]
glapi: fix compile with ES

14 years agoglapi: Fix syntax.
José Fonseca [Mon, 1 Mar 2010 23:18:29 +0000 (23:18 +0000)]
glapi: Fix syntax.

14 years agoradeon: Reduce number of radeon_bo_map calls that require kernel entry.
Pauli Nieminen [Mon, 1 Mar 2010 21:47:35 +0000 (23:47 +0200)]
radeon: Reduce number of radeon_bo_map calls that require kernel entry.

DMA buffers are often remapped many times for singel cs. To reduce number of
mapping calls ending to kernel dma buffers are mapped when allocated and unmapped
when full or in cs flush. This makes indifual mapping calls in other parts of
code simple increment/decrement reference count which is faster than entering
kernel.

This improves Anholt's openarena benchmark from 36 fps to 44 fps.

14 years agoRemove now obsolete mesa_bzero symbol.
Karl Schultz [Mon, 1 Mar 2010 19:21:13 +0000 (12:21 -0700)]
Remove now obsolete mesa_bzero symbol.

14 years agoglapi: drop SOLARIS_THREADS
George Sapountzis [Mon, 1 Mar 2010 15:28:55 +0000 (17:28 +0200)]
glapi: drop SOLARIS_THREADS

It seems that SOLARIS_THREADS is not used and does not work.

14 years agoglapi.c: misc coscmetic for FreeTSD
George Sapountzis [Mon, 1 Mar 2010 02:44:02 +0000 (04:44 +0200)]
glapi.c: misc coscmetic for FreeTSD

- move out of of the dispatch/context block to after corresponding init functions

- use more consistent naming with corresponding init functions

- XXX use _glthread_InitTSD() vs (void)_glthread_GetTSD() in _glapi_check_multithread() XXX

14 years agoglapi.c: misc cosmetic
George Sapountzis [Sat, 27 Feb 2010 13:19:44 +0000 (15:19 +0200)]
glapi.c: misc cosmetic

mainly, move the multithread check mutex out of the dispatch/context block,
closer to where it is used.

14 years agoglapi.c: mv init_glapi_relocs to glapi_getproc.c
George Sapountzis [Fri, 26 Feb 2010 21:43:46 +0000 (23:43 +0200)]
glapi.c: mv init_glapi_relocs to glapi_getproc.c

14 years agoglapi.c: mv check_table to glapi_getproc.c
George Sapountzis [Fri, 26 Feb 2010 18:01:20 +0000 (20:01 +0200)]
glapi.c: mv check_table to glapi_getproc.c