summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_format.h
AgeCommit message (Collapse)Author
2010-04-08gallium: Add a couple more of D3D9 formats forgotten earlier.José Fonseca
2010-04-08gallium: Add missing D3D9 color formats.José Fonseca
2010-03-29gallium: fix bogus depth/stencil format names (and channel descriptions)Roland Scheidegger
only the depth part is normalized, stencil part isn't.
2010-03-29gallium: add new texture formatsRoland Scheidegger
These are needed for DX10 and/or OGL3.3. This just adds the formats nothing handles them yet. PIPE_FORMAT_R1_UNORM can't be used currently as it requires special filter. Need to reclassify compressed formats at some point.
2010-03-18Add format B5G5R5X1Alan Hourihane
2010-03-03gallium: Remove PIPE_FORMAT_R8G8B8X8_SNORM.José Fonseca
2010-03-01gallium: Standardize on the LSB->MSB notation.José Fonseca
Less confusing, and seems to gather more consensus. Below are the sed commands used. This and following commits are the result of applying this too to the whole tree, plus manual whitespaces fixes. s/\<PIPE_FORMAT_A8R8G8B8_UNORM\>/ASDGFSJKDGSDFGSJDFGREKT/g s/\<PIPE_FORMAT_B8G8R8A8_UNORM\>/PIPE_FORMAT_A8R8G8B8_UNORM/g s/\<ASDGFSJKDGSDFGSJDFGREKT\>/PIPE_FORMAT_B8G8R8A8_UNORM/g s/\<PIPE_FORMAT_X8R8G8B8_UNORM\>/ASDGFSJKDGSDFGSJDFGREKT/g s/\<PIPE_FORMAT_B8G8R8X8_UNORM\>/PIPE_FORMAT_X8R8G8B8_UNORM/g s/\<ASDGFSJKDGSDFGSJDFGREKT\>/PIPE_FORMAT_B8G8R8X8_UNORM/g s/\<PIPE_FORMAT_R8G8B8A8_UNORM_REV\>/PIPE_FORMAT_A8B8G8R8_UNORM/g s/\<PIPE_FORMAT_R8G8B8X8_UNORM\>/PIPE_FORMAT_X8B8G8R8_UNORM/g s/\<PIPE_FORMAT_A1R5G5B5_UNORM\>/PIPE_FORMAT_B5G5R5A1_UNORM/g s/\<PIPE_FORMAT_A4R4G4B4_UNORM\>/PIPE_FORMAT_B4G4R4A4_UNORM/g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PE_FORMAT_Z24S8_UNORM/g s/\<PIPE_FORMAT_X8Z24_UNORM\>/ASDGFSJKDGSDFGSJDFGREKT/g s/\<PIPE_FORMAT_Z24X8_UNORM\>/PIPE_FORMAT_X8Z24_UNORM/g s/\<ASDGFSJKDGSDFGSJDFGREKT\>/PIPE_FORMAT_Z24X8_UNORM/g s/\<PIPE_FORMAT_YCBCR\>/PIPE_FORMAT_UYVY/g s/\<PIPE_FORMAT_YCBCR_REV\>/PIPE_FORMAT_YUYV/g
2010-03-01gallium: Remove PIPE_FORMAT_A8B8G8R8_SNORM.José Fonseca
Its actually an alias for PIPE_FORMAT_R8G8B8A8_SNORM.
2010-03-01gallium: Introduce a new format to disambiguate PIPE_FORMAT_R8G8B8A8_UNORM.José Fonseca
PIPE_FORMAT_R8G8B8A8_UNORM now means just R8 G8 B8 A8 PIPE_FORMAT_R8G8B8A8_UNORM_REV means A8 B8 G8 R8 And the thumb rule is vertex buffers refer to PIPE_FORMAT_R8G8B8A8_UNORM, while textures refer to PIPE_FORMAT_R8G8B8A8_UNORM_REV. PIPE_FORMAT_R8G8B8A8_UNORM_REV is just a temporary name.
2010-03-01gallium: Remove inexisting formats.José Fonseca
Can't find these formats used in any state tracker or any API. For some of these probably the reverse notation was meant, for which formats already exist.
2010-02-14gallium: Remove previously forgotten pf_name() prototype.José Fonseca
2010-02-01gallium: Remove unnecessary includes. Add others to compensate.José Fonseca
2009-12-17Move the remaining format pf_get_* functions to u_format.h.Michal Krol
Previously they depended on format blocks, but after removing those they started depending on format encoding.
2009-12-17Merge branch 'master' into pipe-format-simplifyMichal Krol
Conflicts: src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/auxiliary/draw/draw_pipe_pstipple.c src/gallium/auxiliary/util/u_blit.c src/gallium/auxiliary/util/u_gen_mipmap.c src/gallium/auxiliary/util/u_surface.c src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c src/gallium/drivers/cell/ppu/cell_texture.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/r300/r300_emit.c src/gallium/drivers/r300/r300_texture.c src/gallium/drivers/softpipe/sp_texture.c src/gallium/drivers/softpipe/sp_tile_cache.c src/gallium/drivers/svga/svga_state_vs.c src/gallium/include/pipe/p_format.h src/gallium/state_trackers/dri/dri_drawable.c src/gallium/state_trackers/egl/egl_surface.c src/gallium/state_trackers/python/p_device.i src/gallium/state_trackers/python/st_softpipe_winsys.c src/gallium/state_trackers/vega/api_filters.c src/gallium/state_trackers/vega/image.c src/gallium/state_trackers/vega/mask.c src/gallium/state_trackers/vega/paint.c src/gallium/state_trackers/vega/renderer.c src/gallium/state_trackers/vega/vg_tracker.c src/gallium/state_trackers/xorg/xorg_crtc.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/state_trackers/xorg/xorg_exa.c src/gallium/state_trackers/xorg/xorg_renderer.c src/gallium/state_trackers/xorg/xorg_xv.c src/gallium/state_trackers/xorg/xvmc/surface.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_buffer.c src/gallium/winsys/egl_xlib/sw_winsys.c src/gallium/winsys/g3dvl/xlib/xsp_winsys.c src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c src/gallium/winsys/gdi/gdi_softpipe_winsys.c src/gallium/winsys/xlib/xlib_cell.c src/gallium/winsys/xlib/xlib_llvmpipe.c src/gallium/winsys/xlib/xlib_softpipe.c src/mesa/state_tracker/st_cb_fbo.c src/mesa/state_tracker/st_cb_texture.c src/mesa/state_tracker/st_texture.c
2009-12-08gallium: Make pipe_format a sequential enum.Michal Krol
2009-12-08Remove remaining pipe format utility functions.Michal Krol
Depricate pf_type(), pf_size_*(), pf_layout() and pf_exp2(). Map depricated PIPE_FORMAT_TYPE to new UTIL_FORMAT_ values: UNKNOWN = TYPE_VOID UNORM = TYPE_UNSIGNED + LAYOUT_ARITH SNORM = TYPE_SIGNED + LAYOUT_ARITH FIXED = TYPE_FIXED FLOAT = TYPE_FLOAT USCALED = TYPE_UNSIGNED + LAYOUT_ARRAY SSCALED = TYPE_SIGNED + LAYOUT_ARRAY SRGB = TYPE_COLORSPACE_SRGB
2009-12-03Remove pf_swizzle_* internal macros.Michal Krol
2009-12-03gallium: Remove pf_mixed_*().Michal Krol
2009-12-03gallium: Remove pf_rev().Michal Krol
2009-12-03Move pf_get_component_bits() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_get_bits/size() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_get_block() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_is_depth_and_stencil() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_is_depth_stencil() to u_format auxiliary module.Michal Krol
2009-12-03Move pf_is_compressed() to u_format auxiliary module.Michal Krol
2009-12-03gallium: Remove unused format functions.Michal Krol
2009-11-30gallium: interface cleanups, remove nblocksx/y from pipe_texture and moreRoland Scheidegger
This patch removes nblocksx, nblocksy arrays from pipe_texture (can be recalculated if needed). Furthermore, pipe_format_block struct is gone completely (again, contains just derived state). nblocksx, nblocksy, block are also removed from pipe_transfer, together with the format enum (can be obtained from the texture associated with the transfer).
2009-09-27g3dvl: pipe_video_context interface, softpipe impl, auxiliary libsYounes Manton
2009-06-15gallium: Fix segfault and valgrind error introduced with commit ↵Thomas Hellstrom
3f2e006b759705abd7c409d30f9aeb1f2a75b83f Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-11gallium: New pf_is_depth_and_stencil / pf_is_depth_or_stencil inlines.José Fonseca
2009-06-10gallium: Shorthand functions for computing stride and sizes for a rect.José Fonseca
2009-03-31gallium: Move pf_is_depth_stencil to p_format.h.José Fonseca
2009-02-18util: Move p_debug.h into util module.José Fonseca
The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
2008-12-15gallium: Fix PIPE_FORMAT_X8B8G8R8_SNORM definition.Michal Krol
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-09-05gallium: New pf_has_alpha utility function.José Fonseca
2008-08-09gallium: Invert include order.José Fonseca
2008-08-07gallium: Simplify format->name conversion.José Fonseca
2008-07-18gallium: Add a pf_is_ycbcr utility function.José Fonseca
2008-07-16gallium: Add pf_is_compressed utility function.José Fonseca
2008-06-27gallium: Drop pipe_texture->cpp and pipe_surface->cpp.José Fonseca
The chars-per-pixel concept falls apart with compressed and yuv images, where more than one pixel are coded in a single data block.
2008-06-26gallium: Describe pixel block.José Fonseca
Chars-per-pixel paradigm is not enough to represent compressed and yuv pixel formats.
2008-06-23gallium: added support for fixed-point formats, drawingBrian Paul
2008-06-18gallium: Remove PIPE_FORMAT_A8UB8UG8SR8S_NORM definition.Michal Krol
2008-06-17gallium: Add facilities for mixed pipe formats.Michal Krol
2008-06-13gallium: Fix PIPE_FORMAT_A2B10G10R10_UNORM definition.Michal Krol
Whoops!
2008-06-13gallium: Add PIPE_FORMAT_A2B10G10R10_UNORM.Michal Krol
2008-06-13gallium: Allow pipe format component sizes to be specifiedMichal Krol
with finer granularity. This will allow us to define A2R10G10B10 format.
2008-06-12gallium: Support L16 pixel format.José Fonseca
2008-05-19gallium: Additional formats for bump mapping.José Fonseca