| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
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/format: Add some NEON intrinsics-based u_format_unpack. In looking at the profile of dEQP, GLES3 was spending 5-10% of its time in ReadPixels, and almost all of that is b8g8r8a8_unorm8. It's really slow because we're getting about 47MB/s by doing uncached reads 32 bits at a time in the code-generated unpack. If we use NEON to generate larger bus transactions, we can speed things up to 136MB/s. In comparison, raw ldr/str read/writes with no byte swapping can hit a max of 216MB/sec. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10014> | 5 年前 | |
util: Move freedreno's snorm-to-unorm to util/, adding remaining cases. I want it in turnip too. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13379> | 11 个月前 | |
util/format: Add G8_B8R8_420_UNORM to match Vulkan. turnip was playing fast and loose with the name, using the R8_G8B8 format name but actually setting the descriptors up to read G8_B8R8 like Vulkan (sensibly) wants. This caused trouble when trying to make freedreno and turnip share code. By having both orderings as format names, we can share the descriptor code and also confuse readers less. Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13443> | 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: Switch the non-block formats to unpacking rgba rows instead of rects. We have only a few callers of unpack that do rects, so add a helper that iterates over y adding the strides. This saves us 36kb of generated code and means that adding cpu-specific variants for RGBA format unpack will be much simpler. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10014> | 5 年前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 5 年前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 5 年前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 5 年前 | |
format/fxt1: Clean up fxt1_variance's argument list gcc 11 warns: ../src/util/format/u_format_fxt1.c:940:22: warning: ‘fxt1_variance.constprop’ accessing 128 bytes in a region of size 64 [-Wstringop-overflow=] 940 | int32_t maxVarR = fxt1_variance(NULL, &input[N_TEXELS / 2], n_comp); But, suspiciously, if you inline fxt1_variance the warning goes away. What's happening is that the 2nd arg is uint8_t[N_TEXELS][MAX_COMP], so it looks like we're passing too small of an array in since gcc knows that input is also [N_TEXELS][MAX_COMP]. Fair enough. Fix the signature to reflect what's actually going on, and remove some unused arguments while we're at it. Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10671> | 11 个月前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 5 年前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 5 年前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 5 年前 | |
util: Switch the non-block formats to unpacking rgba rows instead of rects. We have only a few callers of unpack that do rects, so add a helper that iterates over y adding the strides. This saves us 36kb of generated code and means that adding cpu-specific variants for RGBA format unpack will be much simpler. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10014> | 5 年前 | |
util: Switch the non-block formats to unpacking rgba rows instead of rects. We have only a few callers of unpack that do rects, so add a helper that iterates over y adding the strides. This saves us 36kb of generated code and means that adding cpu-specific variants for RGBA format unpack will be much simpler. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10014> | 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 个月前 | |
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: 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 个月前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 5 年前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 5 年前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 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 个月前 | |
u_format: Define tests for r3g3b2 formats and fix BE swizzles for them. These tests passed for LE, and the BE channel ordering specified obviously didn't fit the pattern of the other BE formats (channels are listed right-to-left in the BE columns for historical reasons). Note that we can't write pure-integer format tests in u_format_tests.c currently. Acked-by: Adam Jackson <ajax@redhat.com> Acked-by: Ilia Mirkin <imirkin@alum.mit.edu> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10505> | 11 个月前 | |
util: Move gallium's PIPE_FORMAT utils to /util/format/ To make PIPE_FORMATs usable from non-gallium parts of Mesa, I want to move their helpers out of gallium. Since u_format used util_copy_rect(), I moved that in there, too. I've put it in a separate directory in util/ because it's a big chunk of related code, and it's not clear to me whether we might want it as a separate library from libmesa_util at some point. Closes: #1905 Acked-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 6 年前 | |
util/format: NEON is not available with the soft-float ABI Fixes: 80923e8d58cc ("util/format: Add some NEON intrinsics-based u_format_unpack.") Reviewed-by: Emma Anholt <emma@anholt.net> Tested-by: Ross Burton <ross.burton@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12569> | 11 个月前 | |
u_format: Add restrict to fn pointer and manual format pack/unpack/fetch MSVC warns (loudly) about a mismatch between the generated functions in u_format_table.c and the definition of util_format_[un]pack_description, specifically having 'restrict' in the function but not in the pointer type in the struct. So, add 'restrict' everywhere - to the function types, and to the rest of the implementations that are assigned to those structs. v2: util_format_unpack_description is used in gallium/auxiliary/translate Fixes: 5785fdac ("u_format: Mark the generated pack/unpack src/dst args as restrict.") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9670> | 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/format: add new z24/s8 packing helper to pack z32/s8. If zink runs on top of a vulkan impl with no 24-bit float support it needs support to pack into 24-bit for GL. To avoid having to make a temp copy, add a new helper to convert and pack. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15516> | 11 个月前 | |
util/format: add new z24/s8 packing helper to pack z32/s8. If zink runs on top of a vulkan impl with no 24-bit float support it needs support to pack into 24-bit for GL. To avoid having to make a temp copy, add a new helper to convert and pack. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15516> | 11 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 6 年前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 |