summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_format.c
AgeCommit message (Collapse)Author
2010-01-14st/mesa: Remove unnecessary header from st_format.c.Vinson Lee
2009-12-29st/mesa: add PIPE_FORMAT_Z24S8_UNORM in st_get_format_info()Brian Paul
Fixes progs/demos/fbotexture on Nouveau. Patch submitted by Luca Barbieri <luca@luca-barbieri.com>.
2009-12-27st/mesa: add missing case for PIPE_FORMAT_B8G8R8A8_UNORMBrian Paul
2009-10-29mesa: Add MESA_FORMAT_Z24_X8.José Fonseca
2009-10-29st/mesa: fix PIPE_FORMAT_X8Z24 <> MESA_FORMAT_X8_Z24 conversionDavid Heidelberger
Signed-off-by: David Heidelberger <d.okias@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-29st/mesa: Add conversion from PIPE_FORMAT_X8Z24_UNORM to MESA_FORMAT_S8_Z24.David Heidelberger
Fix glxgears and openarena for Nouveau (no more asserts and crash). Signed-off-by: David Heidelberger <d.okias@gmail.com Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-29st/mesa: Fix nouveau glxinfo after merging texformat-rework.David Heidelberger
Signed-off-by: David Heidelberger <d.okias@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
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-08mesa: remove a bunch of gl_renderbuffer fieldsBrian Paul
_ActualFormat is replaced by Format (MESA_FORMAT_x). ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are all replaced by MESA_FORMAT_x queries.
2009-10-07st/mesa: pass pipe_screen, not pipe_context to st_choose_format() functionsBrian Paul
These don't depend on context state, but use a screen pointer.
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.
2009-07-30mesa st: Change the preferred internal format for some RGB formats.Thomas Hellstrom
For GL_RGB5, GL_RGB4 and GL_R3_G3_B2, prefer PIPE_FORMAT_R5G6B5_UNORM over PIPE_FORMAT_A1R5G5B5_UNORM, since hardware is more likely to support the previous format for rendering. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2009-06-11mesa: Use PIPE_TEXTURE_USAGE_DEPTH_STENCIL for any depth or stencil format.José Fonseca
2009-04-15st: st_equal_formats() function to compare gallium/GL pixel formatsBrian Paul
2008-12-12gallium: fixes for srgb, new srgb formatsRoland Scheidegger
add some more srgb texture formats, including compressed ones various fixes relating to srgb formats issues: the util code for generating mipmaps will not handle srgb formats correctly (would need to use a linear->srgb conversion shader)
2008-11-19add SRGB formatsAlan Hourihane
2008-08-18gallium: use PIPE_TEXTURE_USAGE_RENDER_TARGET for stencil renderbuffersBrian Paul
2008-08-07mesa: pf_sprint_name->pf_name.José Fonseca
2008-07-19gallium: Finer grained is_format_supported.José Fonseca
2008-07-04gallium: fix st_choose_format(internalFormat=GL_RGBA16)Brian Paul
Need to check if we're choosing a surface or texture format.
2008-06-13mesa: Remove duplicate code.Michal Krol
2008-06-12gallium: add some #if FEATURE_x testsBrian Paul
2008-06-08mesa: Add MESA_FORMAT_S8_Z24 texture formatJakob Bornecrantz
None of the fetch and store functions implemented. This atleast stops shadowtex from locking the GPU on i915 with the linux-dri-x86 target. It most of it looks okay, with the exception of actually displaying the texture.
2008-05-17s/PIPE_FORMAT_U_S8/PIPE_FORMAT_S8_UNORM/Brian Paul
2008-04-30gallium: use the newer PIPE_FORMAT_x_UNORM format namesBrian Paul
2008-04-28gallium: return enum pipe_format, not uint, for a few functionsBrian Paul
2008-04-16gallium: make choose_format() non-static: st_choose_format()Brian Paul
2008-04-07gallium: fix the texture case in default_deep_rgba_format()Brian Paul
Fixes glean pixelFormat test
2008-04-04gallium: state tracker fixes for compressed texturesRoland Scheidegger
2008-04-03gallium: test if PIPE_FORMAT_YCBCR[_REV] is supported and enable ↵Brian
GL_MESA_ycbcr_texture Update texture format selection code too.
2008-03-28gallium: re-work texture format selection codeBrian Paul
Use same code for choosing texture format and renderbuffer format.
2008-02-27gallium: move is_format_supported() to pipe_screen structBrian
2007-12-12Re-org of st_create_framebuffer() and renderbuffer format selection.Brian
st_create_framebuffer() now takes pipe_formats for the color, depth, stencil buffers. This avoids a round-about chain of calls to pipe->is_format_supported() for window renderbuffers (their format never changes). Renderbuffer format selection code in st_format.c is simpler now too.
2007-12-12Try PIPE_FORMAT_R5G6B5_UNORM for GL_RGB5 request.Brian
2007-12-11softpipe: Support for PIPE_FORMAT_A4R4G4B4_UNORM and PIPE_FORMAT_R5G6B5_UNORM.Michel Dänzer
The packedpixels test runs with the xlib winsys, though not all cases look correct yet.
2007-12-10Add 'type' parameter to is_format_supported() to specify texture vs. drawing ↵Brian
surface, etc. Additional types may be added in the future.
2007-12-07Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.Brian
This makes debugging a _lot_ easier. In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
2007-12-07Replace "duplicate" formatsBrian
2007-12-07Add PIPE_FORMAT_U_B8_G8_R8_A8 in default_rgba_format().Brian
Also, rewrite/simplify default_rgba_format() and default_depth_format().
2007-12-06st_mesa_format_to_pipe_format: Handle MESA_FORMAT_ARGB4444.Michel Dänzer
2007-11-24Cleanup PIPE_FORMAT names.Michal Krol
Add a function that builds a display name of a given format token.
2007-11-20initial support for PIPE_FORMAT_Z24_S8Brian
2007-11-06init luminance/intensity_bits to zero in st_get_format_info()Brian
2007-11-06Convert format bitfields to shifts and masks.Michel Dänzer
The memory layout of bitfields depends on the ABI.
2007-10-29remove dead codeBrian
2007-10-29check for signed vs. unsigned in st_get_format_info() - fixes accum buffer ↵Brian
failure
2007-10-28Replace supported_formats with is_format_supported interface.Michal Krol
The old supported_formats interface returned a list of formats supported by a pipe/winsys implementation. This was reasonable when gallium had a fixed list of predefined format. Now things has changed and the definition of PIPE_FORMAT is more flexible. The new shiny is_format_supported interface gets PIPE_FORMAT as an argument and returns a boolean whether this particular format is supported.
2007-10-27Use PIPE_FORMAT in state tracker.michal
Fix PIPE_FORMAT field encoding. Re-implement st_get_format_info.
2007-10-27Refactor supported format queries.michal
2007-10-27Remove PIPE_FORMAT_COUNT references.michal