Commit Graph

31806 Commits

Author SHA1 Message Date
Alex Deucher 3594bf233d radeon/r200/r300/r600: add check_blit vtbl function
Check if the native blit formats are supported, if not,
attempt to use an alternate format.

Skip 3, >4 bpp as per comments from mcencora on irc.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-03-03 16:14:17 -05:00
Ian Romanick 21cc53c2bc Note removal of color-index rendering in release notes. 2010-03-03 12:37:05 -08:00
Ian Romanick 0384214923 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>
2010-03-03 12:37:05 -08:00
Ian Romanick 889a0f3471 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>
2010-03-03 12:37:05 -08:00
Ian Romanick e00b50c39a mesa/tnl_dd: White-space / indentation fixes after previous commit
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:05 -08:00
Ian Romanick 78742f8e86 mesa/tnl_dd: Remove color-index support from t_dd_tritmp.h
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:05 -08:00
Ian Romanick 06ceba0a7c 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>
2010-03-03 12:37:05 -08:00
Ian Romanick 5c52b4292f 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>
2010-03-03 12:37:05 -08:00
Ian Romanick 24d311c133 mesa: Eliminate index parameter to _mesa_feedback_vertex
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:05 -08:00
Ian Romanick bb8c3b1bcc 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>
2010-03-03 12:37:05 -08:00
Ian Romanick 5034e8ad42 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>
2010-03-03 12:37:05 -08:00
Ian Romanick 3d0f608e13 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>
2010-03-03 12:37:04 -08:00
Ian Romanick b9f63c277a mesa: Remove checks of Visual.rgbMode in Get paths
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick 22a96f3058 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>
2010-03-03 12:37:04 -08:00
Ian Romanick fcf438e9e0 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>
2010-03-03 12:37:04 -08:00
Ian Romanick a9c1b3caf6 tnl: Remove color-index TNL support
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick 5cf2c5851b DRI: Remove support for color-index visuals
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick e650c07f47 swrast_setup: Remove more color-index rendering support
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick 859c98c392 swrast: Remove color-index rendering support from s_spantemp.h
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick 81fe9949ef mesa/xlib: Remove support for color-index rendering
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick 641705f032 osmesa: Remove support for color-index rendering
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick 6f317253bf fbdev: Remove support for color-index rendering
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick 718ff7e87b 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>
2010-03-03 12:37:04 -08:00
Ian Romanick dc14ce9e36 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>
2010-03-03 12:37:04 -08:00
Ian Romanick 7ce12c9024 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>
2010-03-03 12:37:04 -08:00
Ian Romanick 0ca5729578 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>
2010-03-03 12:37:04 -08:00
Ian Romanick b00362e51b 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>
2010-03-03 12:37:04 -08:00
Ian Romanick c00282102a 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>
2010-03-03 12:37:04 -08:00
Ian Romanick 2b7911d37d swrast: Remove remaining color-index state tracking infrastructure
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
Ian Romanick 3fd8487ac6 swrast: Remove support for ReadPixels from a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick 9e2d30e0b8 swrast: Remove support for Clear into a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick e5ed4c45c6 swrast: Remove support for rendering antialiased lines into a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick 87b9f5a725 swrast: Remove support for rendering antialiased triangles into a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick e6df80184b swrast: Remove support for rendering lines into a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick dbe901ceb0 swrast: Remove support for rendering points into a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick 0ed9c4bc7a swrast: Remove support for rendering triangles into a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick d05badba29 swrast: Remove support for Bitmap into a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick ef0e02f93d 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>
2010-03-03 12:37:03 -08:00
Ian Romanick e7e748cd04 swrast: Remove support for CopyPixels to / from a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
Ian Romanick d82e1d7f95 swrast: Remove support for DrawPixels into a color-index buffer
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:03 -08:00
José Fonseca 4053d33703 llvmpipe: Store the original triangle coordinates in the debug build.
For debugging purposes only.
2010-03-03 19:55:49 +00:00
José Fonseca 4d5dd82558 llvmpipe: Ensure context is flushed when destroying shaders. 2010-03-03 19:55:49 +00:00
Eric Anholt b87406e55f i915: Use x,y drawing offsets instead of changing buffer offsets.
This should fix rendering into mipmaps of tiled textures.
2010-03-03 11:33:37 -08:00
Eric Anholt 06d1472ffa 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.
2010-03-03 11:33:37 -08:00
Eric Anholt 179d2c0e0b 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.
2010-03-03 11:33:37 -08:00
Eric Anholt 07439cf617 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.
2010-03-03 11:33:37 -08:00
Eric Anholt 55e90e46e0 intel: Use GTT mapping in the blit fallback path in case there's tiling. 2010-03-03 11:33:37 -08:00
Eric Anholt a3593833dc i965: Fix up Sandybridge VS sizing. 2010-03-03 11:33:37 -08:00
George Sapountzis 3b8ff24554 glapi: minor cosmetic 2010-03-03 21:23:20 +02:00
George Sapountzis 8bd8aec81d glapi: drop condvar
Seems unused and replaced by functionality in os module.
2010-03-03 21:23:20 +02:00