mesa/src/gallium/auxiliary/util
Axel Davy 54010cf8b6 gallium/util: Add align_calloc
Add implementation for align_calloc,
which is align_malloc + memset.

v2: add if (ptr) before memset.
Fix indentation.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2016-10-24 21:56:44 +02:00
..
.gitignore util: Reimplement half <-> float conversions. 2012-06-29 12:21:02 +01:00
dbghelp.h
u_bitcast.h gallium: Add c99_compat.h to u_bitcast.h 2016-08-09 21:20:56 +02:00
u_bitmask.c gallium/util: change assertion to conditional in util_bitmask_destroy() 2016-05-03 15:40:49 -06:00
u_bitmask.h
u_blend.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_blit.c gallium: Fix region overlap conditions for rectangles with a shared edge 2016-06-10 14:35:21 -07:00
u_blit.h util: simplify writemask parameters for util_blit_pixels() 2014-09-24 15:35:11 -06:00
u_blitter.c gallium/u_blitter: split out a helper for common clear state 2016-08-16 09:21:13 -04:00
u_blitter.h gallium/u_blitter: split out a helper for common clear state 2016-08-16 09:21:13 -04:00
u_box.h gallium/util: Really allow aliasing of dst for u_box_union_* 2016-10-10 23:43:48 +02:00
u_cache.c util/cache: add comments, fix formatting 2016-04-25 12:59:29 -06:00
u_cache.h
u_caps.c gallium: remove PIPE_SHADER_CAP_MAX_ADDRS 2014-08-11 21:53:57 +02:00
u_caps.h gallium: separate out floating-point CAPs into its own enum 2011-11-22 20:56:50 +01:00
u_cpu_detect.c util,gallivm: Explicitly enable/disable fma attribute. 2016-06-10 13:47:35 +01:00
u_cpu_detect.h util,gallivm: Explicitly enable/disable fma attribute. 2016-06-10 13:47:35 +01:00
u_debug.c gallium/util: make use of strtol() in debug_get_num_option() 2016-09-26 19:39:04 +02:00
u_debug.h util: s/unsigned/enum pipe_resource_usage/ for buffer usage variables 2016-05-26 17:44:18 -06:00
u_debug_describe.c gallium: add interface for writable shader images 2015-07-16 16:52:20 +02:00
u_debug_describe.h gallium: add interface for writable shader images 2015-07-16 16:52:20 +02:00
u_debug_flush.c util: Move gallium's linked list to util 2015-05-08 17:16:13 -07:00
u_debug_flush.h gallium/util: Add flush/map debug utility code 2014-02-14 08:21:44 -07:00
u_debug_image.c gallium/util: put image dumping functions into separate file 2016-02-08 09:29:38 -07:00
u_debug_image.h gallium/util: put image dumping functions into separate file 2016-02-08 09:29:38 -07:00
u_debug_memory.c gallium/auxiliary: Trivial code style cleanup 2015-12-06 17:10:22 +01:00
u_debug_refcnt.c gallium/util: add new comments, assertions in u_debug_refcnt.c 2016-03-05 09:20:34 -07:00
u_debug_refcnt.h gallium/util: re-indent u_debug_refcnt.[ch] 2016-03-05 09:20:14 -07:00
u_debug_stack.c gallium/util: whitespace, formatting fixes in u_debug_stack.c 2016-02-08 09:29:38 -07:00
u_debug_stack.h util/debug: Make debug_backtrace_capture work for 64bit windows. 2013-06-25 18:41:59 +01:00
u_debug_symbol.c gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_debug_symbol.h
u_dirty_flags.h
u_dirty_surfaces.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_dl.c util: use RTLD_LOCAL with util_dl_open() 2015-11-21 12:52:21 +00:00
u_dl.h gallium/auxilary: more __cplusplus exports 2016-03-02 18:38:41 -06:00
u_draw.c gallium: add facilities for indirect drawing 2014-07-02 00:47:09 +02:00
u_draw.h gallium/util: use enum pipe_prim_type instead of unsigned some more 2016-05-27 19:11:28 +02:00
u_draw_quad.c gallium/auxiliary: Sanitize NULL checks into canonical form 2015-12-06 17:10:23 +01:00
u_draw_quad.h gallium: do not wrap header inclusion in 2016-03-09 17:21:39 +00:00
u_dual_blend.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_dump.h ddebug: dump shader buffers and images 2016-09-13 20:38:25 +02:00
u_dump_defines.c gallium/util: s/Elements/ARRAY_SIZE/ 2016-04-28 09:04:24 -06:00
u_dump_state.c ddebug: dump shader buffers and images 2016-09-13 20:38:25 +02:00
u_dynarray.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_fifo.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_format.c gallium/util: add comment on util_is_format_compatible() 2016-09-21 12:26:17 -06:00
u_format.csv gallium: add ASTC formats 2015-11-23 11:17:15 -05:00
u_format.h gallium/util: Implement util_format_translate_3d 2016-05-18 23:37:14 +02:00
u_format_etc.c gallium/util: silence silence unused var warnings for non-debug build 2015-06-01 07:42:05 -06:00
u_format_etc.h gallium: add PIPE_FORMAT_ETC1_RGB8 2011-12-02 08:43:46 +08:00
u_format_latc.c util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
u_format_latc.h
u_format_other.c util: Move format_r11g11b10f.h to src/util 2016-08-05 09:06:57 -07:00
u_format_other.h
u_format_pack.py gallium: add ASTC formats 2015-11-23 11:17:15 -05:00
u_format_parse.py mesa: fix typo in python scripts 2016-02-02 05:58:19 +01:00
u_format_rgtc.c util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
u_format_rgtc.h
u_format_s3tc.c Revert "gallium/util: fix resource leak" 2016-07-30 18:18:09 +02:00
u_format_s3tc.h swr: properly expose compressed format support 2016-05-12 14:12:18 -05:00
u_format_table.py gallium: merge PIPE_SWIZZLE_* and UTIL_FORMAT_SWIZZLE_* 2016-04-22 01:30:39 +02:00
u_format_tests.c gallium/util: s/Elements/ARRAY_SIZE/ 2016-04-28 09:04:24 -06:00
u_format_tests.h gallium/tests: Update UTIL_FORMAT_MAX_* defines. 2016-04-19 11:28:16 +01:00
u_format_yuv.c gallium: Use util_cpu_to_le{16,32} in many more places. 2015-02-23 10:41:22 -08:00
u_format_yuv.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_format_zs.c gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_format_zs.h gallium: rename ZS stencil type to UINT (v2) 2011-10-11 16:13:29 +01:00
u_framebuffer.c gallium/util: make util_copy_framebuffer_state(src=NULL) work 2016-07-06 10:17:30 -04:00
u_framebuffer.h st/mesa: bind NULL colorbuffers as specified by glDrawBuffers 2014-01-13 15:48:07 +01:00
u_gen_mipmap.c gallium/u_gen_mipmap: rewrite using pipe->blit (v2) 2014-04-10 20:50:16 +02:00
u_gen_mipmap.h gallium/u_gen_mipmap: rewrite using pipe->blit (v2) 2014-04-10 20:50:16 +02:00
u_half.h tgsi: add PK2H/UP2H support 2016-02-02 05:58:19 +01:00
u_handle_table.c gallium/auxiliary: Trivial code style cleanup 2015-12-06 17:10:22 +01:00
u_handle_table.h s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
u_hash.c
u_hash.h
u_hash_table.c gallium/auxiliary: Trivial code style cleanup 2015-12-06 17:10:22 +01:00
u_hash_table.h s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
u_helpers.c gallium/util: return correct number of bound vertex buffers 2015-12-10 13:55:53 -05:00
u_helpers.h gallium: do not wrap header inclusion in 2016-03-09 17:21:39 +00:00
u_index_modify.c gallium: remove PIPE_USAGE_STATIC 2014-02-06 17:37:34 +01:00
u_index_modify.h gallium: add void *user_buffer in pipe_index_buffer 2012-04-30 01:14:28 +02:00
u_inlines.h mesa/st: support lowering multi-planar YUV 2016-09-26 15:29:17 -04:00
u_keymap.c gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_keymap.h s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
u_linear.c gallium,utils: Fix trivial sign compare warnings 2016-05-03 12:00:09 -04:00
u_linear.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_math.c gallium/auxiliary: Use exp2(x) instead of pow(2.0, x). 2015-07-29 09:34:51 -07:00
u_math.h gallium/u_math: add util_logbase2_ceil 2016-09-27 16:44:38 +02:00
u_memory.h gallium/util: Add align_calloc 2016-10-24 21:56:44 +02:00
u_mm.c gallium/auxiliary: Fix zero integer literal to pointer comparison 2015-12-06 17:10:02 +01:00
u_mm.h
u_network.c gallium/auxiliary/util: Solaris also has standard Unix sockets 2011-10-27 22:43:02 -07:00
u_network.h gallium/auxiliary/util: Solaris also has standard Unix sockets 2011-10-27 22:43:02 -07:00
u_pack_color.h gallium: fix various undefined left shifts into sign bit 2016-05-07 16:46:59 -05:00
u_pointer.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_prim.h gallium/util: use enum pipe_prim_type in u_prim.h functions 2016-05-26 17:44:18 -06:00
u_prim_restart.c util: add a couple primitive restart helper functions 2015-09-01 16:29:17 -06:00
u_prim_restart.h util: add a couple primitive restart helper functions 2015-09-01 16:29:17 -06:00
u_pstipple.c gallium: fix various undefined left shifts into sign bit 2016-05-07 16:46:59 -05:00
u_pstipple.h draw: use util_pstipple_* function for stipple pattern textures and samplers 2016-02-09 10:01:57 -05:00
u_pwr8.h llvmpipe: fix arguments order given to vec_andc 2016-01-17 21:07:27 +02:00
u_queue.c gallium/u_queue: add optional cleanup callback 2016-07-16 10:00:04 -04:00
u_queue.h gallium/u_queue: add optional cleanup callback 2016-07-16 10:00:04 -04:00
u_range.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_rect.h gallium/util: fix returning empty box for rectangle intersection 2015-09-01 16:29:17 -06:00
u_resource.c util: add new util_resource_size() function in u_resource.[ch] 2013-04-03 11:02:47 -06:00
u_resource.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_ringbuffer.c gallium/auxiliary: Sanitize NULL checks into canonical form 2015-12-06 17:10:23 +01:00
u_ringbuffer.h
u_sampler.c gallium: merge PIPE_SWIZZLE_* and UTIL_FORMAT_SWIZZLE_* 2016-04-22 01:30:39 +02:00
u_sampler.h
u_simple_shaders.c gallium: refactor pipe_shader_state to support multiple IR's 2016-05-11 12:20:11 -04:00
u_simple_shaders.h gallium/util: (trivial) include p_shader_tokens.h in u_simple_shaders.h 2015-12-18 01:02:16 +01:00
u_split_prim.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_sse.h llvmpipe: do 64bit plane calculations in the sse path 2016-01-08 00:34:14 +01:00
u_string.h util: add util_strcasecmp() wrapper 2015-09-01 16:29:17 -06:00
u_suballoc.c gallium/u_suballoc: allow different alignment for each allocation 2016-06-04 15:42:33 +02:00
u_suballoc.h gallium/u_suballoc: allow different alignment for each allocation 2016-06-04 15:42:33 +02:00
u_surface.c gallium/util: check for window cliprects in util_can_blit_via_copy_region() 2016-06-30 18:19:09 -06:00
u_surface.h gallium/util: add tight_format_check param to util_can_blit_via_copy_region() 2016-06-30 14:32:06 -06:00
u_surfaces.c gallium/auxiliary: Trivial code style cleanup 2015-12-06 17:10:22 +01:00
u_surfaces.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_tests.c gallium: refactor pipe_shader_state to support multiple IR's 2016-05-11 12:20:11 -04:00
u_tests.h gallium/aux: Add needed extern "C" wrappers 2015-05-15 13:55:59 -04:00
u_texture.c s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
u_texture.h s/Tungsten Graphics/VMware/ 2014-01-17 20:00:32 +00:00
u_tile.c softpipe: fix another stencil-as-float issue 2015-04-27 18:51:30 +02:00
u_tile.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_time.h gallium: replace INLINE with inline 2015-07-21 17:52:16 -04:00
u_transfer.c gallium: add a pipe_context parameter to resource_get_handle 2016-08-25 14:09:48 +02:00
u_transfer.h gallium: add a pipe_context parameter to resource_get_handle 2016-08-25 14:09:48 +02:00
u_upload_mgr.c util: s/unsigned/enum pipe_resource_usage/ for buffer usage variables 2016-05-26 17:44:18 -06:00
u_upload_mgr.h gallium/util: fix build break 2016-05-26 20:59:08 -04:00
u_vbuf.c u_vbuf: fix potentially bogus assert 2016-08-01 13:42:11 -04:00
u_vbuf.h u_vbuf: Simplify the format fallback translation. 2014-08-24 22:13:25 -07:00
u_video.h vl/util: Fix YV12/I420 convert to NV12 U/V reversal 2016-09-13 13:58:40 -04:00
u_viewport.h gallium/util: add helper to compute zmin/zmax for a viewport state 2016-08-14 17:41:33 -04:00