Commit graph

31094 commits

Author SHA1 Message Date
José Fonseca
04cc5055db python: Pass p_format.h as-is to swig now that it has no inlines. 2010-02-14 11:26:58 +00:00
José Fonseca
50812e633f progs/gallium/python: New home for python statetracker scripts. 2010-02-14 11:16:41 +00:00
Vinson Lee
0a3e362175 glut: Silence uninitialized variable warning. 2010-02-14 02:04:17 -08:00
Vinson Lee
3a299071d4 r300: Silence uninitialized variable warning. 2010-02-14 00:56:57 -08:00
Vinson Lee
4f131356cc r600: Silence uninitialized variable warning. 2010-02-14 00:45:23 -08:00
Vinson Lee
ec5e54a40a glu/sgi: Initialize members of class Curvelist. 2010-02-13 23:56:48 -08:00
Vinson Lee
1462c1299c llvmpipe: Silence uninitialized variable warning. 2010-02-13 23:48:40 -08:00
Vinson Lee
71e750f482 softpipe: Silence uninitialized variable warnings. 2010-02-13 22:51:34 -08:00
Marek Olšák
260ec80f11 st/python: fix build error after gallium-screen-context merge 2010-02-14 03:20:09 +01:00
Marek Olšák
804a6d6a68 r300g: fix scons build 2010-02-14 03:20:01 +01:00
Brian Paul
85425b3b60 softpipe: fix broken cubemap / mipmap selection code
This is a quick-fix for the time being...

The per-face mipmap LOD computation was invalid at cube edges.  In
mip_filter_nearest/linear() we were trying to compute LOD using
texcoords that were sometimes indexes into different cube faces.
The subtraction used to compute the partial derivatives basically
gave random values, so the LOD was unpredictable.  This fix simply
uses the same cube face for all four pixels in the quad.  The per-
face texcoords all reference the same cube face so the partial
deriviates are computed properly.

A more elaborate fix would involve computing the LOD at the same
time as we choose the cube faces.  But for now, this solution works
well and allows the piglit/cubemap test to pass.

(cherry picked from commit 1ff9cd5079)
2010-02-13 17:47:23 -07:00
Karl Schultz
b30898f4ab mesa: Fix compiler warnings
Add explicit casts, fix constant types, fix variable types.
Fixes about 340 warnings in MSFT Visual Studio.
2010-02-13 17:34:04 -07:00
Brian Paul
5fd2b46a20 docs: document GL_ARB_fragment_coord_conventions 2010-02-13 14:06:25 -07:00
Brian Paul
31ed663a43 mesa: enable GL_ARB_fragment_coord_conventions for sw drivers
This extension is now implemented in the GLSL compiler so it can be
enabled by other drivers where applicable.
2010-02-13 14:03:02 -07:00
Brian Paul
c2c4935cb8 glsl: implement layout qualifiers
For GL_ARB_fragment_coord_conventions.

This only applies to gl_FragCoord and controls pixel center origin and
pixel center integer.  For example:

layout (origin_upper_left, pixel_center_integer) varying vec4 gl_FragCoord;

This features introduces the idea of re-declaring variables with a changed
type.  This may also apply to arrays in some cases but that's not
implemented at this time.
2010-02-13 13:57:33 -07:00
Brian Paul
26661ac0e1 glsl: added type layout field and new type compare func
Note: because of a weird dependency checking bug, a 'make clean' may be
needed before recompiling.
2010-02-13 13:52:39 -07:00
Brian Paul
b947b1d433 mesa: copy frag coord layout fields too 2010-02-13 13:51:38 -07:00
Brian Paul
46f788c2e5 glsl/cl: implement parsing for layout qualifiers
For GL_ARB_fragment_coord_conventions support.
2010-02-13 13:50:45 -07:00
Brian Paul
3b53b7e8b0 glsl/pp: fix incorrect extension enable flag for warn mode 2010-02-13 13:48:32 -07:00
José Fonseca
744994a9c6 mesa: Export GL_EXT_texture_cube_map.
Still used by some applications.
2010-02-13 15:44:37 +00:00
José Fonseca
a583c3ab47 wgl: Implement wglSwapMultipleBuffers. 2010-02-13 15:43:49 +00:00
José Fonseca
6b1193820f svga: Fix texture border color.
Also opposite ordering.
2010-02-13 15:43:33 +00:00
Marek Olšák
43b4d2a048 r300g: do not invalidate texture caches when only sampler state is changed 2010-02-13 15:44:43 +01:00
Marek Olšák
8eb4cd5b82 r300g: cleanup the emission of RS block state
Emit as few regs as possible.
2010-02-13 15:44:43 +01:00
Marek Olšák
67049b59fd r300g: cleanup the emission of framebuffer state
Some emits are not needed anymore.
2010-02-13 15:44:43 +01:00
Marek Olšák
8e2f9f4009 r300g: disable independent blend enables
Not supported by r300.
2010-02-13 15:44:43 +01:00
Marek Olšák
75910e96dc r300g: emit INDEPENDENT_COLORFORMAT_ENABLE only on r5xx 2010-02-13 15:44:42 +01:00
Vinson Lee
bf1096a778 mesa: s/abort/sys.exit/
Python does not have the function abort.
2010-02-13 00:05:29 -08:00
Vinson Lee
672f98baf7 mesa: Remove unnecessary header. 2010-02-12 23:47:45 -08:00
Vinson Lee
1213eb6cb4 i965: Remove unnecessary headers. 2010-02-12 23:37:36 -08:00
Vinson Lee
4123df2074 st/xlib: Remove unnecessary header. 2010-02-12 23:24:22 -08:00
Vinson Lee
fcd8ffe8e1 dri: Remove unnecessary headers. 2010-02-12 23:18:08 -08:00
Vinson Lee
e7a53c78ae mesa: Remove unnecessary headers. 2010-02-12 23:04:20 -08:00
Vinson Lee
f618641631 svga: Silence uninitialized variable warning. 2010-02-12 22:33:37 -08:00
Corbin Simpson
6a07a1738c util: Properly init memory for blitter CSOs.
Fixes misrender on r300g.
2010-02-12 20:48:46 -08:00
Brian Paul
282dafcdc7 st/mesa: restore draw rasterization stage after rasterpos
This fixes invalid calls to rastpos_point/line/tri() that can occur
when glRasterPos() is called while in feedback or selection mode.

(cherry picked from commit b3c7dc6ff2)
2010-02-12 17:22:10 -07:00
José Fonseca
a4865e82ef scons: Undo bad merge from cherry-pick. 2010-02-12 23:52:18 +00:00
José Fonseca
cd5d760889 svga: A few more tweaks to blend color state emission. 2010-02-12 23:48:22 +00:00
José Fonseca
6af833add2 svga: Clamp max cube texture levels to supported max 2d levels. 2010-02-12 23:46:58 +00:00
José Fonseca
2bb4d75f28 svga: Report the 2d/3d texture sizes supported by the host. 2010-02-12 23:46:55 +00:00
José Fonseca
a80d988144 wgl: Go into dormant state when DLL is unloaded unclealy.
When our DLL is unloaded, even if we leave the data structures in memory
for sake of future calls, the MS CRT will destroy the heap. Instead we
make all calls no-ops by setting stw_dev to NULL.
2010-02-12 23:38:19 +00:00
José Fonseca
57617c8eba scons: Target Windows7. 2010-02-12 23:38:19 +00:00
Brian Paul
ff37205f93 st/mesa: improved draw_range_elements code
Don't use pipe->draw_range_elements() if min_index=max_index=~0 since
that doesn't provide any useful info.

Also, implement the loop around pipe->draw_range_elements() when
nr_prims > 1.
2010-02-12 15:42:12 -07:00
Brian Paul
b9b4e7724e st/mesa: rename state -> tgsi, updated comments 2010-02-12 15:42:10 -07:00
Brian Paul
cd0a32924d st/mesa: remove unused var 2010-02-12 15:42:10 -07:00
Vinson Lee
4be324386c intel: Remove unused variable. 2010-02-12 14:37:07 -08:00
Brian Paul
2d6f5dd62b cell: fix-up C, CPP flags
Flags like -Wmissing-prototypes don't apply to g++.
2010-02-12 15:25:12 -07:00
Brian Paul
3798cc8157 cell: implement PIPE_CAP_MAX_COMBINED_SAMPLERS query 2010-02-12 15:24:24 -07:00
Brian Paul
8a61690e84 cell: remove -mcpu=cell from CFLAGS
This reverts part of commit ebe2f76095
and allows things to build here.
2010-02-12 15:16:44 -07:00
Kristian Høgsberg
2f517b8e5a intel: Avoid dri_bo_flink() in intel_update_renderbuffers()
Now that we track the global name in struct intel_region, we can just
look it up there.
2010-02-12 16:30:39 -05:00