aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: only call _mesa_update_state() when necessary in glGet functionsBrian Paul2010-03-262-544/+594
| | | | | | | | | | | Only a few state vars require state validation before querying them. This potentially speeds up state queries. Encode that info into the state tuple table. Also, use the new tuple field to indicate when FLUSH_CURRENT() must be called to validate other state vars. Based on a patch submitted by Robert Bragg on Feb 12, 2010.
* r300/compiler: Lower CMP for vertex programs.Corbin Simpson2010-03-261-0/+41
| | | | I think my maths is right?
* Merge branch '7.8'Brian Paul2010-03-254-16/+72
|\
| * glapi: return int = 0 from NoOpGeneric()Brian Paul2010-03-251-1/+2
| | | | | | | | | | | | If a GL function is called w/out a current rendering context, this stub gets called. It should return 0 so that non-void-valued functions return 0/NULL instead of a random number.
| * glslcompiler: Fix build.Vinson Lee2010-03-251-6/+2
| |
| * r300: report correct state atom sizeMaciej Cencora2010-03-241-2/+2
| | | | | | | | Spotted by Pauli Nieminen
| * r300: fix off by oneMaciej Cencora2010-03-241-1/+1
| | | | | | | | | | | | | | | | R300_PVS_MAX_CONST_ADDR field holds highest const addr, not const count. Fixes missing models and others rendering errors for vertex program using 256 params.
| * r300: fix vertex programs with big number of params (>255) under KMSMaciej Cencora2010-03-242-7/+39
| | | | | | | | UMS will probably require some kernel work
| * r300: fix wpos/fog handlingMaciej Cencora2010-03-241-6/+16
| | | | | | | | | | | | | | | | | | | | It may happen that the vertex attribute we were going to stuff the wpos/fog attrs in was already written by vertex program. In such cases we need to remove instruction accessing these attributes, so they don't overwrite the wpos/fog related instructions. This fixes non-textured models in many wine games.
| * r300: clean fog_attr/wpos_attr if code accessing these attributes has been ↵Maciej Cencora2010-03-241-0/+13
| | | | | | | | removed FP during compilation
| * i965: Stop abusing ctx->NewState flags for storing driver internal changes.Eric Anholt2010-03-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | We're still abusing the flags by putting them where our driver stores ctx->NewState changes. Making them into more restricted state change flags would be a project for later. Fixes a failure where calling intel_draw_buffer() too often would trip up Mesa assertions about when Mesa state could get changed, when it hadn't. Bug #27034.
| * mesa: set version string to 7.8-rc27.8-rc2Ian Romanick2010-03-221-1/+1
| |
| * intel: Call intel_prepare_render() before looking up regions.Kristian Høgsberg2010-03-223-6/+9
| | | | | | | | Fixes #27213.
* | drisw_util: add fields for gallium swrast_driGeorge Sapountzis2010-03-252-0/+16
| |
* | r100/r200/r300/r600: enable accel for Copy/DrawPixels without kmsAlex Deucher2010-03-244-16/+12
| | | | | | | | meta ops should work ok without kms.
* | i965: Handle the negate and abs swizzles on brw_wm_glsl.c immediate args.Eric Anholt2010-03-241-2/+12
| | | | | | | | | | Fixes piglit glsl-orangebook-ch06-bump, regressed with 4fc57322258a750c0a9cabc77372b5ccde1fa877
* | st/mesa: fix typo in prev commitBrian Paul2010-03-241-1/+1
| |
* | st/mesa: fix sampler_view destruction bug when texture is sharedBrian Paul2010-03-241-2/+10
| | | | | | | | | | | | | | | | | | | | | | Since texture's can be shared by many contexts, the texture's sampler view's context pointer might be invalid by time we delete the texture. Prevent crashes/etc by setting the sampler view's context to be the calling context before deleting it. This should be safe as long as all contexts which share the texture are using the same gallium driver. That's a reasonable assumption since pipe_texture objects aren't compatible between different drivers anyway.
* | st/mesa: code clean-ups, formatting fixes, comments, etcBrian Paul2010-03-241-16/+31
| |
* | st/mesa: rename st_clear() to st_Clear()Brian Paul2010-03-241-2/+2
| | | | | | | | To be consistent with other Mesa driver functions.
* | st/mesa: return GL_TRUE/GL_FALSE if return type is GLbooleanBrian Paul2010-03-241-15/+13
| | | | | | | | Just to be consistent.
* | swrast: improve depth texture mipmap selectionBrian Paul2010-03-231-11/+30
| | | | | | | | | | | | | | We still don't do proper min/mag filtering but this is better than just sampling the base mipmap level all the time. Fixes piglit depth-level-clamp test. Fixes fd.o bug 27256.
* | glslcompiler: added option to do linking of vert/frag shadersBrian Paul2010-03-231-12/+37
| |
* | dri: fix dri_test.c for non-TLS buildLuca Barbieri2010-03-231-2/+7
| | | | | | | | | | _glapi_Context and _glapi_Dispatch have different constness between TLS and non-TLS builds.
* | dri: add _glthread_GetID to dri_test.c dummy glapiLuca Barbieri2010-03-231-0/+6
| |
* | dri: make unresolved symbol test link work even without a libGL.soLuca Barbieri2010-03-232-1/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the test link uses -lGL to define the glapi symbols. This makes it impossible to build DRI drivers on systems without Mesa installed and without building the libGL from the Mesa tree first. Some automated build systems trigger this problem. This commit removes -lGL and instead adds a dummy implementation of glapi to dri_test.c This, along with Kristian's commit, should fix all known regressions due to the addition of unresolved symbol checking.
* | dri: Add $(DRI_LIB_DEPS) when linking the test binaryKristian Høgsberg2010-03-231-1/+1
| | | | | | | | This will make sure we pick up libdrm_$(chipset).so from the right place.
* | i965: Stop abusing ctx->NewState flags for storing driver internal changes.Eric Anholt2010-03-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | We're still abusing the flags by putting them where our driver stores ctx->NewState changes. Making them into more restricted state change flags would be a project for later. Fixes a failure where calling intel_draw_buffer() too often would trip up Mesa assertions about when Mesa state could get changed, when it hadn't. Bug #27034.
* | mesa: Also print _NEW_STENCIL in _mesa_print_state()Kristian Høgsberg2010-03-231-1/+2
| |
* | st/mesa: make st_manager.c set have[Stencil|Depth]Buffer only if bits > 0Luca Barbieri2010-03-231-3/+3
| | | | | | | | Fixes a segfault when clearing a non-existent stencil buffer.
* | dri: use mv -f instead of mv to ensure no prompting occursLuca Barbieri2010-03-231-1/+1
| | | | | | | | Using just mv may cause prompts on some systems/configurations.
* | dri: test whether the built drivers have unresolved symbolsLuca Barbieri2010-03-232-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a different approach to solving this problem that the patch I previously posted, and unlike that, should not cause any problems. Right now undefined symbols in DRI drivers will still allow the build to succeed. As a result, people modifying drivers they cannot test risk creating unloadable drivers with no easy way of automatically avoiding it. For instance, the modifications to nv50 for context transfers caused such an issue recently. Unfortunately, just adding -Wl,--no-undefined doesn't work, because the DRI drivers depend on glapi symbols, but do not depend on libGL.so.1 Adding -lGL is not the correct solution since DRI drivers are not loaded just by libGL, but also by X and possibly by other clients. So, this patch simply tries to build an executable linked to the DRI driver and to libGL. If the DRI driver contains any undefined symbols not satisfied by its dependencies or by libGL, this will fail. This solution does not alter the built drivers, and does not significantly slow down the build process. All classic DRI drivers as well as all the Gallium drivers with configure options compiled successfully with this change. Thanks to Xavier Chantry <[email protected]> and Michel Daenzer <[email protected]> for helping with this. Signed-off-by: Luca Barbieri <[email protected]> Acked-by: Brian Paul <[email protected]>
* | i965: Add disasm for SNB MATH opcode.Eric Anholt2010-03-221-1/+6
| |
* | i965: Enable normal clipping on SNB.Eric Anholt2010-03-221-1/+1
| | | | | | | | Rejecting all doesn't seem to be helping get the pipeline lit up.
* | i965: Force single program flow in SNB GS, to match gen4 GS.Eric Anholt2010-03-221-1/+2
| |
* | i965: Correct copy and wasted field shifts for SNB GS URB.Eric Anholt2010-03-221-2/+2
| |
* | i965: Enable VS on SNB.Eric Anholt2010-03-221-1/+2
| | | | | | | | | | | | | | It appears that the thing that was killing VS threads was the gratuitous NOP that replaced the gratuitous jump from OPCODE_END to the nearby OPCODE_END implementation. With that gone, we can move on to the rest of the pipeline.
* | i965: Remove gratuitous jump or nop from OPCODE_END to vertex emit.Eric Anholt2010-03-221-40/+3
| | | | | | | | | | | | Just emit the URB write at END time. Subroutine code that sits after OPCODE_END won't be executed since we've ended the thread at the point that the URB write is done.
* | i965: Ignore execution mask for the mov(m0, g0) of VS URB write header on SNB.Eric Anholt2010-03-221-0/+3
| | | | | | | | | | Otherwise, we may not get the FFTID set up which would break freeing of resources.
* | i965: Allow FS constants to be used as immediates instead of push/pull.Eric Anholt2010-03-223-7/+58
| | | | | | | | | | | | | | The hope is to later take advantage of the reduced constant usage to free up regs. This only covers the GLSL path at the moment, because the brw_wm_emit path doesn't get the information as to whether a float value is a constant or a uniform.
* | i965: Add INTEL_DEBUG=glsl_force to force brw_wm_glsl.c.Eric Anholt2010-03-223-0/+5
| | | | | | | | | | I keep finding the desire to force this path to debug it instead of cooking up goofy-looking testcases to do so.
* | i965: Optimize OPCODE_CMP by using BRW_SEL to choose results.Eric Anholt2010-03-221-5/+1
| | | | | | | | Tested with piglit glsl-fs-sqrt-branch, fp-cmp.vpfp.
* | st/mesa: rename st_framebuffer() to st_ws_framebuffer()Brian Paul2010-03-221-9/+12
| | | | | | | | Be clear that this function is not just a cast wrapper.
* | intel: Call intel_prepare_render() before looking up regions.Kristian Høgsberg2010-03-223-6/+9
| | | | | | | | Fixes #27213.
* | st/mesa: Remove unnecessary headers.Vinson Lee2010-03-222-3/+0
| |
* | glslcompiler: fix build againBrian Paul2010-03-221-7/+2
| | | | | | | | | | Simply use the libglapi.a archive instead of individual .o files. Fixes the non-debug build.
* | dri/nouveau: Rectangle texture fixes.Francisco Jerez2010-03-222-28/+46
| |
* | dri/nouveau: Some render to texture fixes.Francisco Jerez2010-03-221-5/+1
| |
* | dri/nouveau: Fix swrast fallbacks when the read and draw buffers aren't the ↵Francisco Jerez2010-03-221-10/+20
| | | | | | | | same.
* | dri/nouveau: Expose EXT_framebuffer_blit.Francisco Jerez2010-03-222-0/+2
| |