Commit graph

31922 commits

Author SHA1 Message Date
Vinson Lee
ac610ab830 glsl: Remove unsigned greater than or equal zero comparison. 2010-03-04 01:35:28 -08:00
Vinson Lee
f9504e75f0 mesa: Fix unsigned comparison. 2010-03-04 01:24:44 -08:00
Vinson Lee
0dd40cc20a glsl: Remove unsigned greater than or equal zero comparison. 2010-03-04 01:10:44 -08:00
Vinson Lee
3c90777fd7 glsl: Return NULL on _slan_gen_asm error path on non-debug builds.
Exit the function early on the error path, instead of continuing, to
prevent a null pointer dereference later on.
2010-03-04 00:58:36 -08:00
Vinson Lee
df20c3943a glsl: Add assert to check input to strcmp. 2010-03-04 00:53:52 -08:00
Vinson Lee
df62b0da92 mesa: Add asserts to check inputs to memcpy. 2010-03-04 00:41:21 -08:00
Dave Airlie
25e439e69f r300: make blit code work on swtcl machines.
Only tested this on my rv530 with R300_NO_TCL=1, but it works there
at least. It would be nice to fix the tex_offset by chaning the vertex
program on tcl to read from offset 6 but this isn't really necessary.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-04 15:49:57 +10:00
Dave Airlie
c27fed58e4 r300_blit: initialise whole fp structure to 0
at least on the r500 we get a lockup unless I do this, the compiler
seems to fail to compile and we just get a null fp.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-04 15:11:42 +10:00
Vinson Lee
e5d0956ca4 Remove ffb and gamma from configs. 2010-03-03 19:03:45 -08:00
Vinson Lee
f4113012e0 wgl: Fix mingw32 build.
This was missed in commit fcf438e9e0.
2010-03-03 18:20:01 -08:00
Ian Romanick
6d9a9e57dc Fix unmatched parenthesis introduce by previous commits
I wasn't careful enough when removing support for GCC versions earlier
than 3.3.0.  I could have sworn that I compile tested before pushing,
but apparently not.  FAIL.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 17:50:11 -08:00
Ian Romanick
7d7e2198dd Note removal of pre-GCC 3.3.0 support in release notes. 2010-03-03 16:43:13 -08:00
Ian Romanick
f7dde2c131 Remove support for GCC older than 3.3.0 from generated sources
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00
Ian Romanick
6e8e4b918d Remove support for GCC older than 3.3.0 from generator scripts
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00
Ian Romanick
016fc30839 Remove support for GCC older than 3.3.0
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00
Ian Romanick
9aa3aa7138 Add version check for GCC
Mesa now requires GCC 3.3.0 or later.  See the following thread from
the mesa3d-dev mailing list for more details:

http://marc.info/?t=126748568900005&r=1&w=2

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00
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