aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
* intel: Call intel_prepare_render() before looking up regions.Kristian Høgsberg2010-03-223-6/+9
| | | | Fixes #27213.
* 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
|
* dri/nouveau: Plug in some mesa_meta functions instead of the swrast variants.Francisco Jerez2010-03-221-0/+3
|
* dri/nouveau: Emit dirty states on nouveau_validate_framebuffer.Francisco Jerez2010-03-221-1/+3
| | | | | Fixes broken intermediate frames when a window is being resized (regression caused by 878eef8c4).
* glslcompiler: fix build breakageBrian Paul2010-03-221-0/+1
|
* Merge branch '7.8'Brian Paul2010-03-226-35/+50
|\ | | | | | | | | | | | | Conflicts: src/gallium/drivers/cell/ppu/cell_screen.c src/mesa/state_tracker/st_cb_drawpixels.c
| * glslcompiler: fix build breakageBrian Paul2010-03-221-1/+2
| |
| * r200: Fix emit size prediction to account elt splitting.Pauli Nieminen2010-03-212-3/+4
| | | | | | | | | | Emit sizes prediction didn't account for render splitting in hwtnl path.
| * r200: Don't flush when closing elts in KMS.Pauli Nieminen2010-03-211-1/+2
| | | | | | | | | | | | | | Flush in middle of rendering in KMS is not allowed because buffers are discarded in flush. Fixes crash when emiting split indices with RADEON_DEBUG=all.
| * r200: Fix swtnl fallback to flush pending rendering before transition.Pauli Nieminen2010-03-211-4/+14
| | | | | | | | | | | | | | | | Flush after transition would emit wrong state that could cause wrong state emited for pending rendering operation. Fixes wan once from extrement tuxracer that is using per vertex materials.
| * r200: Fix mixed indetion in r200TclFallback.Pauli Nieminen2010-03-211-21/+20
| |
| * r300/compiler: fix assertion failure in the r500-fragprog emission pathMarek Olšák2010-03-201-3/+2
| |
| * drivers/x11: add PUBLIC qualifier to more API functionsBrian Paul2010-03-191-7/+8
| | | | | | | | Based on a patch from Tom Fogal.
| * intel: Use bit-wise not instead of logical not (i830 path)Ian Romanick2010-03-181-1/+1
| | | | | | | | | | | | | | | | The assertion is checking that the low-order bits of offset are not set. It does this by anding the inverted offset mask with the offset. This is clearly intended to be a bit-wise "invert". Fixes bug #25984.
| * intel: Correct value of S0_VB_OFFSET_MASK to match hardware docs.Ian Romanick2010-03-181-1/+3
| |
| * Use bit-wise not instead of logical not.Ian Romanick2010-03-181-1/+1
| | | | | | | | | | | | | | | | The assertion is checking that the low-order bits of offset are not set. It does this by anding the inverted offset mask with the offset. This is clearly intended to be a bit-wise "invert". Fixes bug #25984.
| * intel: Call _mesa_make_current() after getting initial buffersKristian Høgsberg2010-03-181-1/+1
| | | | | | | | | | | | | | | | | | The default viewport is the window rectangle, which is set up by _mesa_make_current(). To be able to do that we need to get the window dimension (and buffers) first, so we have to call intel_prepare_render() before we can call into _mesa_make_current(). Fixes #26676 and #26678.
* | rename dri_sw to drisw_util for consistencyGeorge Sapountzis2010-03-214-4/+4
| |
* | dri_inteface: add define for checking presence of drm.hGeorge Sapountzis2010-03-211-0/+2
| | | | | | | | | | | | | | __NOT_HAVE_DRM_H is a like a feature, defined by default on specific platforms and allows to be defined externally as well. __NOT_HAVE_DRM_H should only be used by xserver and mesa swrast_dri drivers
* | dri/nouveau: Reemit the light model state when lighting goes on/off.Francisco Jerez2010-03-211-0/+1
| |
* | dri/nouveau: Random cleanups.Francisco Jerez2010-03-219-109/+48
| |
* | r300/compiler: fix assertion failure in the r500-fragprog emission pathMarek Olšák2010-03-211-3/+2
| |
* | dri/nouveau: Flush after texture validation.Francisco Jerez2010-03-181-0/+2
| | | | | | | | | | | | | | Swizzling needs the destination surface in VRAM, but the subsequent rendering operations making use of it are likely to not care. Fire the ring after validation to leave the memory manager more room for maneuvering.
* | dri/nouveau: Avoid pushbuf flushes in the middle of LMA setup.Francisco Jerez2010-03-181-0/+1
| |
* | dri/nouveau: Implement texcoord generation.Francisco Jerez2010-03-1811-14/+143
| |
* | dri/nouveau: Implement texture matrices.Francisco Jerez2010-03-189-0/+78
| |
* | dri/nouveau: Some minor vertex submission fixes.Francisco Jerez2010-03-182-11/+11
| |
* | dri/nouveau: only reallocate texture when neededXavier Chantry2010-03-181-11/+14
| | | | | | | | | | | | | | | | | | | | | | nouveau reallocated the mipmap tree on every MIN_FILTER call to account for mipmap change. We only need to do this if the texture does not fit in the existing mipmap tree. This gives a big performance boost for a game like bzflag which changes MIN_FILTER all the time for its font rendering. Signed-off-by: Xavier Chantry <[email protected]> Signed-off-by: Francisco Jerez <[email protected]>
* | intel: Call _mesa_make_current() after getting initial buffersKristian Høgsberg2010-03-171-1/+1
| | | | | | | | | | | | | | | | | | The default viewport is the window rectangle, which is set up by _mesa_make_current(). To be able to do that we need to get the window dimension (and buffers) first, so we have to call intel_prepare_render() before we can call into _mesa_make_current(). Fixes #26676 and #26678.
* | intel: Replace mt->pitch with mt->region->pitch.Eric Anholt2010-03-1711-122/+47
| | | | | | | | | | | | The pitch is not really an inherent part of the miptree, since it's not part of any of the layout calculations, and it's dictated by the libdrm-allocated region pitch now.