summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
Commit message (Collapse)AuthorAgeFilesLines
* intel: Remove some dead context structure fields.Eric Anholt2009-11-131-2/+0
|
* i965: Remove an unused cache_item field.Eric Anholt2009-11-131-1/+1
|
* i965: Use bo_map instead of subdata to upload the bits of constant buffer.Eric Anholt2009-11-131-0/+21
| | | | Saves CPU time, resulting in a 2.5% FPS win on ETQW.
* intel: When subdataing a busy buffer, use a temporary and blit in.Eric Anholt2009-11-131-3/+16
| | | | | | This cuts a massive number of waits in ET:QW, which uses a VBO ringbuffer. Unfortunately it doesn't BufferData when wrapping back to 0, so we can't be clever with tracking what's been initialized.
* intel: Don't check for context pointer to be NULL during extension initIan Romanick2009-11-121-7/+6
| | | | | | | | | | Thanks to Chia-I Wu's changes to the extension function infrastructure, we no longer have to tell the loader which extensions the driver might enable. This means that intelInitExtensions will never be called with a NULL context pointer. Remove all the NULL checks. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
* intel: Remove unused enable_imaging parameter to intelInitExtensionsIan Romanick2009-11-123-6/+4
|
* intel: better front color buffer test in intelClear()Brian Paul2009-11-061-2/+3
|
* intel: Finish removing the fallback code for bug #16697.Eric Anholt2009-11-061-6/+2
| | | | I fixed it properly as of 7216679c1998b49ff5b08e6b43f8d5779415bf54.
* intel: Don't validate in a texture image used as a render target.Eric Anholt2009-11-063-11/+15
| | | | | Otherwise, we could lose track of rendering to that image, which could easily happen during mipmap generation.
* intel: Clean up some extra struct indirection in finalize.Eric Anholt2009-11-061-2/+1
|
* intel: Use _mesa_get_current_tex_object() to clean up TFP path.Eric Anholt2009-11-061-4/+4
|
* intel: Remove duplicated arguments from intel_miptree_match_image().Eric Anholt2009-11-063-10/+7
|
* intel: Remove obsolete comment about GEM in the spans code.Eric Anholt2009-11-061-1/+0
|
* intel: Use PIPE_CONTROL on gen4 hardware for doing pipeline flushing.Eric Anholt2009-11-063-13/+35
| | | | | | This should do all the things that MI_FLUSH did, but it can be pipelined so that further rendering isn't blocked on the flush completion unless necessary.
* Make a convenient int for what chipset generation we're on.Eric Anholt2009-11-065-9/+20
| | | | | | gen2/3/4 are easier to say than "8xx, 915-945/g33/pineview, 965/g45/misc", and compares on generation are often easier than stringing together a bunch of chipset checks.
* intel: call intel_check_front_buffer_rendering() in intelClear()Brian Paul2009-11-061-0/+3
| | | | fixes bug 24953.
* Fix YTILE spantmp functionsAlan Hourihane2009-11-041-2/+2
|
* intel: avoid unnecessary front buffer flushing/updatingBrian Paul2009-11-033-2/+23
| | | | | | | | | | | Before, if we just called glXMakeCurrent() and didn't render anything we'd still trigger a flushFrontBuffer() call. Now only set the intel->front_buffer_dirty field at state validation time just before we draw something. NOTE: additional calls to intel_check_front_buffer_rendering() might be needed if I missed some rendering paths.
* intel: Use GTT mapping when available for swrast.Eric Anholt2009-10-303-1/+88
| | | | | | | This improves piglit quick.tests runtime from 19:33 minutes to 6:06 on my GM45. It should also hide most of the A17 swizzling issues, though they'll still exist when swapping occurs (which is the kernel's problem either way).
* intel: Fix up z24_x8 depth spans since the texformat merge.Eric Anholt2009-10-301-12/+6
|
* intel: Set the texture format in the TFP path.Eric Anholt2009-10-301-3/+6
| | | | | | | | | | | | This fixes a regression in piglit's tfp test as of 11caea687e3f10ae12d33e44edf84635f73047dd. Additionally, set the texture format for the RGB textures to MESA_FORMAT_XRGB8888 and support it in the hw paths so that hopefully sw fallbacks involving TFP get better alpha behavior. The radeon drivers appear to need the same fix. Bug #24803
* intel: fix up some XRGB breakageBrian Paul2009-10-303-3/+6
| | | | | We weren't choosing the right XRGB span functions for reading the framebuffer. XRGB formats still aren't turned on yet though.
* intel: update intel_create_renderbuffer(format), add XRGB supportBrian Paul2009-10-297-36/+44
| | | | | | | | Pass a gl_format to intel_create_renderbuffer() instead of GLenum. Add cases for MESA_FORMAT_XRGB8888 textures and renderbuffers. However, we don't yet create any renderbuffers or textures with that format. It seems the default alpha value is zero instead of one. Need to investigate that first.
* intel: remove memcpy_get_tex_image() codeBrian Paul2009-10-291-103/+2
| | | | | This has been lifted into core Mesa where it can be used for all drivers that use the _mesa_get_teximage() fallback for ctx->Driver.GetTexImage().
* i915: Implement min/max LOD clamping with the hardware.Eric Anholt2009-10-292-23/+38
| | | | | | | This gets us expected behavior for clamping between mipmap levels, and avoids relayout of textures for doing clamping. Fixes piglit lodclamp-between.
* intel: check for single memcpy() in memcpy_get_tex_image()Brian Paul2009-10-291-5/+10
|
* intel: Don't bother MI_FLUSHing on glFlush in the DRI2 case.Eric Anholt2009-10-291-1/+1
| | | | | | We only need it when drawing to the front buffer, which we never do for DRI2. No significant performance difference, but the flush is definitely gone from the end of every batchbuffer.
* intel: Clean up merge leftover from the DRI2 swap throttling.Eric Anholt2009-10-291-5/+0
|
* intel: remove debug codeBrian Paul2009-10-291-1/+0
|
* intel: added fast memcpy path for glGetTexImage()Brian Paul2009-10-291-3/+102
|
* Merge branch 'texformat-rework'Brian Paul2009-10-2812-245/+163
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/radeon/radeon_fbo.c src/mesa/drivers/dri/s3v/s3v_tex.c src/mesa/drivers/dri/s3v/s3v_xmesa.c src/mesa/drivers/dri/trident/trident_context.c src/mesa/main/debug.c src/mesa/main/mipmap.c src/mesa/main/texformat.c src/mesa/main/texgetimage.c
| * mesa: choose texture format in core mesa, not driversBrian Paul2009-10-251-6/+0
| | | | | | | | | | | | Call the ctx->Driver.ChooseTextureFormat() function from core Mesa's _mesa_[Copy]TexImage functions instead of in the driver functions. One less thing for drivers to do.
| * mesa: remove calls to _mesa_compressed_row_stride()Brian Paul2009-10-252-2/+2
| |
| * mesa: change compressed texture size callsBrian Paul2009-10-241-5/+4
| | | | | | | | | | Replace calls to ctx->Driver.CompressedTextureSize with calls to _mesa_format_image_size. The former always called the later.
| * intel: use MESA_FORMAT_S8_Z24 format and avoid z24s8/s8z24 conversionsBrian Paul2009-10-214-31/+19
| |
| * mesa: remove a bunch of gl_renderbuffer fieldsBrian Paul2009-10-085-107/+37
| | | | | | | | | | | | _ActualFormat is replaced by Format (MESA_FORMAT_x). ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are all replaced by MESA_FORMAT_x queries.
| * drivers: don't include texformat.hBrian Paul2009-10-055-5/+0
| | | | | | | | And remove other unneeded #includes while we're at it.
| * mesa: lift _mesa_set_fetch_functions() calls out of driversBrian Paul2009-10-051-4/+0
| | | | | | | | Call it from in the main Mesa glTexImage functions.
| * mesa: removed gl_texture_image::CompressedSize fieldBrian Paul2009-10-011-6/+7
| | | | | | | | | | Just call ctx->Driver.CompressedTextureSize() when we need to get the compressed image size.
| * mesa: move mesa_set_fetch_functions()Brian Paul2009-10-011-0/+1
| |
| * mesa: remove gl_texture_image::IsCompressed fieldBrian Paul2009-10-014-9/+10
| | | | | | | | Use _mesa_is_format_compressed() instead.
| * mesa: replace gl_texture_format with gl_formatBrian Paul2009-09-3010-85/+84
| | | | | | | | | | | | Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum. ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x. gl_texture_format will go away next.
| * drivers: use new _mesa_texstore() functionBrian Paul2009-09-282-25/+24
| |
| * drivers: use more mesa format functionsBrian Paul2009-09-272-9/+11
| |
| * mesa/drivers: use _mesa_get_format_bytes()Brian Paul2009-09-273-4/+11
| |
| * mesa/drivers: use _mesa_get_format_bytes()Brian Paul2009-09-272-4/+3
| |
| * mesa: use _mesa_get_texstore_func()Brian Paul2009-09-272-16/+23
| |
* | Merge branch 'mesa_7_6_branch'Brian Paul2009-10-281-0/+1
|\ \
| * | intel: Fix memory leak in case of renderbuffer bad formatVinson Lee2009-10-281-0/+1
| | | | | | | | | | | | Signed-off-by: Brian Paul <brianp@vmware.com>
* | | Merge branch 'mesa_7_6_branch'Brian Paul2009-10-282-1/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | Conflicts: src/mesa/shader/lex.yy.c src/mesa/shader/program_lexer.l