summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_pack_color.h
AgeCommit message (Collapse)Author
2010-10-06util: Cleanup util_pack_z_stencil and friends.José Fonseca
- Handle PIPE_FORMAT_Z32_FLOAT packing correctly. - In the integer version z shouldn't be passed as as double. - Make it clear that the integer versions should only be used for masks. - Make integer type sizes explicit (uint32_t for now, although uint64_t will be necessary later to encode f32_s8_x24).
2010-09-25util: fix util_pack_color for B4G4R4A4Marek Olšák
NOTE: This is a candidate for the 7.9 branch.
2010-08-23util: fix util_fill_rect to take util_color instead of u32 paramRoland Scheidegger
util_fill_rect could not handle formats with more than 32 bits, since the fill color was a uint32_t value. Fix this by using a util_color union instead, and also expand the union so it works with formats which have up to 256 bits (the max of any format currently defined).
2010-07-29util: add uint version of pack_z_stencilKeith Whitwell
Useful for packing mask values.
2010-04-09util: Include u_debug for debug_print_format.Corbin Simpson
Caused fun linker errors on r600g.
2010-03-30gallium: adapt all code to the renamed depth/stencil formatsRoland Scheidegger
2010-03-18Add format B5G5R5X1Alan Hourihane
2010-03-01util: Rename pipe formats.José Fonseca
2010-03-01util: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate.José Fonseca
2010-01-15util: Handle FORMAT_Z32_FLOAT in util_pack_z().Michal Krol
2009-12-18util/pack: Handle the remaining formats with generic u_format access functions.Michal Krol
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-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-07gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger
use pointer to union instead of void pointer. gcc complained a lot, depending what the pointer originally actually was. Looks like it's in fact maybe legal to cast for instance uint pointers to union pointers as long as union contains a uint type, hence use this with some callers, other just use union util_color in the first place.
2009-11-20gallium/util: Initialize variables in u_pack_color.h.Vinson Lee
2009-04-08gallium: handle the case of util_pack_z_stencil(format=PIPE_FORMAT_S8_UNORM)Brian Paul
Fixes failed assertion in glean fbo test.
2009-04-04gallium: Clean up driver clear() interface.Michel Dänzer
Only allows clearing currently bound buffers, but colour and depth/stencil in a single call.
2009-04-04gallium: Add utility helper for packing combined depth/stencil values.Michel Dänzer
2008-09-05gallium: remove debug code from prev commitBrian Paul
2008-09-05gallium: new util_unpack_color_ub() functionBrian Paul
2008-08-24gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul
Also, rename p_tile.[ch] to u_tile.[ch]
2008-06-11small optimizationAlan Hourihane
2008-05-07gallium: Implement util_pack_color for A8, L8, and I8 formats.José Fonseca
2008-04-29gallium: add pack for _FLOAT formats to pack_ubKeith Whitwell
2008-04-29gallium: fix pack for A1R5B5G5Keith Whitwell
2008-04-29gallium: add pack for A4R4G4B4Keith Whitwell
2008-04-29gallium: add pack for A1R5B5G5Keith Whitwell
2008-04-29gallium: add debug_print_format() make it easier to print format error messagesKeith Whitwell
2008-04-29gallium: add \n to error stringsBrian Paul
2008-04-29gallium: fix error msg typoBrian Paul
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-16gallium: added util_pack_color_ub()Brian Paul
2008-03-18gallium: protect against multi-#includeBrian
2008-03-18gallium: utility for packing color, z values according to pipe_formatBrian