94cc306e41a2565b1dc7d410713ac78a9f1edaf3 |
|
23-Oct-2012 |
Matt Turner <mattst88@gmail.com> |
ralloc: Annotate printf functions with PRINTFLIKE(...) This is a squash of the following two commits: ralloc: Annotate printf functions with PRINTFLIKE(...) Catches problems such as (in the gles3 branch) glcpp-parse.y: In function '_glcpp_parser_handle_version_declaration': glcpp-parse.y:1990:39: warning: format '%lli' expects argument of type 'long long int', but argument 4 has type 'int' [-Wformat] As a side-effect, remove ralloc.c's likely/unlikely macros and just use the ones from main/compiler.h. NOTE: This is a candidate for the release branches. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 41b14d125196e75cdd4599a4c1069b41e7000d48) and src/glsl/tests/Makefile.am: Specify -I... in AM_CPPFLAGS When specifying per-target CFLAGS (e.g., ralloc_test_CFLAGS) AM_CFLAGS are not used. AM_CPPFLAGS should be used for includes anyway. Fixes a build problem since 41b14d125: CC ralloc_test-ralloc.o In file included from ../../../src/glsl/ralloc.c:42:0: ../../../src/glsl/ralloc.h:57:27: fatal error: main/compiler.h: No such file or directory Acked-by: Paul Berry <stereotype441@gmail.com> (cherry picked from commit 67f1e7bf5f5d1482cb8684dd5a405b7bab5b1f34)
/external/mesa3d/src/glsl/ralloc.c
|
1559b2e2d7c0d9ddab0e186fcf855ea847152ef1 |
|
22-May-2012 |
Kenneth Graunke <kenneth@whitecape.org> |
ralloc: Fix ralloc_parent() of memory allocated out of the NULL context. If an object is allocated out of the NULL context, info->parent will be NULL. Using the PTR_FROM_HEADER macro would be incorrect: it would say that ralloc_parent(ralloc_context(NULL)) == sizeof(ralloc_header). Fixes the new "null_parent" unit test. NOTE: This is a candidate for the 7.9, 7.10, 7.11, and 8.0 branches. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/ralloc.c
|
8292b7419d0405e94a5ea270ba710d20f0eb071f |
|
10-Feb-2012 |
Kenneth Graunke <kenneth@whitecape.org> |
ralloc: Make rewrite_tail increase "start" by the new text's length. Both callers of rewrite_tail immediately compute the new total string length by adding the (known) length of the existing string plus the length of the newly appended text. Unfortunately, callers generally won't know the length of the new text, as it's printf-formatted. Since ralloc already computes this length, it makes sense to add it in and save the caller the effort. This simplifies both existing callers, but more importantly, will allow for cheap-appending in the next commit. v2: The link_uniforms code needs both the old and new length. Apply the obvious fix (which sadly makes it less of a cleanup). Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> [v1] Acked-by: José Fonseca <jfonseca@vmware.com> [v1]
/external/mesa3d/src/glsl/ralloc.c
|
7f08248c2e2d7e862e88db2d0008efca3c276512 |
|
01-Nov-2011 |
José Fonseca <jose.r.fonseca@gmail.com> |
ralloc: Use _vscprintf on MinGW. MinGW uses MSVC's runtime DLLs for most of C runtime's functions, and there has same semantics for vsnprintf. Not sure how this worked until now -- maybe one of the internal vsnprintf implementations was taking precedence.
/external/mesa3d/src/glsl/ralloc.c
|
20a20c781ac2143e92807fa8dfab086a5b7c1d53 |
|
26-Oct-2011 |
Vinson Lee <vlee@vmware.com> |
ralloc: Move declaration before code. Fixes build error with MSVC.
/external/mesa3d/src/glsl/ralloc.c
|
ca95593d49a2d99a16c160c2a04acc4be007d8a4 |
|
25-Oct-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
ralloc: Add new [v]asprintf_rewrite_tail functions. This can be useful if you want to create a bunch of temporary strings with a common prefix. For example, when iterating over uniform structure fields, one might want to create temporary strings like "pallete.primary", "palette.outline", and "pallette.shadow". This could be done by overwriting the '.' with a null-byte and calling ralloc_asprintf_append, but that incurs the cost of strlen("pallete") every time...when this is already known. These new functions allow you rewrite the tail of the string, given a starting index. If the starting index is the length of the string, this is equivalent to appending. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glsl/ralloc.c
|
b34770d83465f969eae57436d5aa9f4d31278c10 |
|
04-Aug-2011 |
Chia-I Wu <olvaffe@gmail.com> |
ralloc: include limits.h for SIZE_MAX on Android Android does not define SIZE_MAX in stdint.h. We have to include limits.h for it. Reviewed-by: Chad Versace <chad@chad-versace.us>
/external/mesa3d/src/glsl/ralloc.c
|
cde443e0b94ec6d8d0a99284e72ca7f9e2591174 |
|
04-Feb-2011 |
Vinson Lee <vlee@vmware.com> |
ralloc: Add missing va_end following va_copy.
/external/mesa3d/src/glsl/ralloc.c
|
3c701f1d61b33a5ffaddd4199ac277da8e287f30 |
|
01-Feb-2011 |
José Fonseca <jfonseca@vmware.com> |
glsl: Fix printf_length() on MSVC.
/external/mesa3d/src/glsl/ralloc.c
|
3ae7aa340305dbfa703abc9ec53ebad3ab6afa11 |
|
31-Jan-2011 |
José Fonseca <jfonseca@vmware.com> |
glsl: Define va_copy on MSVC.
/external/mesa3d/src/glsl/ralloc.c
|
42fd9c2ebb8a9eecf69d6a7a2bc0d778f49285de |
|
22-Jan-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
ralloc: a new MIT-licensed recursive memory allocator.
/external/mesa3d/src/glsl/ralloc.c
|
dc55254f5b23e5ad7a07c974ce772f93b4c11cb0 |
|
16-Jan-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
ralloc: Add a fake implementation of ralloc based on talloc.
/external/mesa3d/src/glsl/ralloc.c
|