summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2008-12-15Merge commit 'origin/gallium-0.1' into gallium-0.2Alan Hourihane
Conflicts: src/gallium/winsys/gdi/SConscript
2008-12-15Merge commit 'origin/master' into gallium-0.2Alan Hourihane
2008-12-14intel: Don't steal renderbuffer from caller in intel_miptree_create_for_regionPierre Willenbrock
Fixes double-frees of some regions, once from the renderbuffer code and once from the miptree itself. Bug #19062
2008-12-14i965: Add decode of index/vertex buffer and primitive emit.Eric Anholt
2008-12-14intel: Add batchbuffer assertions to hopefully catch future mistakes.Eric Anholt
2008-12-14Perform range checking on app supplied texture base levelIan Romanick
It is possible for applications to specify any texture base level, including trivially invalid values (i.e., 47000000). When an app specifies an invalide base level, we should gracefully disable the texture instead of accessing memory outside the gl_texture_object. This fixes an occasional segfault in one of our conformance tests.
2008-12-14GLX: Include glapi.h before glapitable.hIan Romanick
A previous commit (2dbc515a669be123a019aeb4aa5aae6b1679f6a9) change some of the interdependencies between these two header files. Now glapi.h must be included before glapitable.h.
2008-12-14GLX: Change resulting from previous commitIan Romanick
Commit db61cbfa2aa241da49589331d8b6875d9a77d826 made modifications to the protocol generator data and scripts. This commit represents the changes to the generated files resulting from the previous changes. This is the client-side part of the fix for bugzilla #11003.
2008-12-14Return 0 as the request size when the pixels parameter is NULLNeil Roberts
img_null_flag was being ignored when calculating the size of a request so a BadLength error gets thrown for glTexImage3D when the pixels parameter is NULL. See bug #11003
2008-12-14GLX: Fix protocol for glTexSubImage#DIan Romanick
The TexSubImage commands do not have the "NULL image" flag that was introduced with glTexImage3D. However, there is a CARD32 pad element where that flag would be. Removing the img_null_flag causes the flag to be removed from the protocol. This changes the protocol and breaks everything. In order to prevent needing to hand-code all of the TexSubImage functions, a new attribute was added to the param element. This new attribute, called "padding," is a boolean flag that selects whether or not the parameter is a real parameter (default / false) or is protocol padding (true) that does not appear in the function's parameter list. This change resulted in a number of changes to other Python scripts. In almost all cases parameters with the is_padding flag set should not be emitted. This patch only changes the the XML, the DTD, and the generator scripts. It does NOT include the resulting changes to the generated code. Generated code in the X server is also changed by the script / XML changes in this patch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2008-12-14Add OSMesa pkg-config fileDan Nicholson
This makes the GLU .pc file a little simpler, too.
2008-12-14Add more package metadata to the pkg-config filesDan Nicholson
The pkg-config files have been filled in more thoroughly to allow users to use mesa more effectively. By adding metadata to Requires.private, Libs.private and Cflags, we can ensure that all the libraries and headers will be found in all situations. However, the full substitutions are only done when using the configure script. This also fixes the glu pkg-config file to account for using GL or OSMesa. Fixes bug 18161.
2008-12-13i965: Finish OPCODE_NOISEn instructions.Gary Wong
Added missing OPCODE_NOISE4, and use BRW_REGISTER_TYPE_D (instead of _UD) in the initial RNDD instructions (which avoids saturating negative inputs to 0).
2008-12-13Nouveau: move the definition of log2i() to headerPekka Paalanen
Also make the type unsigned instead of signed, since negative values do not make sense. Signed-off-by: Pekka Paalanen <pq@iki.fi>
2008-12-12Merge commit 'origin/master' into gallium-0.2Alan Hourihane
2008-12-12mesa: move declarationAlan Hourihane
2008-12-12mesa: when we have interleaved arrays, check bounds for bothAlan Hourihane
VBO's and user space objects
2008-12-12gallium: fix refcount bug introduced in eb20e2984Keith Whitwell
2008-12-12Merge branch 'no-validate' into gallium-0.1Keith Whitwell
2008-12-12gallium: avoid mapping same vertex buffer in subsequent framesKeith Whitwell
Quite a few util modules were maintaining a single vertex buffer over multiple frames, and potentially reusing it in subsequent frames. Unfortunately that would force us into syncrhonous rendering as the buffer manager would be forced to wait for the previous rendering to complete prior to allowing the map. This resolves that issue, but requires the state tracker to issue a few new flush() calls at the end of each frame.
2008-12-12st: reduce unnecessary calls to pipe->set_vertex_buffers()Keith Whitwell
2008-12-12st: move feedback draw function to new fileKeith Whitwell
2008-12-12st: don't unilaterally ABS the argument to RSQKeith Whitwell
2008-12-12nouveau: remove useless NOUVEAU_BO_SWIZZLED flag, copy/paste nv40 work to ↵Patrice Mandin
swizzle textures
2008-12-12Revert "pipebuffer: Implement proper buffer validation."Keith Whitwell
This reverts commit a6d866f72c88d48d2bcfb3e3c882fdb639b5a8ce.
2008-12-12Revert "pipebuffer: Ondemand buffer manager."Keith Whitwell
This reverts commit 17849eafaacfbb2124d86f561a91b707317d3b31.
2008-12-12Revert "pipebuffer: Fix buffer overflow."Keith Whitwell
This reverts commit 55839ae064d64b7fcc180fcddb364bf31ab760dc.
2008-12-12glut: MinGW portability fixes.José Fonseca
Still, it doesn't run as well as the glut binaries...
2008-12-12gdi: Reimplement using the WGL statetracker.José Fonseca
2008-12-12mesa: Bring in new mesa sub-statetracker.José Fonseca
Some code cleanup is still in order.
2008-12-12gallium: fixes for srgb, new srgb formatsRoland Scheidegger
add some more srgb texture formats, including compressed ones various fixes relating to srgb formats issues: the util code for generating mipmaps will not handle srgb formats correctly (would need to use a linear->srgb conversion shader)
2008-12-12mesa: fixes for srgb, new srgb formatsRoland Scheidegger
add some more srgb texture formats, including compressed ones various fixes relating to srgb formats issues: _mesa_get_teximage is completely broken for srgb textures, both for non-compressed ones (swizzling) and compressed ones (shouldn't do standard-to-linear conversion) texelFetch function may be broken for little or big endian (or both...)
2008-12-12intel: check for null texture. (fix #13902)Xiang, Haihao
2008-12-11gallium: catch vertex overflow higher upAlan Hourihane
2008-12-11st: reduce unnecessary calls to pipe->set_vertex_buffers()Keith Whitwell
2008-12-11st: move feedback draw function to new fileKeith Whitwell
2008-12-11st: don't unilaterally ABS the argument to RSQKeith Whitwell
2008-12-11softpipe: Add missing header include.Michal Krol
2008-12-11draw: Silencium compiler warnings on Windows.Michal Krol
2008-12-11i915: fallback for cube map texture.Xiang, Haihao
The i915 (and related graphics cores) only support TEXCOORDMODE_CLAMP and TEXCOORDMODE_CUBE when using cube map texture coordinates, so fall back to software rendering for other modes to avoid potential gpu hang issue. This fixes scorched3d issue on 945GM(see bug 14539).
2008-12-10gallium: added missing brace to fix broken buildBrian Paul
2008-12-10Merge commit 'origin/gallium-0.1' into gallium-0.2Brian Paul
2008-12-10gallium: added draw_set_mrd() function to fix polygon offsetBrian Paul
The Minimum Resolvable Depth factor depends on the driver and can't just be computed from the number of Z buffer bits. Glean's polygon offset test now passes with softpipe. Still need to determine the MRD factor for other gallium drivers, if they use the draw module's polygon offset stage...
2008-12-10gallium: only mark back color buffer surfaces as undefined after swapbuffersBrian Paul
Marking all surfaces as undefined was wrong and cause some glean failures because glReadPixels was used after SwapBuffers.
2008-12-10gallium: restore default_depth_bits() call in xlib winsysBrian Paul
This was accidentally disabled in a long-ago commit.
2008-12-10gallium: change 65535 to UNDEFINED_VERTEX_IDAlan Hourihane
2008-12-10util: new funcs for triming/validating primitivesKeith Whitwell
2008-12-10draw: add const qualifiersKeith Whitwell
2008-12-10gallium: more vertex count checksAlan Hourihane
2008-12-10gallium: temporary check for > 65535 verticesAlan Hourihane