aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'texformat-rework'Brian Paul2009-10-2886-1225/+2378
|\ | | | | | | | | | | | | | | | | | | | | | | 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
| * radeon: add case for MESA_FORMAT_X8_Z24 in radeon_create_renderbuffer()Brian Paul2009-10-271-1/+6
| |
| * mesa: choose texture format in core mesa, not driversBrian Paul2009-10-258-32/+6
| | | | | | | | | | | | 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-255-15/+15
| |
| * mesa: remove _mesa_compressed_texture_size()Brian Paul2009-10-241-1/+1
| | | | | | | | Use _mesa_format_image_size() instead.
| * mesa: change compressed texture size callsBrian Paul2009-10-244-31/+16
| | | | | | | | | | Replace calls to ctx->Driver.CompressedTextureSize with calls to _mesa_format_image_size. The former always called the later.
| * dri/drivers: update driNewRenderbuffer() to take a gl_formatBrian Paul2009-10-2220-145/+136
| | | | | | | | | | | | | | | | Now pass a specific MESA_FORMAT_x token to indicate the renderbuffer's format. This is better than passing a GLenum and having to guess the specific format. I'm unable to test all the drivers, but any issues should be easy to fix.
| * radeon: simplify radeon_create_renderbuffer()Brian Paul2009-10-223-29/+27
| |
| * r600: fix depth span macros for format changesAlex Deucher2009-10-221-4/+4
| |
| * radeon: fix some renderbuffer format bugsBrian Paul2009-10-222-7/+7
| |
| * i915: replace MESA_FORMAT_Z24_S8 with MESA_FORMAT_S8_Z24Brian Paul2009-10-211-2/+2
| | | | | | | | And change parameter type.
| * radeon: get rid of z24s8 <-> s8z24 conversions in span codeBrian Paul2009-10-211-26/+8
| | | | | | | | | | Can just use s8z24 everywhere. Note: the WRITE_DEPTH macro for R600 may need to be fixed.
| * radeon: replace MESA_FORMAT_Z24_S8 with MESA_FORMAT_S8_Z24Brian Paul2009-10-213-6/+6
| | | | | | | | | | Core Mesa deals with MESA_FORMAT_S8_Z24 everywhere it should so we shouldn't have to use MESA_FORMAT_Z24_S8 anymore.
| * intel: use MESA_FORMAT_S8_Z24 format and avoid z24s8/s8z24 conversionsBrian Paul2009-10-214-31/+19
| |
| * i965: change parameter type to gl_formatBrian Paul2009-10-211-1/+2
| |
| * dri/common: updated #includesBrian Paul2009-10-151-6/+2
| |
| * dri/common: use _mesa_little_endian() and update commentsBrian Paul2009-10-151-7/+5
| |
| * dri/common: fix broken _dri_texformat_* initializationsBrian Paul2009-10-151-4/+4
| |
| * radeon: initialize renderbuffer Format field in radeon_create_renderbuffer()Brian Paul2009-10-141-2/+9
| | | | | | | | Plus, use MESA_FORMAT_S8_Z24 everywhere.
| * mesa: remove a bunch of gl_renderbuffer fieldsBrian Paul2009-10-0816-259/+113
| | | | | | | | | | | | _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-0546-93/+36
| | | | | | | | And remove other unneeded #includes while we're at it.
| * mesa: lift _mesa_set_fetch_functions() calls out of driversBrian Paul2009-10-053-10/+0
| | | | | | | | Call it from in the main Mesa glTexImage functions.
| * mesa: removed gl_texture_image::CompressedSize fieldBrian Paul2009-10-014-29/+31
| | | | | | | | | | Just call ctx->Driver.CompressedTextureSize() when we need to get the compressed image size.
| * mesa: move mesa_set_fetch_functions()Brian Paul2009-10-013-0/+3
| |
| * radeon: fix tx_table[] entryBrian Paul2009-10-011-1/+1
| | | | | | | | XXX need to still verify that the table entries are in correct order.
| * savage: s/Xfree/_mesa_free/Brian Paul2009-10-011-1/+1
| |
| * mesa: remove gl_texture_image::IsCompressed fieldBrian Paul2009-10-0110-29/+27
| | | | | | | | Use _mesa_is_format_compressed() instead.
| * mesa: replace gl_texture_format with gl_formatBrian Paul2009-09-3042-439/+484
| | | | | | | | | | | | 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 _mesa_texstoreBrian Paul2009-09-281-14/+14
| |
| * drivers: use new _mesa_texstore() functionBrian Paul2009-09-285-106/+87
| |
| * drivers: use more mesa format functionsBrian Paul2009-09-276-22/+32
| |
| * mesa/drivers: use _mesa_get_format_bytes()Brian Paul2009-09-2714-49/+72
| |
| * mesa/drivers: use _mesa_get_format_bytes()Brian Paul2009-09-277-16/+15
| |
| * via: use mesa texture format helper functionsBrian Paul2009-09-271-10/+5
| |
| * mesa: use _mesa_get_texstore_func()Brian Paul2009-09-275-57/+87
| |
* | 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 <[email protected]>
* | | r600: add occlusion query supportAlex Deucher2009-10-284-10/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on initial patch from Stephan Schmid <[email protected]>. Basic idea is to dump the zpass count at the start and end of the query and subtract to get the total number of visible fragments. HW writes alternating qwords for up to 4 DBs. On the first pass, we start at buffer address + 0; on the second pass, we start at buffer address + 8 (bytes). The resulting buffer at the end of the query looks like: qw[0]: db0 start qw[1]: db0 end ... qw[6]: db3 start qw[7]: db3 end The MSB of each qword is the valid bit and the lower 63 bits are the zpass count for that DB. OQ on RV740 is disabled at the moment as it only seems to report results for half of its DBs. This needs further investigation. Signed-off-by: Alex Deucher <[email protected]>
* | | 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
| * | intel: Fix memory leak in event of mip tree allocation failureVinson Lee2009-10-281-1/+3
| | | | | | | | | | | | Signed-off-by: Brian Paul <[email protected]>
| * | intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).Eric Anholt2009-10-271-1/+1
| | | | | | | | | | | | | | | Bug #24435 (cherry picked from commit d56125a298106d81e10674f1c4b3b43b51a5139d)
| * | intel: added region draw_x/y offsets in x/y_tile_swizzle() funcsBrian Paul2009-10-271-0/+6
| | | | | | | | | | | | This fixes the second part of bug 23552.
| * | intel: fix src offset bug in do_copy_texsubimage()Brian Paul2009-10-271-1/+1
| | | | | | | | | | | | | | | | | | Use src->draw_offset intead of zero. Zero usually worked, except when the src renderbuffer is actually a texture mipmap level higher than zero. Fixes progs/test/blitfb.c test.
| * | i915: Fix driver for the miptree x/y offset changes.Eric Anholt2009-10-272-6/+20
| | | | | | | | | | | | Bug #24734.
| * | i965: be clear that the Fallback field is a boolean, not a bitfieldBrian Paul2009-10-273-4/+8
| | |
| * | Revert "i965: fix hacked Fallback usage in brw_prepare_vertices()"Brian Paul2009-10-272-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8810b8f67135185d1044746bb861fe2ff997626c. It turns out the i965 driver uses the intel->Fallback field as a boolean, not as a bitmask. The intelFallback() function is a no-op in the i965 driver. It would have been nice if there were some comments about this. I'll fix that next...
| * | intel: fix GL state bugs in intel_texture_bitmap()Brian Paul2009-10-261-4/+3
| | | | | | | | | | | | | | | | | | | | | Need to push texture state and polygon state too. Fixes rendering glitches seen in progs/demos/engine when changing the rendering mode (wireframe, texture modes). This makes bitmap rendering a little slower, unfortunately.
* | | intel: silence warningBrian Paul2009-10-271-0/+1
| | |
* | | via: silence unused var warningsBrian Paul2009-10-272-2/+2
| | |
* | | intel: minor clean-up, commentsBrian Paul2009-10-271-2/+3
| | |