summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-03-10i915g: make set_framebuffer_state more robustDaniel Vetter
u_blitter is lazy and doesn't fully clear it's stack-allocated fb. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: implement hw clearDaniel Vetter
Benefits: - spares us a relocation. - needed for zone rendering (if that ever happens). - just awesome. v2: Rename the debug option. Completely disabling the blitter is required for Y tiling to work, so this option will cover other code paths in the future. v3: Implement suggestions by Jakob Bornecrantz. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: blitter handles overlapping blitsDaniel Vetter
No need to assert. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: enable separate depth/stencil clearsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: streamline derived state updates of the driver pipelineDaniel Vetter
Flushing the batch/hw backend doesn't invalidate the derived state. So kill the unnecessary function calls and add an assert in emit_hardware_state for paranoia. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10i915g: don't validate a NULL vboDaniel Vetter
With the new clear code this is possible (if the app call glClear before drawing the first primitive). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-10gallium/util: new polygon stipple utility helperBrian Paul
The polygon stipple fallback does not have to be implemented in the draw module (it doesn't need window coords, etc). Drivers can use this utility and avoid sw vertex fallbacks if pstipple is enabled. Note: this is WIP and not used by any driver yet.
2011-03-10glsl: silence warning in printf() with a castBrian Paul
2011-03-10glx: fix null pointer deref in __glXGenerateError()Brian Paul
The gc var would be NULL if called from line 238. Instead, get the opcode from __glXSetupForCommand(dpy) as done in other places. And remove the unused gc parameter. Fixes a bug reported by "John Doe" on 3/9/2011. NOTE: This is a candidate for the 7.10 branch.
2011-03-10gallium/svga: Only upload parts of vertexarrays that are actually usedThomas Hellstrom
Make sure we only upload parts of vertex arrays that are actually used by a draw command. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-03-10r600: don't close fd on failed loadDave Airlie
This fd gets passed in from outside, closing it causes the X.org server to crap out when the driver doesn't identify the chipset. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-09intel: Don't complain when getparam fails due to a missing param.Eric Anholt
This is an expected behavior when we're testing for the presence of new kernel features.
2011-03-09i965: Pack the tracked state atoms into separate arrays for prepare/emit.Chris Wilson
Improves performance of a hacked-up scissor-many (to reuse a small set of scissors instead of blowing out the cache, and then to run 100x more iterations so it actually took some time) by 3.6% +/- 1.2% (n=10)
2011-03-09nv50: add back initialization of redefine_user_bufferChristoph Bumiller
Got lost in f80c03e1875fe96ff2f4c022e3cb76357828140d.
2011-03-09r600g: remove some now unneeded code from r600_bc_vtx_buildChristian König
2011-03-09r600g: R700+ can do more than 8 tex and vtx clause in one CF instChristian König
Reviewed-by: Henri Verbeet <hverbeet@gmail.com>
2011-03-09r600g: split R600 and R700 CF generation for VTX and TEXChristian König
Reviewed-by: Henri Verbeet <hverbeet@gmail.com>
2011-03-09svga: Add a new winsys entry point to query the hw version.José Fonseca
2011-03-09util: Use PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE in pipe_buffer_write.José Fonseca
2011-03-09util: add ensure_sanity checks, fix a bugKeith Whitwell
Add ensure_sanity checks. Fix a bug which caused us to misplace entries adding to a full cache.
2011-03-09util: improve cache collision behaviourKeith Whitwell
Add linear probing on collisions. Expand entry array by a fixed scale (currently 2) to help avoid collisions. Use a LRU approach to ensure that the number of entries stored in the cache doesn't exceed the requested size.
2011-03-09util: Add remove to util_cacheAlex Corscadden
I need to be able to remove entries from util_cache caches. This change enables that functionality.
2011-03-09util: Allow util_draw_texquad to draw quads with non-integer coordinates.Alex Corscadden
2011-03-09wgl: Force framebuffer validation on glViewport.José Fonseca
2011-03-09gallium/svga: Don't replace user vertex buffer with uploaded copyThomas Hellstrom
Do that later on when we set up the hwtnl state instead. This addresses a problem when we drop the uploaded copy due to a vb size change, it will remain referenced in svga->curr.vb[], and the new contents of the vb will never be uploaded. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-03-08scons: Fix immediate Python exceptions with SCons on SunOS.Vinson Lee
The build still fails.
2011-03-08st/python: Add timeout parameter to fence_finish.Vinson Lee
This is a follow-up to commit b39bccbd4ed71e9585da4cf5acf7b887b2e90899. Fixes Linux SCons build.
2011-03-08r300g: handle timeout parameter in fence_finishMarek Olšák
2011-03-08gallium: add timeout parameter to fence_finishMarek Olšák
This is a follow-up to the ARB_sync patch for st/mesa and completes the ARB_sync implementation.
2011-03-08st/mesa: implement ARB_syncMarek Olšák
The ServerWaitSync implementation matches Intel's driver. The extension is advertised when pipe_screen::fence_finish is set.
2011-03-08r300g: add LATC supportMarek Olšák
2011-03-08st/mesa: cleanup checking for signed compressed formats in generate_mipmapsMarek Olšák
2011-03-08st/mesa: add LATC and 3DC supportMarek Olšák
softpipe passes all tests.
2011-03-08gallium/util: add LATC supportMarek Olšák
Again, a lot of code is shared with RGTC. The layout is UTIL_FORMAT_LAYOUT_RGTC, because LATC is just swizzled RGTC.
2011-03-08mesa: add ATI_texture_compression_3dcMarek Olšák
LUMINANCE_ALPHA_LATC2 = LUMINANCE_ALPHA_3DC, so this is easy. Note that there is no specification for 3DC, just a few white papers from ATI.
2011-03-08mesa: add EXT_texture_compression_latcMarek Olšák
The encoding/decoding algorithms are shared with RGTC. Thanks to some magic with the base format, the RGTC texstore functions work for LATC too. swrast passes the related piglit tests besides two things: - The alpha channel is wrong (it's always 1), however the incorrect alpha channel makes some other tests fail too, so I guess it's unrelated to LATC. - Signed LATC fetches aren't correct yet (signed values are clamped to [0,1]), however RGTC has the same problem. Further testing (with other of my patches) shows that hardware drivers and softpipe work. BTW, ETQW uses this extension.
2011-03-08st/mesa: Fix an incorrect user vertex buffer referenceThomas Hellstrom
st->user_vb[attr] was always pointing to the same user vb, regardless of the value of attr. Together with reverting the temporary workaround for bug 34378, and a fix in the svga driver, this fixes googleearth on svga. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-03-08vbo: mark vertex arrays as dirty when re-bindingMarek Olšák
This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=34378
2011-03-08r300/compiler: remove unused variablesMarek Olšák
2011-03-08glsl: Use insert_before for lists instead of open coding itIan Romanick
2011-03-08linker: Add imported functions to the linked IRIan Romanick
Fixes piglit test glsl-function-chain16 and bugzilla #34203. NOTE: This is a candidate for stable release branches.
2011-03-08glsl: Add several function / call related validationsIan Romanick
The signature list in a function must contain only ir_function_signature nodes. The target of an ir_call must be an ir_function_signature. These were added while trying to debug Mesa bugzilla #34203.
2011-03-08glsl: Function signatures cannot have NULL return typeIan Romanick
The return type can be void, and this is the case where a `_ret_val' variable should not be declared.
2011-03-08r600g: set start instance correctlyChristian König
2011-03-08swrast: flip the conditionals in shadow_compare4() for readabilityBrian Paul
2011-03-08swrast: add coord clamping, fix comparisons for shadow testingPhilip Taylor
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=31159 for swrast and piglit depth-tex-compare. NOTE: This is a candidate for the 7.10 branch. Signed-off-by: Brian Paul <brianp@vmware.com>
2011-03-08docs: added Depth format cube textures to GL3.txt listBrian Paul
2011-03-08r300g: decide whether a flush should be asynchronous when calling itMarek Olšák
Thread offloading is not sometimes desirable, e.g. when mapping a buffer.
2011-03-08r300g: use pipelined transfers for RGTC texturesMarek Olšák
2011-03-08r300/compiler: fix equal and notequal shadow compare functionsMarek Olšák