| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
format_utils: properly parenthesize macro params this otherwise breaks evaluation of the parameters on arm64 cc: mesa-stable fixes #6496 Reviewed-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16860> (cherry picked from commit ba09a00a5cbbcd75b59ec121985ff4d12f220eb8) | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util/utrace: make generated code a tiny bit nicer to look at Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14818> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: Add tests for u_printf.h Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Mihai Preda <mhpreda@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15659> | 11 个月前 | |
util: use force_gl_map_buffer_synchronized workaround with RAGE CC: 22.1 22.0 <mesa-stable> Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1326 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17199> (cherry picked from commit e060d98aac588247f195988b58c2dcb04fef4bb8) | 11 个月前 | |
util: use anonymous file for memory fd creation The original implementation in os_memory_fd.c always uses memfds. Replace this by using the already existing os_create_anonymous_file in order to support older systems or systems without memfd. Fixes: 1166ee9caf3 ("gallium: add utility and interface for memory fd allocations") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13331> | 11 个月前 | |
util/anon_file: const string param Fixes: c0376a123418df0050dc ("util: add anon_file.h for all memfd/temp file usage") Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Tested-by: Eric Anholt <eric@anholt.net> Tested-by: Andreas Baierl <ichgeh@imkreisrum.de> | 6 年前 | |
使能vulkan rgba纹理硬压 | 10 个月前 | |
util: Add a simple big math library Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> | 7 年前 | |
util: only allow _BitScanReverse64 on 64-bit cpus While the documentation for _BitScanReverse64 on MSDN says that it's available on ARM, this isn't true. It's only available on ARM64. So let's match reality. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Acked-by: Matt Turner <mattst88@gmail.com> | 6 年前 | |
util: Add util_widen_mask function. Widens the given bit mask by a multiplier, meaning that it will replicate each bit by that amount. For example: 0b101 widened by 2 will become: 0b110011 This is typically used in shader I/O to transform a 64-bit writemask to a 32-bit writemask. Moving this function here because it is used in multiple places. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14005> | 11 个月前 | |
util/bitset: add BITSET_SIZE() To get the size (in bits) of a bitset. And minor clean-up in __bitset_ffs(). Signed-off-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062> (cherry picked from commit 8bd6feaca5ac15e3375b5631f68013a5a9b336aa) | 11 个月前 | |
util: stop including files from mesa/main Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4324> | 6 年前 | |
util/blob: Clarify rules on blob::data Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15028> | 11 个月前 | |
util/macros: Import ALIGN_POT from ralloc.c v2 (Jason Ekstrand): - Rename y to pot_align (Brian) - Also use ALIGN_POT in build_id.c and slab.c (Brian) Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> | 8 年前 | |
util: add missing extern C This code is included in c++ code via disk_cache in theory, in practice it never has been. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6035> | 5 年前 | |
c11/threads: Re-align return values for timed waits They're supposed to return thrd_timedout (which we mistakenly named thrd_timeout), not thrd_busy. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13427> | 11 个月前 | |
util: Add support for clang::fallthrough. Looks like the __attribute__ version doesn't work for C++ in the Android build. Only found now because we don't enable -Wimplicit-fallthrough by default project wide for C++. Only ACO enables it. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13164> | 11 个月前 | |
meson, util: Make zlib optional again This adds a HAVE_COMPRESSION macro, which is undefined if neither zlib nor zstd are present, and is used to no-op compress.h/c. This also has a side effect of fixing SCons, since it won't define this macro. Fixes: d7ecbd5bf837 ("util: create some standalone compression helpers") Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9689> | 5 年前 | |
meson, util: Make zlib optional again This adds a HAVE_COMPRESSION macro, which is undefined if neither zlib nor zstd are present, and is used to no-op compress.h/c. This also has a side effect of fixing SCons, since it won't define this macro. Fixes: d7ecbd5bf837 ("util: create some standalone compression helpers") Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9689> | 5 年前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util/dag: Add dag_add_edge_max_data This will be useful for when the edge data represents a delay of some sort, like it will with ir3. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13722> | 11 个月前 | |
util/dag: Add dag_add_edge_max_data This will be useful for when the edge data represents a delay of some sort, like it will with ir3. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13722> | 11 个月前 | |
util: stop including files from mesa/main Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4324> | 6 年前 | |
Revert "util: Add helpers for various one-time-init patters" This reverts commit bda4d6e0d01116db59a0a03b0c703a7af6e11949. Acked-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7760> | 5 年前 | |
util: introduce detect_os.h Mostly copied from src/gallium/include/pipe/p_config.h, so I kept its copyright and authorship. Other than the obvious rename, the big difference is that these are always defined, to be used as #if DETECT_OS_LINUX. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> | 6 年前 | |
util/disk_cache: rename MESA_GLSL_CACHE envvar Rename MESA_GLSL_CACHE to MESA_SHADER_CACHE, as the on-disk cache can store not only GLSL but also SPIR-V shaders. v2: - Keep old envvar as deprecated (Mike) Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15390> | 11 个月前 | |
util/disk_cache: add nocopy variant of disk cache store function this is a bit more convenient in some cases Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11304> | 11 个月前 | |
util/disk_cache: rename MESA_GLSL_CACHE envvar Rename MESA_GLSL_CACHE to MESA_SHADER_CACHE, as the on-disk cache can store not only GLSL but also SPIR-V shaders. v2: - Keep old envvar as deprecated (Mike) Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15390> | 11 个月前 | |
util/disk_cache: make MESA_DISK_CACHE_READ_ONLY_FOZ_DBS a relative path Rather than passing in full paths this changes things so that we can just pass in filenames relative to the current cache directory. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9279> | 5 年前 | |
util: add fp64 -> fp32 conversion support for RTNE and RTZ rounding modes In order to be coherent with the pre-existent API for half floats, this new API for double is the one meant to be used when doing double to float conversions. It is no more than a wrapper for the softfloat.h API but we meant to keep that one private. v2: - Fix bug in _mesa_double_to_float_rtz() in the inf/nan detection using the exponent value. v3: - Replace custom f64 -> f32 implementations with the softfloat one (Andres). v4: - Added API usage clarifying comments (Caio). Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Signed-off-by: Andres Gomez <agomez@igalia.com> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 6 年前 | |
util: add fp64 -> fp32 conversion support for RTNE and RTZ rounding modes In order to be coherent with the pre-existent API for half floats, this new API for double is the one meant to be used when doing double to float conversions. It is no more than a wrapper for the softfloat.h API but we meant to keep that one private. v2: - Fix bug in _mesa_double_to_float_rtz() in the inf/nan detection using the exponent value. v3: - Replace custom f64 -> f32 implementations with the softfloat one (Andres). v4: - Added API usage clarifying comments (Caio). Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Signed-off-by: Andres Gomez <agomez@igalia.com> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 6 年前 | |
使能vulkan支持astc纹理 | 10 个月前 | |
driconf: Fix unhandled tags in static conf A rule with executable_regexp tag would match every executable without this fix and force_glsl_extensions_warn would be always set to true which breaks some dEQP tests. Fixes: 5740ac37014 ("xmlconfig: Add static driconfig support") Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14562> | 11 个月前 | |
util: tune signatures of generated enum operators This allows use of these operators in a constexpr context and silences a clang -Wunused-function warning. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10784> | 11 个月前 | |
util: Add and use functions to calculate min and max int for a size Many places need to know the maximum or minimum possible value for a given size integer... so everyone just open-codes their favorite version. There is some potential to hit either undefined or implementation-defined behavior, so having one version that Just Works seems beneficial. v2: Fix copy-and-pasted bug (INT64_MAX instead of INT64_MIN) in u_intmin. Noticed by CI. Lol. Rename functions s/u_(uint|int)(min|max)/u_\1N_\2/g. Suggested by Jason. Add some unit tests that would have caught the copy-and-paste bug before wasting CI time. Change the implementation of u_intN_min to use the same pattern as stdint.h. This avoids the integer division. Noticed by Jason. v3: Add changes to convert_clear_color (src/gallium/drivers/iris/iris_clear.c). Suggested by Nanley. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Suggested-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12177> | 11 个月前 | |
util: document a limitation of util_fast_udiv32 trivial | 7 年前 | |
util: Add a helper for faster remainders This should be at least as fast as using fast_idiv_by_const, and has the advantage that the precomputation is simple enough to be evaluated at Mesa-compile time for hash tables and sets which have a fixed table of possible divisors. Acked-by: Eric Anholt <eric@anholt.net> Acked-by: Jason Ekstrand <jason@jlekstrand.net> | 7 年前 | |
util: consistently use ifndef guards over pragma once Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Vedran Miletić <vedran@miletic.net> Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> | 9 年前 | |
util/format: Use explicitly sized types Both the rgb9e5 and r11g11b10 formats are defined based on how they are packed into a 32-bit integer. It makes sense that the functions that manipulate them take an explicitly sized type. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Roland Scheidegger <sroland@vmware.com> | 9 年前 | |
util/srgb: Add a float sRGB -> linear helper Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> | 8 年前 | |
python: drop python2 support Signed-off-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674> | 11 个月前 | |
util/fossilize_db: Fix double free in error handling. If the file ptr is not NULL then foz_destroy will also try to destroy it. Fixes: eca6bb9540d ("util/fossilize_db: add basic fossilize db util to read/write shader caches") Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14671> | 11 个月前 | |
util/fossilize_db: Add extra flock mutex. The flock is per-fd, not per thread, and we do it outside of the main mutex. This was done to avoid having to wait in the mutex, but we can get a case where one ends up running the body with the flock unlocked. Fix this by adding a mutex that doesn't need to be locked for reads. Fixes: 4f0f8133a35 "util/fossilize_db: Do not lock the fossilize db permanently." Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12266> | 11 个月前 | |
util: futex fixes for OpenBSD Fix absolute to relative timeout computation. Add sanity checks to futex_wait() - handle the NULL timeout pointer case - avoid negative cases. From Matthieu Herrb and Scott Cheloha. Fixes: c91997b6c43 ("util/futex: use futex syscall on OpenBSD") Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Acked-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630> | 5 年前 | |
util: Keep quiet NaNs quiet when converting to half float. We don't want to be throwing exceptions and changing float values later by emitting a signaling binary16 nan. If we don't do this, then when we convert back to f32 in NIR constant expression evaluation, the signaling NaN can end up giving NaN for fmax(NaN, 0.0), instead of 0.0. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5933 Cc: mesa-stable Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16233> (cherry picked from commit 27e33d5c963f13a47c4b9276378db913d8ecb189) | 11 个月前 | |
util: Add accessor for util_cpu_caps In release builds, there should be no change, but in debug builds the assert will help us catch undefined behavior resulting from using util_cpu_caps before it is initialized. With fix for u_half_test for MSVC from Jesse Natalie squashed in. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9266> | 5 年前 | |
util/hash_table: Clear special 0/1 entries for u64 hash table too Fixes: e532a47f ("util/hash_table: do not leak u64 struct key") Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13390> | 11 个月前 | |
util/hash_table: Remove Unicode byte order mark The mark can confuse utilities which do not support Unicode, and no other file has the character. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15728> | 11 个月前 | |
egl+libsync: Add helper to complain about invalid fence fd's Debugging fd lifetime issues can be hard. Add a helper for debug builds to print out an error if an fd is not a fence fd, and sprinkle it around Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15094> | 11 个月前 | |
util/list.h: Add docstrings for list_add and list_addtail Which have easily confused parameters: the first argument is the item to be added, the second is the list to add to; but this could easily be the other way around. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14983> | 11 个月前 | |
util/log: Don't print an extra \n if the format string had one. You're not supposed to include a '\n' in mesa_log*() messages because android logging will log what you provide on its own line anyway, so each mesa_log() should be the body of a log line. But also, getting everyone to consistently not do that is hopeless because we're all so trained by printf(). So, just detect an existing \n and don't add a new one. Cleans up deqp-vk debug output a bunch from turnip. Acked-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15332> | 11 个月前 | |
util/log: Add support for logging once. These are not data-race safe (like many other once patterns in Mesa), so they might not log exactly once, but it should be good enough for not spamming the console. Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14999> | 11 个月前 | |
util: Getting u_debug.h not depends on pipe/* Move pipe_debug_type into u_debug.h Move pipe_debug_callback into u_debug.h Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15657> | 11 个月前 | |
util: Disable memstream for Apple builds Not all SDK versions support open_memstream. Maybe some other day. Fixes: af8d488ea5e ("util,ac,aco,radv: Cross-platform memstream API") Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8269> | 5 年前 | |
includes: add windows lean and mean guard. When we drop gl.h some files pick up windows.h from here without lean/mean and it causes conflicts. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14605> | 11 个月前 | |
util: add SHA1 printing and comparison functions Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13869> | 11 个月前 | |
util: add SHA1 printing and comparison functions Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13869> | 11 个月前 | |
使能vulkan支持astc纹理 | 10 个月前 | |
util: replaced ENODATA with ENOATTR for non-Linux systems On Linux ENODATA is defined but on BSD, and MacOSX ENOATTR is used instead. Defined ENODATA to be ENOATTR when the system is not Linux. v2: Replaced ENODATA and ENOATTR with -EFAULT that is exists everywhere and added a comment (Ian Romanick) Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11203> | 11 个月前 | |
util: Make os_read_file use O_BINARY on Windows Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9513> | 5 年前 | |
Fix VMware capitalization. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Neha Bhende <bhenden@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7260> | 5 年前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: Remove unused Android options_tbl_lock Avoids warning: ../src/util/os_misc.c:132:21: error: unused variable 'options_tbl_lock' [-Werror,-Wunused-variable] static simple_mtx_t options_tbl_lock = _SIMPLE_MTX_INITIALIZER_NP; ^ Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10220> | 5 年前 | |
util: Add os_get_page_size query No Apple/BSD implementation yet, I have no idea how to do that Reviewed-by: Francisco Jerez <currojerez@riseup.net> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7680> | 5 年前 | |
util: fix possible fd leaks in os_socket_listen_abstract Found by Coverity. Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Fixes: ef5266ebd50 ("util/os_socket: Add socket related functions.") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6067> | 5 年前 | |
util/os_socket: fix header unavailable on windows Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2464 Fixes: e62c3cf350a8b169e640 ("util/os_socket: Include unistd.h to fix build error") Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com> | 6 年前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
vulkan: Add vk_asprintf and vk_vasprintf helpers Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10318> | 11 个月前 | |
util/ralloc: Add helpers for growing zero-initialized memory Unfortunately, we can't quite follow the standard C conventions for these because ralloc doesn't know the sizes of pointers. Reviewed-by: Eric Anholt <eric@anholt.net> | 7 年前 | |
util/rand_xor: extend the urandom path to all non-Windows platforms Any system that provides /dev/urandom should be allowed to try to use it. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2316> | 6 年前 | |
util/rand_xor: make it clear that {,s_}rand_xorshift128plus take *exactly 2* uint64_t Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2316> | 6 年前 | |
util: rb-tree: A simple, invasive, red-black tree This is a simple, invasive, liberally licensed red-black tree implementation. It's an invasive data structure similar to the Linux kernel linked-list where the intention is that you embed a rb_node struct the data structure you intend to put into the tree. The implementation is mostly based on the one in "Introduction to Algorithms", third edition, by Cormen, Leiserson, Rivest, and Stein. There were a few other key design points: * It's an invasive data structure similar to the [Linux kernel linked list]. * It uses NULL for leaves instead of a sentinel. This means a few algorithms differ a small bit from the ones in "Introduction to Algorithms". * All search operations are inlined so that the compiler can optimize away the function pointer call. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 8 年前 | |
util: Convert rb_tree_test to gtest Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Acked-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13425> | 11 个月前 | |
util/ra: Fix numeric overflow during bitset allocation Reviewed-by: Emma Anholt <emma@anholt.net> Signed-off-by: Kostiantyn Lazukin <kostiantyn.lazukin@globallogic.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5752 Fixes: d4a4cd20d52 ("util/ra: use adjacency matrix for undirected graph") Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14224> | 11 个月前 | |
ra: Add fast-path support for register classes of contiguous regs. In the fully general case of register classes, to expose an allocation class of unaligned 2-contiguous-regs allocations, for example, you'd have your base individual regs (128 on intel), and another set of 127 regs that each conflicted with the corresponding pair of the base regs. Single-reg nodes would allocate in the 128, and double-reg nodes would allocate in the 127 and the user would remap from the 127 down to the base regs with some irritating table. If you need many different contiguous allocation sizes (16 is a pretty common number across drivers), your number of regs explodes, wasting memory and making the q computation expensive at startup. If all the user has is contiguous-reg classes, we can easily compute the q value up front (as found in the intel driver and nouveau, for example), and we only have to change a couple of places in the conflict-checking logic so the contiguous-reg classes can use the base registers. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9437> | 11 个月前 | |
util/ra: use adjacency matrix for undirected graph Since this graph is actually not oriented, its adjacency matrix can be represented using less than half bits required by full adjacency matrix. It reduces memory consumption and number of cache misses. It also simplifies logic of growing this matrix - no need to touch adjacency bits for previously allocated number of nodes. Move adjacency bits from nodes to graph to reduce the number of allocations. No changes to shader-db. Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Kostiantyn Lazukin <kostiantyn.lazukin@globallogic.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14189> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: move shared rgtc code to util (v2) This was being shared using a ../../ get out of gallium into mesa, and I swore when I did it I'd fix things when we got a util dir, we did, so I have. v2: move RGTC_DEBUG define Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com> | 11 年前 | |
util: When building 'ARM64EC', don't use x64 intrinsics which need to be emulated ARM64EC is a new build target for Windows ARM64 devices for x64 support. These binaries can be loaded in x64 processes, but don't need to be emulated. For code that's heavily used, avoiding the emulation can be a huge perf win. Acked-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8619> | 5 年前 | |
util: Fix rwlock Windows include for MinGW MinGW uses windows.h, and not Windows.h. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7215> | 5 年前 | |
util/set: Respect found in search_or_add_pre_hashed Fixes: 491e7decad0f "util/set: add the found param to search_or_add" Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Connor Abbott <cwabbott0@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13184> (cherry picked from commit 21a7b0f1abbfc3ed0ebf1194ef530ca2497616e5) | 11 个月前 | |
util/set: add macro for destructively iterating set entries a common usage for sets is for tracking exactly one instance of a pointer for a given period of time, after which the set's entries are purged and it is reused this macro enables the purge phase of such usage to reset the table to a pristine state, avoiding future rehashing due to ballooning of deleted entries Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8498> | 5 年前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: Add helgrind support for simple_mtx Annoyingly mtypes.h pulls in simple_mtx, which means we end up needing to sprinkle a lot of idep_mesautil around. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3773 Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7644> | 5 年前 | |
util/slab: add slab_zalloc A a variant that clears the allocated object to 0. Cc: mesa-stable Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15298> | 11 个月前 | |
util/slab: add slab_zalloc A a variant that clears the allocated object to 0. Cc: mesa-stable Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15298> | 11 个月前 | |
util: Keep quiet NaNs quiet when converting to half float. We don't want to be throwing exceptions and changing float values later by emitting a signaling binary16 nan. If we don't do this, then when we convert back to f32 in NIR constant expression evaluation, the signaling NaN can end up giving NaN for fmax(NaN, 0.0), instead of 0.0. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5933 Cc: mesa-stable Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16233> (cherry picked from commit 27e33d5c963f13a47c4b9276378db913d8ecb189) | 11 个月前 | |
util: implement F16C using inline assembly on x86_64 F16C: https://en.wikipedia.org/wiki/F16C This also happens to fix bptc-float-modes on llvmpipe. Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6987> | 5 年前 | |
util/sparse_free_list: manipulate node pointers using atomic primitives Probably doesn't fix anything but those should be accessed in an atomic way just like the head pointer. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: e4f01eca3b3cd1 ("util: Add a free list structure for use with util_sparse_array") Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4613> | 6 年前 | |
util/sparse_array: Stash the node level in the node pointer This reworks the data structure a bit and, in my view, simplifies it. Instead of each node having a header which has the node level in it, we use the bottom 6 bits of the pointer for that. This requires us to allocate with the os_malloc/free_aligned helpers (which call into posix_memalign on Linux) but cache-line aligning our allocations is actually probably a good thing given that we're doing atomics on them. The primary advantages to doing this is that it changes the number of memory accesses per tree level from 2 to 1 when walking the tree because we no longer have to look at node->level. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4228> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4228> | 6 年前 | |
util: use standard name for vsnprintf() Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net> | 7 年前 | |
util: Add a string buffer implementation Based on Vladislav Egorovs work on the preprocessor, but split out to a util functionality that should be universal. Setup, teardown, memory handling and general layout is modeled around the hash_table and the set, to make it familiar for everyone. A notable change is that this implementation is always null terminated. The rationale is that it will be less error-prone, as one might access the buffer directly, thereby reading a non-terminated string. Also, vsnprintf and friends prints the null-terminator. Signed-off-by: Thomas Helland <thomashelland90@gmail.com> Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> V2: Address review feedback from Timothy and Grazvydas - Fix MINGW preprocessor check - Changed len from uint to int - Make string argument const in append function - Move to header and inline append function - Add crimp_to_fit function for resizing buffer V3: Move include of ralloc to string_buffer.h V4: Use u_string.h for a cross-platform working vsnprintf V5: Remember to cast to char * in crimp function V6: Address review feedback from Nicolai - Handle !str->buf in buffer_create - Ensure va_end is always called in buffer_append_all - Add overflow check in buffer_append_len - Do not expose buffer_space_left, just remove it - Clarify why a loop is used in vprintf, change to for-loop - Add a va_copy to buffer_vprintf to fix failure to append arguments when having to resize the buffer for vsnprintf. V7: Address more review feedback from Nicolai - Add missing va_end corresponding to va_copy - Error check failure to allocate in crimp_to_fit | 8 年前 | |
util/strndup: move header inclusion as applicable Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Vedran Miletić <vedran@miletic.net> Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> | 9 年前 | |
util: improve compiler guard Glibc 2.26 has dropped xlocale.h, but the functions needed (strtod_l() and strdof_l()) can be found in stdlib.h. Improve the detection method to allow newer builds to still make use of the locale-setting. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102454 Cc: Laurent Carlier <lordheavym@gmail.com> Cc: Emil Velikov <emil.l.velikov@gmail.com> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Laurent Carlier <lordheavym@gmail.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> | 8 年前 | |
mesa/main: free locale at exit In order to save a small leak if mesa is continously loaded and unloaded, let's free the locale when the shared object is unloaded. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> | 10 年前 | |
使能vulkan支持astc纹理 | 10 个月前 | |
使能vulkan支持astc纹理 | 10 个月前 | |
使能vulkan支持astc纹理 | 10 个月前 | |
使能vulkan支持astc纹理 | 10 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util/timespec: Return overflow from timespec_add_[mn]sec() To avoid altering any currently existing callers, we continue on with the calculation regardless of overflow. This also matches the behavior of GCC's __builtin_add_overflow(). Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15651> | 11 个月前 | |
util/u_atomic: fix build on clang archs without 64-bit atomics Make this build on clang architectures that don't have 64-bit atomic instructions. Clang doesn't allow redeclaration (and therefore redefinition) of the __sync_* builtins. Use #pragma redefine_extname to work around that restriction. Clang also turns __sync_add_and_fetch into __sync_fetch_and_add (and __sync_sub_and_fetch into __sync_fetch_and_sub) in certain cases, so provide these functions as well. Fixes: a6a38a038bd ("util/u_atomic: provide 64bit atomics where they're missing") patch from Mark Kettenis Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6511> | 11 个月前 | |
u_atomic: Fix MSVC p_atomic_add_return InterlockedExchangeAdd returns the *old* value, not the new one Cc: mesa-stable Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17529> (cherry picked from commit 81bbfab5dfa33bf251ed519dde30128f39e7a3f9) | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: limit error-dialogs to win32 These dialogs only exist on Windows, so let's not even expose a util function for this on other platforms. The code is only ever called from Windows specific code anyway. While we're at it, clean up the name a bit as well. Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15485> | 11 个月前 | |
util: limit error-dialogs to win32 These dialogs only exist on Windows, so let's not even expose a util function for this on other platforms. The code is only ever called from Windows specific code anyway. While we're at it, clean up the name a bit as well. Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15485> | 11 个月前 | |
util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium to allow pipe_*_reference to be called in src/mesa/vbo. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050> | 11 个月前 | |
util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium to allow pipe_*_reference to be called in src/mesa/vbo. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050> | 11 个月前 | |
util: move debug_memory_{begin,end} to os_memory_debug.h This is where the other debug_memory_* functions are declared, so let's move it here for symmetry. This allows us to drop an include of u_debug_gallium.h, which makes us depend on gallium-headers in non-gallium code. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3901> | 6 年前 | |
util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium to allow pipe_*_reference to be called in src/mesa/vbo. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050> | 11 个月前 | |
util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium to allow pipe_*_reference to be called in src/mesa/vbo. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
gallium/android: Rewrite backtrace helper for android The previous implementation kept a hashtable of a Backtrace object per thread. debug_backtrace_capture is supposed to store a backtrace in the passed in debug_stack_frame array, but instead overwrote the per-thread Backtrace object. This new version works more like the libunwind based capture. We hash the file and symbol names and store pointers in the debug_stack_frame struct. This way debug_backtrace_capture doesn't overwrite previous captures or allocate memory that needs to be freed. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6112> | 5 年前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: Add a drm_find_modifier helper This function is replicated across vc4/v3d/freedreno and is needed in Panfrost; let's make this shared code. v2: Supply generic util_array_contains_u64 version (Eric Engestrom). Add missing stdbool.h include (Eric Anholt). Mark inline (Christian Gmeiner). Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> | 7 年前 | |
replace 0 with NULL for NULL pointers This updates many places where 0 is used as NULL pointer. There are a few warnings left when I build the default configuration but they either relate to code outside of mesa or where "None" is used instead. Found with static analysis (smatch) Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12174> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util/u_trace: make u_trace usable for other than gallium drivers With little modifications u_trace could be usable for Vulkan drivers. Beside removing dependencies on gallium, the other notable change is the passing of opaque flush_data pointer via u_trace_flush. There is data which becomes available only at this point which other drivers may want to pass. For example Vulkan drivers would want to pass at least submission id (for perfetto) and a sync object to wait on in u_trace_read_ts. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10969> | 11 个月前 | |
util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium to allow pipe_*_reference to be called in src/mesa/vbo. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050> | 11 个月前 | |
util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium to allow pipe_*_reference to be called in src/mesa/vbo. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050> | 11 个月前 | |
util/idalloc: add util_idalloc_alloc_range v2: fixed infinite loop (Pierre-Eric) Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> (v1) Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v2) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11493> | 11 个月前 | |
util/idalloc: add util_idalloc_alloc_range v2: fixed infinite loop (Pierre-Eric) Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> (v1) Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v2) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11493> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: add optimised memset64 This just adds a memset64 along the lines of the previously added memset32. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9041> | 5 年前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util/perfetto: Add one-time init Various places around mesa which might want to register a data-source, etc, should call util_perfetto_init() first to ensure we connect to the tracing service. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com> Acked-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9901> | 11 个月前 | |
util/perfetto: Add one-time init Various places around mesa which might want to register a data-source, etc, should call util_perfetto_init() first to ensure we connect to the tracing service. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com> Acked-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9901> | 11 个月前 | |
util: Convert util/u_printf.cpp to util/u_printf.c By doing this to remove the need of C++ runtime when not using llvmpipe Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Mihai Preda <mhpreda@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15659> | 11 个月前 | |
util: Convert util/u_printf.cpp to util/u_printf.c By doing this to remove the need of C++ runtime when not using llvmpipe Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Mihai Preda <mhpreda@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15659> | 11 个月前 | |
util: make util_get_process_exec_path work on FreeBSD w/o procfs sysctl is the correct way of getting the current executable's path. procfs is not mounted by default. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1598> | 11 个月前 | |
util/u_process: protect entrypoints for c++ Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Rohan Garg <rohan.garg@intel.com> Acked-by: Antonio Caggiano <antonio.caggiano@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13996> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: Add qsort_r/s args adapter for MSVC and BSD/macOS MSVC's qsort_s behaves similarly to sort_r. Unfortunately, qsort_s's compare function has the "context"/"args" as its first argument. BSD's qsort_r has a different order than GNU's qsort_r. Finally, C11 added qsort_s's which look like GNU's gsort_r. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10989> | 11 个月前 | |
util/queue: fix a data race detected by TSAN when finishing the queue Thread sanitizer complains if it detects that the pthread_barrier is destroyed when a thread might still blocked on the barrier. Fix this by destroying the barrier only if pthread_barrier_wait returns PTHREAD_BARRIER_SERIAL_THREAD which is the value for success. In practice this shouldn't fix anything serious given that this code is only called when the disk cache is destroyed. Original patch from Timothy Arceri. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4342 Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13861> | 11 个月前 | |
util/queue: use simple_mtx_t for finish_lock Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13152> | 11 个月前 | |
util: fix gcc vsnprintf overflow Anything higher than INT_MAX results in overflow although the parameter is declared as size_t. Worse, with (size_t)-1 it is silently ignored and Woverflow is not emitted. Closes #4226 Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Tested-by: Prodea Alexandru-Liviu <liviuprodea@yahoo.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9134> | 5 年前 | |
util: Should not use ASSERTED in util_thread_get_time_nano The parameter is not ASSERTED Fixes: 0f1b3fc17f0 ("util: Fixes unused parameter warnings") Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15655> | 11 个月前 | |
util/vector: make util_vector_init harder to misuse Make u_vector_init a wrapper to u_vector_init_pot. Let both take (element_count, element_size) as parameters. Motivated by eed0fc4caf2 ("vulkan/wsi/wayland: fix an invalid u_vector_init call") v2: rename u_vector_init_pot to u_vector_init_pow2 Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Simon Ser <contact@emersion.fr> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13201> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util/vl: move gallium vl_vlc.h and vl_rbsp.h to shared code. For vulkan video I need these to parse slice headers, so move them somewhere easier to get at them. drops pointer_to_uintptr in favour of a cast. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13768> | 11 个月前 | |
util/vl: move gallium vl_vlc.h and vl_rbsp.h to shared code. For vulkan video I need these to parse slice headers, so move them somewhere easier to get at them. drops pointer_to_uintptr in favour of a cast. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13768> | 11 个月前 | |
util/vma: Add a debug print helper Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5019> | 6 年前 | |
util/vma: Add a debug print helper Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5019> | 6 年前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
util: trim trailing space for files src/util/**/* Using the following bash script doing that cd src/util find . -type f -print0 | xargs -0 -n1 sed -i 's/[ \t]*$//' Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15093> | 11 个月前 | |
python: drop python2 support Signed-off-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674> | 11 个月前 | |
xxhash: update fallthrough comments clang doesn't support /* fallthrough */ so switch to fallthrough attribute. Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7747> | 5 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 6 年前 | ||
| 10 个月前 | ||
| 7 年前 | ||
| 6 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 6 年前 | ||
| 11 个月前 | ||
| 8 年前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 10 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 7 年前 | ||
| 7 年前 | ||
| 9 年前 | ||
| 9 年前 | ||
| 8 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 10 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 7 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 8 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 7 年前 | ||
| 8 年前 | ||
| 9 年前 | ||
| 8 年前 | ||
| 10 年前 | ||
| 10 个月前 | ||
| 10 个月前 | ||
| 10 个月前 | ||
| 10 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 6 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 7 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 |