summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
Commit message (Collapse)AuthorAgeFilesLines
* meta: Use the DrawBuffer's stencil sizeIan Romanick2010-03-051-1/+1
| | | | | | | | | Previously the code was erroneously using the stencil size of the context instead of the stencil size of the DrawBuffer. With FBOs these may be different. As a result, clearing the stencil buffer of an FBO bound to a context that doesn't have stencil would fail. Signed-off-by: Ian Romanick <[email protected]>
* i965: Only use the effective subset of the WM sampler key.Eric Anholt2010-03-051-4/+9
| | | | | | | | The whole structure is 836 bytes, but if only the first one or two samplers are used (as is common), the part that matters is only 56 or 108 bytes. By using just that subset as the key (since the key size is also part of the key), we improve firefox-talos-gfx performance by 1%.
* intel: Remove support for the DRI1 TFP extension.Eric Anholt2010-03-057-144/+39
|
* i965: Remove the paths for making a const surface object for a NULL BO.Eric Anholt2010-03-052-20/+13
|
* i965: Remove the unused SDC BO pointer from the sampler state key.Eric Anholt2010-03-051-1/+0
| | | | | Since it's a BO pointer, it already lives outside the key in brw->wm.sdc_bo[] which is used for sampler state lookup and setup.
* i965: Rename SNB brw_*_key structs to gen6_*_key structs.Eric Anholt2010-03-051-8/+8
|
* i965: Pack gen6 blend_state_key structure.Eric Anholt2010-03-051-2/+1
|
* intel: Only do batchbuffer debug if --enable-debug is used.Eric Anholt2010-03-051-0/+10
| | | | | | | | This saves 6.6KB on the 965 driver, and appears to speed firefox-talos-gfx up by 1-2%. Unlike many other asserts in the driver, when we make a mistake that would trigger one of these it generally shows up all the time for developers, so turning it off for release seems fine.
* intel: Replace batch macro contents with function calls.Eric Anholt2010-03-051-28/+39
| | | | This manages to cut down another 3800 bytes.
* intel: Move the assertions about reloc delta from the macros to the function.Eric Anholt2010-03-052-2/+4
| | | | Cuts another 1800 bytes from the driver.
* intel: Check that the batch is mapped per BEGIN, not each OUT.Eric Anholt2010-03-051-1/+1
| | | | Shaves 800 bytes off the driver.
* i965: Try to assign SNB SF inputs to outputs.Eric Anholt2010-03-051-2/+41
|
* i965: Fix the SNB SF input size.Eric Anholt2010-03-051-1/+1
|
* Merge branch 'object-purgeable'Chris Wilson2010-03-052-1/+136
|\ | | | | | | Acked-by: Brian Paul <[email protected]>
| * APPLE_object_purgeable: intelChris Wilson2010-03-052-1/+136
| | | | | | | | | | | | Implement support for purgeable objects by using the GEM madvise ioctl. Signed-off-by: Chris Wilson <[email protected]>
* | intel: Remove non-kernel-exec-fencing support.Eric Anholt2010-03-0419-638/+94
| | | | | | | | | | | | | | Shaves 60k off the driver from removing the broken spans code. This means we now require 2.6.29, which seems fair given that it's a year old and we've removed support for non-KMS already in the last release of 2D.
* | intel: Remove the unused s8 spans code. Not hit during no_rast piglit.Eric Anholt2010-03-041-59/+1
| | | | | | | | Shaves 5.5k off of the driver.
* | dri/nouveau: Remove some CI remnants.Francisco Jerez2010-03-046-12/+0
| |
* | dri/nouveau: Trivially add GL_ARB_texture_mirrored_repeat.Andrew Randrianasulu2010-03-041-0/+1
| | | | | | | | Signed-off-by: Francisco Jerez <[email protected]>
* | dri/nouveau: Enable GL_EXT_stencil_wrap.Andrew Randrianasulu2010-03-041-3/+4
| | | | | | | | Signed-off-by: Francisco Jerez <[email protected]>
* | dri/nouveau: Add GL_EXT_stencil_wrap for nv04.Andrew Randrianasulu2010-03-041-0/+4
| | | | | | | | Signed-off-by: Francisco Jerez <[email protected]>
* | dri/nouveau: Fix rb->DataType for z24s8 renderbuffers.Francisco Jerez2010-03-041-1/+1
| |
* | dri/nouveau: Try to keep client buffers smaller than the scratch VBO length.Francisco Jerez2010-03-041-0/+26
| |
* | dri/nouveau: Pack client arrays as they're copied to the real BO.Francisco Jerez2010-03-041-12/+32
| |
* | i915: Enable texture tiling by default.Eric Anholt2010-03-041-8/+3
| | | | | | | | | | | | | | | | | | This now passes piglit testcases, and shows performance improvements on openarena. Blit-heavy apps may see degradation, but the expectation is that the common case of 3D rendering will see significant wins. This regresses gen-teximage on my 855, and no piglit tests on my 945.
* | i915: Fix up i830 for tiled drawing offsets.Eric Anholt2010-03-042-10/+36
|/ | | | Corresponds to b87406e55f029d29594ae76a4b39a4fe1007fe4f.
* DRI: Put back missing break-statementIan Romanick2010-03-041-0/+1
| | | | | | | | The break in the __DRI_ATTRIB_RENDER_TYPE case was accidentally removed in commit 5cf2c5851bcd29c2d53bb04ab692b4b156f5a74d. This puts it back. Signed-off-by: Ian Romanick <[email protected]>
* r300: make blit code work on swtcl machines.Dave Airlie2010-03-041-5/+18
| | | | | | | | Only tested this on my rv530 with R300_NO_TCL=1, but it works there at least. It would be nice to fix the tex_offset by chaning the vertex program on tcl to read from offset 6 but this isn't really necessary. Signed-off-by: Dave Airlie <[email protected]>
* r300_blit: initialise whole fp structure to 0Dave Airlie2010-03-041-0/+1
| | | | | | | at least on the r500 we get a lockup unless I do this, the compiler seems to fail to compile and we just get a null fp. Signed-off-by: Dave Airlie <[email protected]>
* radeon/r200/r300/r600: add check_blit vtbl functionAlex Deucher2010-03-0314-15/+93
| | | | | | | | | Check if the native blit formats are supported, if not, attempt to use an alternate format. Skip 3, >4 bpp as per comments from mcencora on irc. Signed-off-by: Alex Deucher <[email protected]>
* Remove stray defines of HAVE_RGBAIan Romanick2010-03-0312-12/+0
| | | | | | | Now that color-index support is removed from t_dd_tritmp.h and t_dd_unfilled.h, drivers no longer need define HAVE_RGBA. Signed-off-by: Ian Romanick <[email protected]>
* mesa: Remove ClearIndex and IndexMask from device-driver interfaceIan Romanick2010-03-039-70/+0
| | | | | | | | These are used to inform the driver of the clear value for color-index buffers and to control write-masking of bits in color-index buffers. No driver use or need (not even Nouveau) these interfaces. Signed-off-by: Ian Romanick <[email protected]>
* mesa: Remove support for creating color-index visualsIan Romanick2010-03-037-18/+9
| | | | | | | | Remove the rgbMode and indexBits parameters from _mesa_create_visual and _mesa_initialize_visual. These values are now hardcoded to GL_TRUE and 0. Signed-off-by: Ian Romanick <[email protected]>
* DRI: Remove support for color-index visualsIan Romanick2010-03-031-10/+5
| | | | Signed-off-by: Ian Romanick <[email protected]>
* mesa/xlib: Remove support for color-index renderingIan Romanick2010-03-033-318/+153
| | | | Signed-off-by: Ian Romanick <[email protected]>
* osmesa: Remove support for color-index renderingIan Romanick2010-03-031-67/+11
| | | | Signed-off-by: Ian Romanick <[email protected]>
* fbdev: Remove support for color-index renderingIan Romanick2010-03-031-86/+36
| | | | Signed-off-by: Ian Romanick <[email protected]>
* DRI/swrast: Remove color-index support from DRI swrast driverIan Romanick2010-03-034-105/+27
| | | | | | | | | It appears that color-index rendering wasn't actually supported anyway. swrastFillInModes did not previously create an color-index configs, so it doesn't seem like there would be any way to get a color-index visual. Signed-off-by: Ian Romanick <[email protected]>
* i915: Use x,y drawing offsets instead of changing buffer offsets.Eric Anholt2010-03-033-12/+41
| | | | This should fix rendering into mipmaps of tiled textures.
* i915: Tell the kernel when we actually need fence registers on our BOs.Eric Anholt2010-03-034-12/+49
| | | | | | This improves tiled texture performance of OA on my 945 from 25.3fps to 29.0fps, whereas untiled is 28.2fps, by avoiding stalls for fence register changes.
* intel: Use drm_intel_bo_alloc_tiled for region allocs.Eric Anholt2010-03-031-28/+11
| | | | | | | This moves the logic for how to align pitches, heights, and sizes of objects to one central location. Fixes rendering with texture tiling on i915. Note that current libdrm is required for the change for I915_TILING_NONE pitch alignment.
* i915: Don't do the pitch expansion for tiled buffers.Eric Anholt2010-03-031-4/+4
| | | | | | | | The weirdness that led to the bumping of pitch for those 512/1024 pixels is that in taking a 2x2 subspan or bilinear filtering we'd end up hitting the same channel in 2 different pages, leading to lower performance. With tiling, that doesn't occur, so we don't need to waste the memory.
* intel: Use GTT mapping in the blit fallback path in case there's tiling.Eric Anholt2010-03-031-15/+14
|
* i965: Fix up Sandybridge VS sizing.Eric Anholt2010-03-031-3/+5
|
* r600: add new rs880 pci idAlex Deucher2010-03-032-0/+2
|
* intel: Set InternalFormat for renderbuffers created from an EGLImageKristian Høgsberg2010-03-031-0/+1
|
* radeon/r200/r300/r600: fix blit BO buffer validationDave Airlie2010-03-034-18/+32
| | | | | | | | | there is no need for these to be persistent since we flush the CS at the end of the blit, and we don't reuse these buffers at all. on my r600 the Wine DX9 test suite doesn't crash at least anymore. Signed-off-by: Dave Airlie <[email protected]>
* intel: passs correct context type to intel_prepare_render() callBrian Paul2010-03-021-1/+1
|
* i965: include macros.h to get CLAMP macroBrian Paul2010-03-021-0/+1
|
* r600: fix blender picking.Dave Airlie2010-03-021-3/+15
| | | | | | | | | | This fixes the sw fallback for GL_SELECT picking modes. Fixes object picking blender + depthpick test http://bugs.freedesktop.org/show_bug.cgi?id=26419 Signed-off-by: Dave Airlie <[email protected]>