summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-03-08Import debian's mesa-7.7-4 release.debian-7.7-4Luc Verhaegen411-181688/+833
2010-02-24r600: update state count for CB_COLOR0_FRAG & CB_COLOR0_TILE relocsAlex Deucher1-1/+1
2010-02-24r6xx/r7xx: emit relocation for FRAG & TILE bufferJerome Glisse1-3/+21
FRAG & TILE buffer are unused but still they need to be associated with a valid relocation so that userspace can't try to abuse them to overwritte GART and then try to write anywhere in system memory.
2010-02-24radeon/r200: fix bad state emission causes kernel to do bad depth clearDave Airlie2-0/+4
The kernel lets you clear depth without getting a depth offset from userspace, mesa used to emit state before clear, but that got lost in the refactoring, which made the kernel bug show up. Fix mesa driver to emit the state properly now. cherry-pick + squash master commits. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-22vmware/xorg: Bump to match vmware driverJakob Bornecrantz1-3/+3
2010-02-22Revert "mesa/st: Make ST_SURFACE_DEPTH index consistent with mesa's ↵Jakob Bornecrantz2-2/+4
BUFFER_DEPTH." This reverts commit 9d17ad2891b58de9e33e943ff918a678c6a3c2bd. Fun stuff so fixing exposes another bug which I'm having trouble tracking down. So for now I'm just going to revert this untill I can fix the real bug. Sorry about this.
2010-02-22st/xorg: Make resize fail gracefullyJakob Bornecrantz1-14/+55
2010-02-22st/xorg: Obey max {width|height} from kernel and GalliumJakob Bornecrantz1-2/+23
2010-02-22svga: Upload user buffers only once.José Fonseca4-29/+46
2010-02-22svga: Fix the guest offset of piecewise buffer DMAs.José Fonseca3-7/+9
It was being erroneously set equal to the host offset, but it should be zero.
2010-02-22svga: Emit a scalar rcp in shadow maps.José Fonseca1-4/+4
Small improvement in Lightsmark 2008.
2010-02-22svga: Don't emit zero writemasks.José Fonseca2-28/+39
This fixes a regression with Lightsmark, where more compact TGSI from Mesa was causing a zero mask MOV to be emitted for shadow map compare, causing problems in some backends. Add a few more assertions to catch cases like this.
2010-02-22tgsi: Report an error when a destination has an empty writemask.José Fonseca1-0/+3
2010-02-22st/mesa: change viewport Z scale/bias for glBitmap/glDrawPixelsBrian Paul2-4/+10
This fixes incorrect Z position of glBitmap, glDraw/CopyPixels for the svga driver. Now we use 0.5, 0.5 as is typical for ordinary 3D rendering.
2010-02-21st/mesa: Add checks for ST_SURFACE_x vs MESA_BUFFER_xBrian Paul2-1/+9
The ST_SURFACE_x values should match the Mesa BUFFER_x values. Added some assertions to prevent future mix-ups.
2010-02-21st/xorg: Encapsulate all customizable stuff in a separate class.Thomas Hellstrom6-91/+121
This avoids exposing the ms driver structure to the winsys, and nicely encapsulates driver customizable stuff. In the future more things might be customizable by the winsys, like throttling, 3D readback etc. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-02-21mesa/st: Make ST_SURFACE_DEPTH index consistent with mesa's BUFFER_DEPTH.Thomas Hellstrom1-1/+1
Some st functions assume that they are identical.
2010-02-18softpipe: fix depth testing problemsBrian Paul1-36/+53
The optimized Z-test functions assumed that the array of incoming quads are adjacent, but that's not always true. The fragment shader can cull intermediate quads, for example. Now these Z-test functions can cope with non-adjacent quads. A little bit of performance is probably lost, but it's probably not worth worring about. This fixes broken glBitmap() Z testing, among other things.
2010-02-18svga: Upload the dirty ranges instead of the whole buffer.José Fonseca1-45/+48
2010-02-18svga: Break uploads of big buffers into smaller pieces.José Fonseca2-22/+147
Fixes crash in Homeworld2 which tries to create a 14MB buffer, because we now avoid creating GMR buffers larger than 8MB to ensure progress given we have only a 16MB pool.
2010-02-18svga: Note ranges even when there is no hardware buffer around.José Fonseca1-5/+2
Not having a hardware buffer around doesn't change the fact that the range is dirty and needs to be uploaded eventually.
2010-02-18svga: Further cleanup/comment svga buffer code.José Fonseca2-112/+142
Just cosmetic changes -- no behavior change.
2010-02-18svga: Temporarily create a sw vertex buf when failed to create a hw buf.José Fonseca1-7/+20
Many apps don't check the return of map buffer so it is better not to fail.
2010-02-18vmware/xorg: Export modinfo just as the other vmware X drivers doesJakob Bornecrantz1-3/+42
2010-02-18st/xorg: A bit more debugging infoJakob Bornecrantz1-0/+6
2010-02-18st/xorg: Make default of debugging fallbacks smartJakob Bornecrantz1-1/+1
Set it to the same as 2d acceleration
2010-02-18drm/vmware: Latest interface changes are backwards incopatibleJakob Bornecrantz1-1/+1
Since the execbuffer change actually changed size off the ioctl struct and not just a reuse of padded bits, we can't support old kernels as easily as the scanout change was.
2010-02-18swrast: fix left side clippingBrian Paul1-3/+36
Fixes bug 26623. Original patch was submitted by Mathias Frohlich and modified by Brian.
2010-02-17mesa: Take back some assertions.José Fonseca1-2/+0
It seems there are still some places where draw can happen with mapped buffers... Remove the assertions since there is not much more than can be done at this moment. This partially reverts commit af2023e31cde5ad2cf8ce740e20a98c4cbab37ce.
2010-02-16svga: Remove unused buffer download code.José Fonseca2-45/+0
Unnecessary now that we never destroy buffer storage.
2010-02-16pipebuffer: Don't synchronize when checking for buffer overflows.José Fonseca1-1/+3
To avoid masking synchronization issues in debug builds.
2010-02-16svga: Translate point_sprite rasterizer state.Michal Krol3-1/+3
2010-02-16mesa: Lock mutex around _mesa_HashLookup linked list chase.Mike Stroyan2-3/+6
Remove const qualifier from _mesa_HashLookup() table parameter to avoid LOCK/UNLOCK warnings in the function body. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-16mesa: Test for failed malloc in _mesa_HashInsert.Mike Stroyan1-4/+6
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-16vbo: Ensure vertices are always unmapped before the context is flushed.José Fonseca2-4/+6
Purpose is two fold: - when doing user-space memory management mapping a buffer stored in the graphics aperture effectively pins it there, increasing the likelyhood of failure of validating other buffers when flushing - certain hardware/platform combinations do not allow a buffer to be simultaneously mapped and validated This fixes assertion failures in HL Uplink with the svga driver, where vbo was holding a map to a buffer which was also referred in the command stream. Note: this a non-invasive fix and shouldn't be just cherry-picked into master as-is -- a cleaner fix for this problem should be searched.
2010-02-16slang: Fix handling of if/elif/else cases.Michal Krol1-4/+11
Once if/elif evalutes to true, all subsequent conditions are always false.
2010-02-15wgl: Be lenient when sharing contexts.José Fonseca1-2/+1
My first reading of MS docs was wrong. It says: All rendering contexts of a shared display list must use an identical pixel format. Otherwise the results depend on the implementation of OpenGL used. That is, it is OK to share contexts with different pixel formats. Adobe Premiere Pro tries to do that: share lists between a rgbx8 and a rgba8 pixel format.
2010-02-15vbo: fix broken glMultiDrawElements()Brian Paul1-4/+5
Seems to be a regression from commit 60b08eb1fdf287d28ec66b9282513ab35a61aee0.
2010-02-15st/xorg, vmware/xorg: Fix xnfcalloc arguments.Thomas Hellstrom2-2/+2
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-02-13softpipe: fix broken cubemap / mipmap selection codeBrian Paul1-28/+71
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.
2010-02-13mesa: Export GL_EXT_texture_cube_map.José Fonseca1-0/+1
Still used by some applications.
2010-02-13wgl: Implement wglSwapMultipleBuffers.José Fonseca4-2/+31
2010-02-13svga: Fix texture border color.José Fonseca1-9/+6
Also opposite ordering.
2010-02-12st/mesa: restore draw rasterization stage after rasterposBrian Paul1-0/+8
This fixes invalid calls to rastpos_point/line/tri() that can occur when glRasterPos() is called while in feedback or selection mode.
2010-02-12svga: A few more tweaks to blend color state emission.José Fonseca2-10/+8
2010-02-12svga: Clamp max cube texture levels to supported max 2d levels.José Fonseca1-1/+6
2010-02-12svga: Report the 2d/3d texture sizes supported by the host.José Fonseca2-5/+23
2010-02-12svga: emit blend colorRoland Scheidegger1-4/+17
2010-02-12st/dri: don't expose visuals we'll have trouble supportingZack Rusin1-9/+20
without getBuffersWithFormat some visuals will just cause headaches (crashes), so if we're running on an older system simply don't advertise them.
2010-02-12st/dri, st/xorg: fix buffers that have attachements of different depthZack Rusin2-31/+77
we actually need to specify the formats for different attachements, otherwise if the color buffer is 24bpp and the app asks for 16bpp depth buffer than we end up fetching the depth from the drawable which is 24bpp and end up creating the wrong depth buffer. use the new getBuffersWithFormat extension to pass the depth correctly.