summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: implement BlitFramebuffer() for depth/stencil (incomplete)Brian Paul2009-08-051-29/+80
| | | | | | We now handle the case of blitting Z+stencil to/from combined Z/stencil surfaces. But Z-only or stencil-only and separate depth/stencil surfaces are not yet implemented.
* mesa: generate GL_INVALID_OPERATION for missing z/stencil when blittingBrian Paul2009-08-051-2/+6
| | | | | | If glBlitFramebuffer() is called with GL_DEPTH_BUFFER_BIT or GL_STENCIL_BUFFER_BIT and the src/dst depth/stencil buffers are absent, report an error.
* st/mesa: fix Y inversion and optimize st_BlitFramebuffer()Brian Paul2009-08-051-3/+25
| | | | | | | | | Need to check for Y inversion separately for src/dest buffers. If both the src and dest regions are upside down, make them right-side up for a better chance at a fast path. progs/tests/copypixrate -blit is much faster now.
* mesa: make _mesa_clip_blit() a shared functionBrian Paul2009-08-053-180/+187
|
* intel: Fix inverted test for disabling flushing of front buffer output.Brian Paul2009-08-041-1/+1
| | | | | | | | | | The comment disagreed with the code, and nicely drew my eyes to what was going wrong. Bug #21774 (blender) Bug #21788 (readpix) (cherry picked from master, commit fd65418f600874b05f902b622078b40bc1abb24a)
* intel: Wait on the last swapbuffers to complete before queuing a new one.Brian Paul2009-08-043-0/+28
| | | | | | | | | | | | | This fixes jerkiness in doom3 and other apps since the kernel change to throttle less absurdly, which led to a thundering herd of frames. Because this is a rather minimal fix, there is at least one downside: If the whole scene completes in one batchbuffer, we'll end up stalling the GPU. Thanks to Michel Dänzer for suggesting using glFlush to signal frame end instead of going to all the effort of adding a new DRI2 extension. (cherry picked from master, commit 0828579a658af01a64b5e699175dc9bbbedcd685)
* texenv: Use VP->Current, since _Current isn't updated at this point.Brian Paul2009-08-041-1/+1
| | | | (cherry picked from master, commit a9ba1bfeb3a2852c6eda718e73c46c972a286648)
* texenv: Match state.c in deciding whether we'll be using a vertex shader.Brian Paul2009-08-041-0/+1
| | | | (cherry picked from master, commit 40990d9dfb20b69585859b2a45596aa46c20140a)
* texenv: Add missing dependency on VP changes.Brian Paul2009-08-041-1/+2
| | | | | | | | | | Funny thing is I annotated this dependency in e5f63c403b767f9974e8eb5d412c012b8a69287f, but didn't actually use it. (cherry picked from master, commit 03187571b63d97e3d1406d329c5e760e16ef3181) Conflicts: src/mesa/main/state.c
* st/mesa: we don't support GL_NV_point_sprite (see comment)Brian Paul2009-08-031-1/+3
|
* mesa: move misplaced return statementBrian Paul2009-07-301-1/+1
| | | | Fixes regression from commit 7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878
* mesa: add missing return after catching program errorBrian Paul2009-07-301-0/+1
|
* mesa/st: short-circuit glFinish calls on WIN32 onlyKeith Whitwell2009-07-291-0/+12
| | | | | | | | | | Windows opengl32.dll calls glFinish prior to every swapbuffers, which makes it pretty hard to get decent performance... Work around by mapping finish to flush on PIPE_OS_WINDOWS. This is conformant, though it might confuse poorly-written benchmarks which attempt to measure a single event rather than figuring out the rate of continuous processing.
* mesa/st: recognize no-op scissor state when checking clear_with_quadsKeith Whitwell2009-07-291-4/+20
| | | | | Some apps enable scissor but set the rectangle to the dimensions of the window. Don't let this force us onto a slower clear path.
* intel: Fix leak of DRI option info due to using the wrong free routine.Brian Paul2009-07-271-1/+1
| | | | (cherry picked from commit 6d66f23c50ebe8f973757b6fd1b81c9b7920c447)
* intel: Clean up leak of driver context structure on context destroy.Brian Paul2009-07-271-0/+3
| | | | (cherry picked from commit ddef7dc87b2001fbe117ee5f24a0c645ee95a03c)
* st/mesa: silence warningBrian Paul2009-07-271-1/+2
|
* mesa: separate some finite/pragma Watcom stuffBrian Paul2009-07-271-3/+5
|
* intel: Use _mesa_warning() to report GEM warningsBrian Paul2009-07-271-3/+3
|
* windows: updated VC8 project filesKarl Schultz2009-07-271-1/+0
| | | | See bug 22882.
* mesa: bump version to 7.5.1Brian Paul2009-07-221-4/+4
|
* intel: Fall back on glBitmap with fog enabled.Eric Anholt2009-07-201-0/+6
| | | | | | | | We would have to build the program with the appropriate fog mode, and also supply the fog coordinate if appropriate. Bug #19413. (cherry picked from commit 8ae02a3919bf31bd33f86208472e100eedb58497)
* i965: Don't clip everything if FRONT_AND_BACK culling while culling disabled.Eric Anholt2009-07-201-1/+2
| | | | | | | Fixes everything-black with meta_clear_tris on quake4-mpdemo and doom3-demo. Bug #18844, 22077. (cherry picked from commit 81d555068408d4343d7627c8bedda5675f09bd21)
* radeon: With DRI1, if we have HW stencil, only expose fbconfigs with stencil.Michel Dänzer2009-07-201-2/+2
| | | | | | | | | | | | Otherwise simple apps like glxgears pick up a DirectColor visual since the X server mixes the depth 32 visual in with the other GLX visuals, and this seems to result in a (mostly) black screen due to a bad ColorMap for a lot of people. The bad ColorMap may be a bug in the apps, the X server or X driver, and regardless of that I think the X server should ideally make the depth 32 GLX visual separate from the rest again, but in the meantime this makes us cope. (depth_bits is either 16 or 24, never 0)
* mesa: set version to 7.5Brian Paul2009-07-171-1/+1
|
* mesa: Fix logbase2.José Fonseca2009-07-161-7/+5
| | | | It was providing 1 too many for non power two values.
* Fix state flag dependencies for fixed function fragment program updates.Brian Paul2009-07-152-1/+11
| | | | | | | I started looking into why _NEW_ARRAY punishes us, and while annotating dependencies noticed that a bunch of dependencies were missing. (cherry picked from master, commit e5f63c403b767f9974e8eb5d412c012b8a69287f)
* mesa: recognize and eliminate repeated error messagesKeith Whitwell2009-07-152-3/+38
|
* mesa: split out errorstring switch from _mesa_errorKeith Whitwell2009-07-151-36/+26
| | | | Move a chunk of code out of _mesa_error()
* mesa: remove dead code in _mesa_errorKeith Whitwell2009-07-151-6/+0
| | | | Remove early and unused snprintf and where[] string.
* mesa: don't call getenv every time _mesa_error is calledKeith Whitwell2009-07-151-11/+14
| | | | | | Buggy apps can generate thousands of mesa_error calls. Don't need to keep calling getenv to retreive the same MESA_DEBUG string each time.
* mesa: fix texture border color code for glPopAttrib()Brian Paul2009-07-141-7/+1
| | | | | The texture object's border color used to be stored as GLchan but it's been GLfloat for a while now.
* mesa: regenerated enums.c fileBrian Paul2009-07-141-5/+6
|
* mesa: Report the true face number when flushing.José Fonseca2009-07-141-3/+8
|
* r128: fix two-sided lighting segfault seen in GLUT's olight demoPeteri Andras2009-07-133-2/+7
|
* intel: Bump driver data, add RC3 tagintel_2009q2_rc3Ian Romanick2009-07-121-1/+1
|
* gallium: compare the actual register, not all the inputsZack Rusin2009-07-111-1/+1
| | | | otherwise we decrement indexes for all registers
* st/mesa: implement indirect addressing for destination registersBrian Paul2009-07-101-0/+5
|
* vbo: fix vbo/dlist memory leakBrian Paul2009-07-101-0/+5
| | | | Based on a patch by [email protected]
* mesa: From float type modifier from values to large for singlesIan Romanick2009-07-091-7/+7
| | | | | | | | | The values 2147483648.0 and 4294967294.0 are too larget to be stored in single precision floats. Forcing these to be singles causes bits to be lost, which results in errors in some pixel transfer tests. This fixes bug #22344. (cherry picked from commit 70e72070fce6aa1e0918dcc62c1949465cee69f7)
* glsl: do const parameter optimization for array element actual parametersBrian Paul2009-07-091-2/+3
| | | | | | | | | | When a function parameter is const-qualified we can avoid making a copy of the actual parameter (we basically do a search/replace when inlining). This is now done for array element params too, resulting in better code (fewer MOV instructions). We should allow some other types of function arguments here but let's be conservative for the moment.
* glsl: fix incorrect indexing for gl_TextureMatrix[i][j]Brian Paul2009-07-091-5/+6
| | | | | The two indexes were mixed up when accessing a row of a matrix in an array of matrices.
* mesa: only use fallback texture when using shaders, not fixed-function (take ↵Brian Paul2009-07-071-7/+13
| | | | | | | | | | | | | | two) The semantics are a little different for shaders vs. fixed-function when trying to use an incomplete texture. The fallback texture returning (0,0,0,1) should only be used with shaders. For fixed function, the texture unit is truly disabled/ignored. Fixes glean fbo test regression. (cherry picked from commit 01e16befd4809e3e93ee7855a4a5d7df9fe010d9) (cherry picked from commit 51325f44d1e7e62b47795a79f8038d10dc5bc30b) [anholt: squashed these two together from master, skipping the mess in between]
* gallium: fixup register indexes for fog/frontface/point coordZack Rusin2009-07-071-3/+12
|
* gallium: Fixes for clobbering stencil values in combined depth/stencil textures.Michel Dänzer2009-07-072-10/+37
| | | | | Also fix one case where a 32 bit depth value was incorrectly converted to a combined depth/stencil value.
* gallium: Only set FRONT_STATUS_COPY_OF_BACK if there is a back buffer.Michel Dänzer2009-07-071-1/+2
| | | | Fixes potential crash when SwapBuffers is called but there's no back buffer.
* gallium: more fog extraction fixesZack Rusin2009-07-063-25/+39
| | | | | fix the cases when fog coord/front face/point coord are used in the same shader.
* i965: fix fetching constants from constant buffer in glsl pathRoland Scheidegger2009-07-044-17/+16
| | | | | | | | | | | | the driver used to overwrite grf0 then use implicit move by send instruction to move contents of grf0 to mrf1. However, we must not overwrite grf0 since it's still used later for fb write. Instead, do the move directly do mrf1 (we could use implicit move from another grf reg to mrf1 but since we need a mov to encode the data anyway it doesn't seem to make sense). I think the dp_READ/WRITE_16 functions may suffer from the same issue. While here also remove unnecessary msg_reg_nr parameter from the dataport functions since always message register 1 is used.
* i965: Remove bad constant buffer constant-reg-already-loaded optimization.Eric Anholt2009-07-041-13/+11
| | | | | | | Thanks to branching, the state of c->current_const[i].index at the point of emitting constant loads for this instruction may not match the actual constant currently loaded in the reg at runtime. Fixes a regression in my GLSL program for idr's class since b58b3a786aa38dcc9d72144c2cc691151e46e3d5.
* intel: Also update stencil bits in intel_update_wrapper().Michel Dänzer2009-07-031-0/+1
| | | | | Fixes assertion failure when binding depth/stencil texture to FBO stencil attachment.