summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_format.h
AgeCommit message (Collapse)Author
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
2008-05-17gallium: remove deprecated format namesBrian Paul
2008-04-30gallium: rename old PIPE_FORMAT_U_I8 with PIPE_FORMAT_I8_UNORM, etc.Brian Paul
Now all the packed color types are consistantly named. Added temporary #defines for the old names until all drivers are updated.
2008-04-29gallium: add debug_print_format() make it easier to print format error messagesKeith Whitwell
2008-04-24gallium: Make sure the size of non-existent storage components is set to 0.Michel Dänzer
Before adding support for formats with unused storage components, the size of components swizzled to 0 or 1 was ignored, so this didn't matter.
2008-04-24gallium: Initial support for pixel formats with unused storage components.Michel Dänzer
Also clarify that RGB formats with no (used) alpha component are treated as having alpha = 1.0.
2008-04-15gallium: Don't assume snprintf are always available.José Fonseca
2008-04-01gallium: Compute YCBCR bit depth.José Fonseca
2008-03-21gallium: added DXT formats (preliminary, will probably change)Brian Paul
2008-03-21gallium: PIPE_FORMAT_TYPE_ commentsBrian Paul
2008-03-21gallium: added sRGB formatsBrian Paul
2008-03-21gallium: additional comments, fix typos, etcBrian Paul
2008-02-27gallium: Remove // comments.José Fonseca