Yonggang Luo
4b0409ff9a
intel: fixes -Werror,-Wunused-but-set-variable for clang-15
...
one of those error message:
../../src/intel/compiler/brw_vec4_cmod_propagation.cpp:53:8: error: variable 'ip' set but not used [-Werror,-Wunused-but-set-variable]
int ip = block->end_ip + 1;
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19527 >
2022-11-17 23:17:40 +00:00
Yonggang Luo
d6bd382352
intel: Fixes -Werror,-Wbitwise-instead-of-logical for clang-15 in brw_nir_lower_shader_calls.c
...
error message:
error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19527 >
2022-11-17 23:17:40 +00:00
Filip Gawin
63f353b456
r300: don't use abs twice in transform_TRUNC on older hardware
...
r400:
total instructions in shared programs: 27594 -> 27523 (-0.26%)
instructions in affected programs: 3594 -> 3523 (-1.98%)
helped: 61
HURT: 0
helped stats (abs) min: 1 max: 4 x̄: 1.16 x̃: 1
helped stats (rel) min: 1.16% max: 8.70% x̄: 2.55% x̃: 1.64%
95% mean confidence interval for instructions value: -1.29 -1.04
95% mean confidence interval for instructions %-change: -3.13% -1.97%
Instructions are helped.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19807 >
2022-11-17 21:57:38 +00:00
Jesse Natalie
efe5b9163e
meson: Enable initialized-but-unused warning for MSVC
...
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19792 >
2022-11-17 21:20:38 +00:00
Jesse Natalie
383715e33b
gallium/vl: Remove unused win32 screen var
...
Reviewed-By: Sil Vilerino <sivileri@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19792 >
2022-11-17 21:20:38 +00:00
Eric Engestrom
6c329e8f0a
docs: update calendar for 22.3.0-rc3
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19822 >
2022-11-17 20:37:49 +00:00
Tomeu Vizoso
fb57aa69c8
zink/ci: Add automatic test on Adreno 618 with Turnip
...
Make the existing manual test automatic, sharding to 3 boards.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19071 >
2022-11-17 19:30:46 +00:00
Tomeu Vizoso
8aa55cbcf2
ci/freedreno: Test on a618
...
Do the same testing we currently do on a630.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19071 >
2022-11-17 19:30:46 +00:00
Tomeu Vizoso
7ba9d99e5a
ci/turnip: Shard the tests on a618 over more boards
...
12 kingoftown Chromebooks have been added to Collabora's LAVA lab.
Use them to run the same tests as before, as the jobs never take less
than 10 minutes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19071 >
2022-11-17 19:30:46 +00:00
Konstantin Seurer
f24bb8194b
radv/rra: Fix copying accel structs that were not built yet
...
In the case that radv_GetEventStatus always returns true, the loop will
never exit.
Fixes: 5749806
("radv: Add Radeon Raytracing Analyzer trace dumping utilities")
Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19772 >
2022-11-17 17:24:54 +00:00
Jason Ekstrand
a5e3a50688
vulkan: Update the XML and headers to 1.3.235
...
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19815 >
2022-11-17 16:51:05 +00:00
Sil Vilerino
0c4fdbaa92
d3d12: Video Screen - Do not crash if HEVC not supported, return no support instead
...
Fixes: 8f654b90
("d3d12: Fix HEVC wrong caps detection due to bad parenthesis in condition")
Signed-off-by: Sil Vilerino <sivileri@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19813 >
2022-11-17 16:02:55 +00:00
José Roberto de Souza
23adf60f96
iris: Get VM id from iris_bufmgr's fd
...
iris_bufmgr_init_global_vm() was getting the VM id from the callers
fd not the iris_bufmgr's duplicated fd.
If i915 driver decides to always return unique vm ids, like a counter
that is initialized per device. So fd0 would have vm id = 0 by
default, fd1(dup of fd0) would have vm id = 1... in this scenario it
would cause a mismatch. But it is not the current i915 implementation.
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19467 >
2022-11-17 14:32:37 +00:00
Lionel Landwerlin
ac51c0c93c
intel/perf: add ACM/DG2 performance 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:07 +00:00
Lionel Landwerlin
fdf602a545
intel/perf: use the new OA format for Gfx12.5+
...
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
02608c25ec
drm-uapi: import i915_drm.h changes for the new OA report type
...
To be replace by a proper drm-next update.
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
61fef1ed72
intel/perf: fix B/C counters accumulation in non query mode
...
When we're not using queries, all the counters from the
MI_REPORT_PERF_COUNT are available. This is the case when using
perfetto with the global pps datasource that capture global counter
values.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 8750f43a90
("intel/perf: add performance query layout using MI_SRM")
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
6c2e7797f5
anv: tweak performance query timeout based on number of passes
...
This avoids device lost events when we replay a command buffer 1k
times on DG2.
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
56bd81ee21
anv/perf: fixup counter/query mapping
...
The intel_perf_counter_pass::pass field is actually useless and
invalid.
Once you have mapped all the counters to all the metrics, the order of
the metrics capture is dictated by intel_perf_get_n_passes().
When reading values that is the order we should follow.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 2001a80d4a
("anv: Implement VK_KHR_performance_query")
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
7fbfa694a8
intel/perf: simplify pass computation loop
...
We don't need to go through all the metric sets as we're already built
a bitset matching per counter to figure out in which metric set a
particular counter is.
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
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