summaryrefslogtreecommitdiff
path: root/src/mesa/main/texstore.c
AgeCommit message (Collapse)Author
2010-10-23mesa: split up the image.c fileBrian Paul
New files: pack.c - image/row packing/unpacking functions pixeltransfer.c - pixel scale/bias/lookup functions
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-10-12mesa: reformatting, comments, code movementBrian Paul
2010-10-12mesa: remove assertion w/ undeclared variable texelBytesBrian Paul
2010-10-13mesa: improve texstore for 8/24 formats and add texstore for S8.Dave Airlie
this improves mesa texstore for 8/24 so it can create S24X8/X24S8 variants by keeping the depth bits static. it also adds a texstore for S8 so we can write out an S8 texture to use in the sampler for accel draw pixels to save memory bw. The logic seems sound here, I've worked it out a few times on paper, though it would be good to have some review. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-01ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formatsIan Romanick
2010-09-23mesa: Remove EXT_convolution.Eric Anholt
More optional code.
2010-07-30mesa: Remove unnecessary headers.Vinson Lee
2010-07-05mesa: initial support for unnormalized integer texture formatsBrian Paul
As defined by GL_EXT_texture_integer.
2010-05-09mesa: added unsigned 16-bit/channel tex formatBrian Paul
2010-05-09mesa: added texstore function for signed 16-bit formatsBrian Paul
2010-04-26mesa: start adding GL 3.1 signed normalized texture formatsBrian Paul
2010-02-19Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg
2010-02-19Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg
2010-02-19mesa: replace old MEMCPY macro with memcpyBrian Paul
2010-02-19Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-11main: Fix compiler warning. No need to convert/store depthScale as GLfloat ↵Karl Schultz
just to convert it back to GLuint to call unpack_depth_span. Also removes a difference between the 24/8 and 8/24 texstore routines.
2010-01-17mesa: Use preprocessor to comment out code.Vinson Lee
2009-12-02mesa: Fix bad conversion in AL1616_REV texstore.Eric Anholt
2009-11-17AL1616: Fix cut-and-paste bugIan Romanick
One of the PACK_COLOR_88 cases was left over from copying _mesa_texstore_al88 to _mesa_texstore_al1616.
2009-11-17Add MESA_FORMAT_XRGB8888_REV.Michel Dänzer
2009-11-16Move 'static' to start of declaration to silence compiler warningIan Romanick
2009-11-16AL1616: Add TexImage storage pathIan Romanick
2009-10-29mesa: fix _mesa_texstore_argb8888() for MESA_FORMAT_XRGB8888Brian Paul
If we hit the general path and call _mesa_make_temp_chan_image() we always want to get a GL_RGBA texture. We were getting a 3-channel GL_RGB texture before and that messed up the memory layout.
2009-10-29mesa: Add MESA_FORMAT_Z24_X8.José Fonseca
2009-10-29mesa: move declaration to prevent unused var warningBrian Paul
2009-10-29mesa: Fix compilation errors and warnings when features are disabled.Chia-I Wu
Some of the fixes are cherry-picked from opengl-es branch. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-29mesa/main: Never return NULL in _mesa_get_texstore_func.Chia-I Wu
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-28mesa: remove old, unused #defineBrian Paul
2009-10-28Merge branch 'texformat-rework'Brian Paul
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
2009-10-28Merge branch 'mesa_7_6_branch'Brian Paul
2009-10-28mesa: Fix memory leak if we run out of memoryVinson Lee
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-25mesa: choose texture format in core mesa, not driversBrian Paul
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.
2009-10-25mesa: begin removing _mesa_compressed_row_stride() callsBrian Paul
Use equivalent _mesa_format_row_stride() function instead.
2009-10-25mesa: simplify texture_row_stride() helperBrian Paul
2009-10-24mesa: minor clean-ups in _mesa_store_compressed_texsubimage2d()Brian Paul
2009-10-24mesa: remove hard-coded block sizesBrian Paul
2009-10-21mesa: added MESA_FORMAT_X8_Z24 formatBrian Paul
24-bit Z in 32-bit pixel. We could probably use the MESA_FORMAT_S8_Z24 format but this there's a few places where we explicitly don't want stencil. This format may go away at some point in the future.
2009-10-06mesa: added MESA_FORMAT_XRGB8888Brian Paul
2009-10-06mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffersBrian Paul
2009-10-05mesa: don't include texformat.hBrian Paul
2009-10-05mesa: lift _mesa_set_fetch_functions() calls out of driversBrian Paul
Call it from in the main Mesa glTexImage functions.
2009-10-01mesa: removed gl_texture_image::CompressedSize fieldBrian Paul
Just call ctx->Driver.CompressedTextureSize() when we need to get the compressed image size.
2009-10-01mesa: reformattingBrian Paul
2009-10-01mesa: move mesa_set_fetch_functions()Brian Paul
2009-10-01mesa: remove gl_texture_image::IsCompressed fieldBrian Paul
Use _mesa_is_format_compressed() instead.
2009-09-30mesa: remove MESA_FORMAT_RGBA4444Brian Paul
Not used by any hardware driver. ARGB4444 and ARGB4444_REV remain.
2009-09-30mesa: remove GLchan-based formats; use hw 8-bit/channel formats insteadBrian Paul
Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
2009-09-30mesa: move texel fetch/store into new texfetch.[ch] filesBrian Paul
2009-09-30mesa: replace gl_texture_format with gl_formatBrian Paul
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.