path: root/src/mesa/drivers/dri/intel/intel_tex_format.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-04intel: Add a couple of helper functions to reduce rb code duplication.Eric Anholt1-0/+33
(cherry picked from commit e339b669a14f37698b842c0c51c1f5e4001ef12f)
2010-12-09intel: Use plain R8 and RG8 for COMPRESSED_RED and COMPRESSED_RG.Eric Anholt1-0/+2
Fixes texture-rg.
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg1-1/+1
2010-10-01i965: Enable GL_ARB_texture_rgIan Romanick1-0/+20
2010-07-29intel: Don't depend on context config values when picking texture formatsKristian Høgsberg1-24/+12
2010-06-04i915: Don't use XRGB8888 on 830 and 845.Eric Anholt1-2/+12
The support for XRGB8888 appeared in the 855 and 865, and this format is reserved on 830/845. This should fix a regression from b4a6169412819cc3a027c6a118f0537911145a30 that caused hangs in etracer on 845s. Bug #26557.
2010-06-04intel: Fix intel_compressed_num_bytes for FXT1 after I broke it.Eric Anholt1-1/+1
Fixes piglit fxt1-teximage since 7554b83a21bd62b20df5a7327b69f08108ac9ab6, and also OGLC tests that hit FXT1 with a million other things. Bug #28184.
2010-05-14intel: Handle arbitrary compressed formats in intel_compressed_num_bytes.Eric Anholt1-19/+8
Note that we don't support arbitrary block size for compressed quite yet -- block height of 4 is hard-coded all over the place. Bug #27098 (srgb dxt1 producing a bytes per pixel of 0).
2010-01-30intel: Remove unnecessary headers.Vinson Lee1-1/+0
2009-12-22intel: Replace IS_G4X() across the driver with context structure usage.Eric Anholt1-2/+2
Saves ~2KB of code.
2009-12-10intel: Make RGB textures use XRGB8888Ian Romanick1-4/+2
2009-11-16i965: Use MESA_FORMAT_AL1616 when appropriateIan Romanick1-3/+9
2009-10-29intel: update intel_create_renderbuffer(format), add XRGB supportBrian Paul1-0/+2
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.
2009-10-21intel: use MESA_FORMAT_S8_Z24 format and avoid z24s8/s8z24 conversionsBrian Paul1-1/+1
2009-10-08mesa: remove a bunch of gl_renderbuffer fieldsBrian Paul1-1/+1
_ActualFormat is replaced by Format (MESA_FORMAT_x). ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are all replaced by MESA_FORMAT_x queries.
2009-10-05drivers: don't include texformat.hBrian Paul1-1/+0
And remove other unneeded #includes while we're at it.
2009-09-30mesa: replace gl_texture_format with gl_formatBrian Paul1-36/+36
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.
2009-03-28i965: srgb texture fixesRoland Scheidegger1-5/+14
i965 can either do SRGBA8_REV format or SARGB8 format, but not SRGBA8. Could add SRGBA8_REV support to mesa, but simply use SARGB8 for now. While here, also add true srgb luminance / luminance_alpha support - unfortunately the published docs fail to mention which asics support this, tested on g43 so assume this works on any g4x.
2009-03-28i965: add support for signed rgba texture formatRoland Scheidegger1-0/+4
2009-03-12i965: add support for ATI_envmap_bumpmapRoland Scheidegger1-0/+4
2009-02-26intel: updated comment, some debug code (disabled)Brian Paul1-3/+12
2009-02-04intel: Fix fbo_firecube regression with FBconfigs change.Eric Anholt1-1/+1
By selecting a 4444 texture format due to a bad test, we hit the intel_update_wrapper error path, and despite the appearance of error handling in it and its callers, the desired behavior (software fallback) doesn't occur.
2009-01-14i965: asst. fixes, work-arounds for FBOs and render to textureBrian Paul1-2/+8
OpenGL allows mixing and matching depth and stencil renderbuffers in framebuffer objects while the hardware really only supports interleaved depth/stencil buffers. This makes for some tricky buffer management. An extra wrinkle is the situation where the user allocates a 16bpp depth texture or renderbuffer then tries to render to it along with a stencil buffer. We'd have to promote the 16bpp Z values to 24-bit Z values and mix in the stencil values to setup the depth/stencil renderbuffer. There's no support for that now, so always allocate 32bpp depth textures/ renderbuffers for now.
2008-09-18mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul1-2/+2
2008-09-04intel: Fix depth_stencil texture.Xiang, Haihao1-1/+1
2008-01-22[intel] Clean up references to screen buffer metrics.Kristian Høgsberg1-1/+1
The screen wide info such as pitch and cpp are obsoleted by the FBO changes, so clean up the last few references to those, except for setting up the legacy screen regions.
2007-12-12[965] Bug #13600: Fix assertion failure with SRGB textures.Eric Anholt1-0/+21
I broke this with cherry-pick resolving on 93c98a466947570e0589b662df49095b2f4bc43c.
2007-11-09[intel] Move over files that will be shared with 965-fbo work.Eric Anholt1-0/+172