summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-10-29Require new DRI2 proto headers for buildingdri2-swapbuffersJesse Barnes1-1/+1
Runtime should still handle old/non-existent DRI2, but for builds we require the new headers.
2009-10-03DRI2: add OML_sync_control supportJesse Barnes11-185/+626
Add OML_sync_control support, along with a simple program for testing it.
2009-10-03Initialize pdp->validBuffersKristian Høgsberg1-0/+1
2009-10-03DRI2: add SwapBuffers supportJesse Barnes10-19/+106
2009-10-02mesa: optimized _mesa_meta_BlitFramebuffer() for src=texture caseBrian Paul1-0/+130
If the src renderbuffer is actually a texture, we can directly use that texture as the src and avoid a copy.
2009-10-02i965: Use a little stack space to avoid a malloc in wm_get_binding_table.Eric Anholt1-3/+1
2009-10-02mesa: Remove another unexplained Flush call, this time from BindFramebuffer.Eric Anholt1-3/+0
Combined with the previous fix, it takes cairo-gl firefox-talos-gfx time from 120 seconds to 90 seconds on my GM45.
2009-10-02Revert "Flush driver, not just tnl module."Eric Anholt1-26/+0
This reverts commit df058298e1570eea8712f9bb051f674fab2eaf24. It didn't explain why it was required, doesnt appear to be required, and is a significant performance penalty for cairo-gl firefox. Conflicts: src/mesa/main/fbobject.c
2009-10-02intel: Remove an unexplained flush from intelClearWithBlit.Eric Anholt1-2/+0
2009-10-02r600: remove support for host-based ibsAlex Deucher2-150/+80
no longer used now that the hw supports this natively. Also, clean up some formatting.
2009-10-02mesa/st: don't reuse vertex buffers for bitmap, clear quadsKeith Whitwell2-2/+24
Currently using max_slots > 1 will cause synchronous rendering if the driver flushes its command buffers between one bitmap and the next. Need to improve buffer_write to allow NO_WAIT (as well as no_flush) updates to buffers where we know there is no conflict with previous data.
2009-10-02st/xorg: Use PIPE_TRANSFER_MAP_DIRECTLY flag in EXA PrepareAccess hook.Michel Dänzer1-59/+34
Propagate NULL return value. This also allows removing the DRM_MODE_FEATURE_DIRTYFB specific pixmap management hacks.
2009-10-02gallium: Add PIPE_TRANSFER_MAP_DIRECTLY usage flag.Michel Dänzer1-1/+12
Asks the driver to map the texture storage directly or return NULL if that's not possible.
2009-10-02gallium: Preparations for adding more PIPE_TRANSFER_* usage flags.Michel Dänzer18-163/+63
Always test for PIPE_TRANSFER_READ/WRITE using the bit-wise and operator, and add a pipe_transfer_buffer_flags() helper for getting the buffer usage flags corresponding to them.
2009-10-02intel: wrap _mesa_meta_GenerateMipmap()Brian Paul1-0/+27
Need to check if we'll take the software path so which requires mapping the src texture image. Fixes crash in piglit gen-compressed-teximage, bug 24219. However, the test still does not pass (it may never have).
2009-10-02mesa: added _mesa_meta_check_generate_mipmap_fallback()Brian Paul2-3/+28
2009-10-01g3dvl: Formatting.Younes Manton1-175/+172
2009-10-01g3dvl: Delete state_trackers/g3dvl, other unused files.Younes Manton23-4778/+0
2009-10-01g3dvl: Copyright blocks.Younes Manton29-0/+783
2009-10-01st/xvmc: Set default CSC matrix to BT.601, no ProcAmp, full range RGB.Younes Manton1-0/+11
2009-10-01g3dvl: Color space conv interface & vl impl.Younes Manton8-113/+249
Interface is pipe_video_context::set_csc_matrix(). vl_csc.h defines some helpers to generate CSC matrices based on one of the color standard and a user defined ProcAmp (brightness, contrast, saturation, hue).
2009-10-01i915: Add stub ARB_occlusion_query support under a driconf debug option.Eric Anholt2-1/+10
This is useful for enabling our GLSL testcases using the 2.0 entrypoints even though we don't have full GL 2.0.
2009-10-01i915: Add optional support for ARB_fragment_shader under a driconf option.Eric Anholt4-3/+15
Other vendors have enabled ARB_fragment_shader as part of OpenGL 2.0 enablement even on hardware like the 915 with no dynamic branching or dFdx/dFdy support. But for now we'll leave it disabled because we don't do any flattening of ifs or loops, which is rather restrictive. This support is not complete, and may be unstable depending on your shaders. It passes 10/15 of the piglit glsl tests, but hangs on glean glsl1.
2009-10-01i915: Add support or fallbacks for GLSL fragment shader opcodes.Eric Anholt1-4/+158
2009-10-01i915: Add support for varying inputs.Eric Anholt2-2/+23
2009-10-01i915: Enable ARB_vertex_shader for both i915 and i830.Eric Anholt4-4/+45
Since the TNL is all done in software anyway, it should be the same to the user who's probably using ARB_vertex_program otherwise, but gives them a nicer programming environment.
2009-10-01i915: Increase maximum program size to the hardware limits.Eric Anholt2-7/+16
This fixes potential heap trashing if the program of choice exceeds limits, and fixes the native instructions limit being lower than what can be used by valid programs.
2009-10-01i915: Update and translate the fragment program along with state updates.Eric Anholt4-14/+26
Previously, we were doing it in the midst of the pipeline run, which gave an opportunity to enable/disable fallbacks, which is certainly the wrong time to be doing so. This manifested itself in a NULL dereference for PutRow after transitioning out of a fallback during a run_pipeline in glean glsl1.
2009-10-01Revert "i915: don't validate PS program when falling back to software"Eric Anholt1-2/+1
This reverts commit e7044d552c6d16389447880b8744a51de1cf0199. It prevented the driver from ever recovering from a software fallback due to a program error. The original bug it claimed to fix doesn't appear to exist post-revert.
2009-10-01i915: Bail when the fragment program has too many total instructions.Eric Anholt1-0/+10
Previously, we'd go trashing the heap.
2009-10-01i915: Let i915_program_error take a format string, and don't use _mesa_problem.Eric Anholt3-12/+24
It's misleading to report things like the program having too many native instructions as a Mesa implementation error, when the program may just be too big for the hardware.
2009-10-01Merge branch 'mesa_7_6_branch'Brian Paul14-102/+197
2009-10-01mesa: Return -FLT_MAX instead of 0 for LG2(0).Vinson Lee1-1/+1
lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0 for LG2(0).
2009-10-01objviewer: remove disabled codeBrian Paul1-3/+0
2009-10-01objviewer: mouse/keyboard info in README fileBrian Paul1-0/+8
2009-10-01docs: added objviewer to release notesBrian Paul1-0/+1
2009-10-01mesa: add objviewer to PROGRAM_DIRSBrian Paul1-1/+1
2009-10-01mesa: add progs/objviewer to tarball listBrian Paul1-0/+6
2009-10-01objview: clean up drawing VBO codeBrian Paul1-26/+1
2009-10-01objview: set skybox texture filterBrian Paul1-0/+4
2009-10-01objview: check GL version/extensionBrian Paul1-1/+29
2009-10-01progs/objviewer: Wavefront .obj file loader/viewer demoBrian Paul20-0/+764987
Adapted from code written by Nate Robins. See README.txt.
2009-10-01st/xorg: Check that ms->api->destroy is not NULL before calling it.Michel Dänzer1-1/+3
Fixes potential crash on X server shutdown.
2009-10-01util: Enable sockets on BSDRobert Noland3-5/+5
I think this should be safe for all of the BSDs. Signed-off-by: Robert Noland <rnoland@2hip.net> Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-01util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD.Robert Noland1-0/+13
Since the various BSDs use some different features here, define PIPE_OS_OPENBSD and PIPE_OS_NETBSD as well Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-01mesa: better debug messageBrian Paul1-1/+1
2009-10-01gallium: remove depth.occlusion_count flagKeith Whitwell6-11/+0
This was redundant as drivers can just keep track of whether they are inside a begin/end query pair. We want to add more query types later and also support nested queries, none of which map well onto a flag like this. No driver appeared to be using the flag.
2009-10-01st/mesa: fix non-mipmap lastLevel calculation.Cooper Yuan1-1/+5
reviewed by Brian Paul.
2009-09-30glx: fix glXQueryContext(GLX_RENDER_TYPE)Brian Paul1-0/+6
The renderType parameter to CreateContext() was never used. Also, it was often passed as zero. Now when it's zero we check if the context is RGBA or CI mode and set it accordingly. Fixes bug 24211.
2009-09-30i965: Fix massive memory allocation for streaming texture usage.Eric Anholt3-0/+66
Once we've freed a miptree, we won't see any more state cache requests that would hit the things that pointed at it until we've let the miptree get released back into the BO cache to be reused. By leaving those surface state and binding table pointers that pointed at it around, we would end up with up to (500 * texture size) in memory uselessly consumed by the state cache. Bug #20057 Bug #23530