Lionel Landwerlin
4d19685a99
intel/perf: don't ralloc on perf context a temporary hash table
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893 >
2022-11-17 12:57:06 +00:00
Lionel Landwerlin
e754bf6be4
intel/perf: allocate cleared counter infos
...
This array of structure needs to be initialized to 0 as it contains a
bitset we don't explicitly clear.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 3144bc1d33 ("intel/perf: move query_mask and location out of gen_perf_query_counter")
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893 >
2022-11-17 12:57:06 +00:00
Lionel Landwerlin
bdacd6df5a
intel/perf: add a non installable tool to print metrics
...
Useful to look at the layout of the queries.
v2: Rework based on Marcin's comment
v3: Rebase
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893 >
2022-11-17 12:57:06 +00:00
Mark Janes
e3a842d627
intel/perf: fix overflow in index types
...
With DG2, the number of perf groups and metrics climbs into the
thousands. 16bit fields are not sufficient for storing metrics
indices, and the build throws warnings when compiling the generated
intel_perf_metrics.c
Use a 32bit integer for these values.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893 >
2022-11-17 12:57:06 +00:00
Lionel Landwerlin
7770346902
intel/perf: support new variable names
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893 >
2022-11-17 12:57:06 +00:00
Lionel Landwerlin
c1aa1059c6
intel/perf: support new operators for upcoming metrics
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893 >
2022-11-17 12:57:06 +00:00
Lionel Landwerlin
d4cbb66506
intel/perf: support more than 64 queries
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893 >
2022-11-17 12:57:06 +00:00
Lionel Landwerlin
1dd4cc0da5
intel/perf: fix variable type assumption error
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893 >
2022-11-17 12:57:06 +00:00
Sergi Blanch Torne
d969ac7c02
ci: don't remove wget from the packages of debian/x86_test-vk
...
The 'wget' package was in the list of ephemeral packages used only during the
build. 'Wget' installation comes from the build for the 'x86_build-base', and
the inclusion on this list only affects its purge. Jobs that use this image,
like 'venus-lavapipe' in 'virglrenderer', cannot use it as other GL jobs can.
So, please don't consider this package ephemeral when it comes from the upper
layer builder.
This 'wget' package is a known dependency on a job that uses this image. So,
even if this package is installed in the base image, it is good to have it
explicitly mentioned in the packages to install.
Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19784 >
2022-11-17 10:44:12 +00:00
Sergi Blanch Torne
987f9a67e0
ci: insert debian/x86_test-vk in image tags
...
Using the variable DEBIAN_X86_TEST_IMAGE_PATH in a Vulkan test, we realize the
reference to the Vulkan one is missing. Even more, hardcoded within mesa. With
this, a variable for Vulkan image has a reference VK on it, as well as the GL
one. But the old variable is still there, pointing to the value that can be
expected to avoid any brake on other CI elements.
Also, updated the build tag to regenerate the image.
Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19784 >
2022-11-17 10:44:12 +00:00
Lionel Landwerlin
440da44a84
anv: get rid of ilog2_round_up
...
__builtin_clz(value - 1) is undefined for with value=1 (because
__builtin_clz(0) is undefined).
Because we set rt_pipeline->stack_size = 1 when a ray tracing pipeline
doesn't need any stack allocation to differentiate from a dynamic size
(rt_pipeline->stack_size = 0) we can run into this undefinied behavior
issue.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: f68d64dac0 ("anv: Add support for vkCmdSetRayTracingPipelineStackSizeKHR")
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19781 >
2022-11-17 10:06:37 +00:00
David Heidelberg
a61378859c
ci/alpine: rename job to alpine-build-testing
...
Better describes what the job does.
@thx to MrCooper for suggestion.
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19789 >
2022-11-17 10:23:21 +01:00
Leo Liu
9bd11f6523
frontends/va: Use YUV400 YUY2 444P for JPEG only
...
Since these formats are only for JPEG, and not all the backend driver
supports these format. Eg radeonsi does, virgl doesn't, they should
be used only for JPEG profile.
Fixes d2c0ff1caf (frontends/va: add support for yuv400 and yuv444)
Signed-off-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19787 >
2022-11-17 09:06:15 +00:00
Samuel Pitoiset
62356e71f4
radv: suspend/resume XFB queries with NGG for meta operations
...
XFB queries enable primitives generated queries with NGG and meta
operations shouldn't be counted.
Reproduced on GFX10.3 by forcing NGG streamout.
Cc: 22.3 mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19785 >
2022-11-17 07:21:23 +00:00
Samuel Pitoiset
50fe37070f
aco: fix FS inputs loads in WQM with 16-bit
...
p_wqm needs to use the same size.
Fixes: 16d2c7ad55 ("aco/gfx11: perform FS input loads in WQM")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19788 >
2022-11-17 07:00:02 +00:00
Alyssa Rosenzweig
b24fe2badf
asahi: Unset PIPE_CAP_POINT_SIZE_FIXED
...
We do not support glPointSize(), we need point size lowered to gl_PointSize
writes in the frontend so we can use the GLES pat.
Fixes glamor.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Alyssa Rosenzweig
726603f779
asahi: Set data_valid with PERSISTENT or COHERENT
...
We won't get an unmap/flush but we could have had data already.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
7522f4f714
asahi: Make resource creation code modifier-aware
...
Needed for WSI.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Alyssa Rosenzweig
a57b4577a1
asahi: Fix indexed draw decode
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
fa81da9e2f
asahi: Add render scanout to resource
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
2aac18d7e4
asahi: Set cfg.levels for linear framebuffers
...
Otherwise we will crash in GenXML, which does not specify a default here.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
a5b8918800
asahi: Set fd/ro appropriately
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
f1771ec398
asahi: Implement agx_resource_get_param
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
3732a41677
asahi: Implement agx_resource_get_handle
...
Only useful on Linux.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
01964625eb
asahi: Implement agx_resource_from_handle
...
Only used on Linux, but can compile anywhere.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
b774ed7c18
asahi: Stub import/export code
...
It will be used on Linux, and it is convenient to be able to compile the same
code on macOS in the mean time.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
943d939a9f
asahi: Implement dmabuf modifier queries
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
7147313d0a
asahi: Support XRGB formats
...
Just treat them like ARGB. Not sure if this is sane, but it works for now...
Signed-off-by: Asahi Lina <lina@asahilina.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Asahi Lina
7c59e75481
asahi: Add renderonly to device
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Alyssa Rosenzweig
69ee201733
asahi: Remove index_bias assert
...
Index bias works okay already, tested against dEQP-GLES31 on agx/next.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Alyssa Rosenzweig
6ca69b2843
asahi: Localize the modifier #define hack for macOS
...
This reduces the burden of synchronizing the values between Linux and macOS and
provides fewer ways to shoot ourselves in the foot.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Alyssa Rosenzweig
b89d82fd6c
asahi: Use AIL tiling instead of DRM modifiers
...
...for internal parts of the driver that are unrelated to UAPI. This makes the
ail representation canonical and the modifier a mere UAPI detail.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Alyssa Rosenzweig
bf593e09b1
asahi: Handle synchronized transfers better
...
We need to flush the appropriate batch(es in the future) before a synchronized
transfer for correct results. To do so without major performance regressions, we
need to do extra bookkeeping about which batches write which resources. We
already know about reads via the BO list.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Alyssa Rosenzweig
e9dbbddf43
ail: Add get_wsi_stride_B helper
...
Centralize the logic around WSI strides, which are a software convention made
into UAPI rather than something set in silicon.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606 >
2022-11-17 02:47:10 +00:00
Jesse Natalie
2d04206673
meson: Enable SSE4.1 for MSVC
...
Modern MSVC always supports compiling with the SSE4.1 intrinsics with
no additional command line options, but doesn't have any options for
auto-vectorizing into SSE4.1.
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16840 >
2022-11-17 02:14:39 +00:00
Yonggang Luo
ad0d39efed
glsl: Use DETECT_CC_GCC_VERSION in glsl/builtin_functions.cpp
...
The expression "(__GNUC__ * 100) + __GNUC_MINOR" is invalid
because __GNUC_MINOR is not defined by the compiler
This can not fixes the previous version because DETECT_CC_GCC_VERSION is not available
in previous released version
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19771 >
2022-11-17 01:43:37 +00:00
Michel Dänzer
71a0a386b5
Revert "egl/glx: add fallback for zink loading"
...
This reverts commit 2569215f43 .
Conflicts:
src/egl/main/eglapi.c
src/glx/glxext.c
It broke the fallback to swrast in some cases where zink can't work.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7333
Fixes: 2569215f43 ("egl/glx: add fallback for zink loading")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19681 >
2022-11-17 01:08:33 +00:00
Dylan Baker
b1b419f7fe
docs: update calendar and link releases notes for 22.2.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19793 >
2022-11-17 01:03:13 +00:00
Dylan Baker
03eb7ae9ae
docs: Add sha256 sum for 22.2.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19793 >
2022-11-17 01:03:13 +00:00
Dylan Baker
5061bd6c25
docs: add release notes for 22.2.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19793 >
2022-11-17 01:03:13 +00:00
Jesse Natalie
2a1bb4df95
dzn: Ensure SRV ResourceMinLODClamp is set to 0.0
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Jesse Natalie
2f8d2a91a6
dzn: Use cube-array views for misaligned cubes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Jesse Natalie
6e7896aa44
dzn: Use DEPTH_STENCIL_DESC2 for front/back stencil read/write masks
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Jesse Natalie
73c9cfb61b
dzn: Use ID3D12GraphicsCommandList8 for front/back stencil ref
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Jesse Natalie
c5b6d0c882
dzn: Get options14
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Jesse Natalie
6b887034be
dzn: Use CreateCommandList1
...
We don't need to do the command list destroy/re-create dance if the
only reference to an allocator is a *closed* command list. Using
CreateCommandList1 gives us a closed command list to start with,
which better matches the semantics of Vulkan's begin/end for
command buffers.
Now that dzn's cmdbuf reset logic puts the cmdbuf back to the
*initial* state, move the command list reset to BeginCommandBuffer.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Jesse Natalie
56d4e038dd
dzn: Use common command buffer state tracking
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Jesse Natalie
f3b631f1dc
dzn: Upgrade baseline from ID3D12Device2 to 4
...
This is pretty old already and we'll want to use CreateCommandList1
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Jesse Natalie
a3dbc9ac25
microsoft/compiler: Emit sampleCmpLevel when needed
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537 >
2022-11-17 00:13:33 +00:00
Dave Airlie
442d1fe5ad
gallivm: use masked intrinsics for global and scratch access.
...
This seems to improve luxmark scores for me on the luxball scene
from numbers in the 4-500 range to 5-700 range.
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Tested-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19736 >
2022-11-16 23:31:54 +00:00