platform/upstream/mesa.git
13 months agoac/rgp: use correct API stage string for mesh/task shaders
Samuel Pitoiset [Mon, 11 Sep 2023 09:18:11 +0000 (11:18 +0200)]
ac/rgp: use correct API stage string for mesh/task shaders

This allows RGP to report the ISA.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25144>

13 months agoradv: fix instruction timing on GFX11
Samuel Pitoiset [Tue, 12 Sep 2023 06:51:49 +0000 (08:51 +0200)]
radv: fix instruction timing on GFX11

GFX11 seems to operate on the last active CU.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25171>

13 months agoradv: disable unsupported hw shader stages for RGP on GFX11+
Samuel Pitoiset [Tue, 12 Sep 2023 06:49:33 +0000 (08:49 +0200)]
radv: disable unsupported hw shader stages for RGP on GFX11+

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25171>

13 months agoradv: set THREAD_TRACE_TOKEN_MASK.BOP_EVENTS_TOKEN_INCLUDE on GFX10.3+
Samuel Pitoiset [Mon, 11 Sep 2023 18:23:25 +0000 (20:23 +0200)]
radv: set THREAD_TRACE_TOKEN_MASK.BOP_EVENTS_TOKEN_INCLUDE on GFX10.3+

PAL does that.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25171>

13 months agoci: Only look at file changes for MRs
Daniel Stone [Wed, 13 Sep 2023 12:36:26 +0000 (13:36 +0100)]
ci: Only look at file changes for MRs

Lists of files changed are only really relevant if we're pushing an MR.
We don't want to trigger 'user added .ci-farms-disabled/igalia' because
the user pushed a branch when this file was already present upstream.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25205>

13 months agoci: Use container rules for containers
Daniel Stone [Wed, 13 Sep 2023 12:30:38 +0000 (13:30 +0100)]
ci: Use container rules for containers

If we have diverging rulesets, we can have the base container jobs
possibly not being created, and the leaf container jobs then trying to
run, which ends up in us failing to create pipelines.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25205>

13 months agoci: Always set user container jobs to manual
Daniel Stone [Wed, 13 Sep 2023 12:30:07 +0000 (13:30 +0100)]
ci: Always set user container jobs to manual

Don't require source changes to create the jobs, just create them
always.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25205>

13 months agoci: Move farm-disable rules before anything else
Daniel Stone [Wed, 13 Sep 2023 12:29:06 +0000 (13:29 +0100)]
ci: Move farm-disable rules before anything else

For consistency, make our 'when: never' rules be the first rules to
match any job, either build or container.

Otherwise we could end up with some jobs having when: never and others
having when: manual.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25205>

13 months agoiris: modify Wa_14014414195 to use intel_needs_workaround
Tapani Pälli [Wed, 13 Sep 2023 05:01:04 +0000 (08:01 +0300)]
iris: modify Wa_14014414195 to use intel_needs_workaround

Only applies to DG2, this was fixed in MTL.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25197>

13 months agoradv/video: take db alignment into account when allocating images.
Dave Airlie [Tue, 12 Sep 2023 02:24:54 +0000 (12:24 +1000)]
radv/video: take db alignment into account when allocating images.

Make sure to take the db alignment into account when sizing the underlying
images.

Fixes a 360p sample from Lynne.

Cc: mesa-stable
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Lynne <dev@lynne.ee>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25168>

13 months agomeson: Warn about side-effects from DRM for FD KMDs
Mark Collins [Tue, 8 Aug 2023 10:00:49 +0000 (10:00 +0000)]
meson: Warn about side-effects from DRM for FD KMDs

Any build which requires Turnip to link to libdrm will cause a
runtime dependency which could be a compatibility hazard on
platforms such as Android which generally don't ship with libdrm.
This hazard could be unintentionally triggered and to avoid this
from happening, a warning is now issued when building FD with msm
alongside other backends or if DRM is enabled due to building a
Gallium driver using DRM.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agofreedreno+meson: Add lua+libarchive+libxml from Meson WrapDB
Mark Collins [Tue, 8 Aug 2023 09:54:03 +0000 (09:54 +0000)]
freedreno+meson: Add lua+libarchive+libxml from Meson WrapDB

These dependencies are required for building freedreno tools but on
platforms such as Android, these aren't included and would need to
be built from source. The easiest way to do this was using the
Meson WrapDB. Additionally, warnings were added when these deps are
missing as the decode tools will silently not be built otherwise.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agofreedreno/decode: Support building replay for multiple KMDs
Mark Collins [Tue, 8 Aug 2023 08:54:59 +0000 (08:54 +0000)]
freedreno/decode: Support building replay for multiple KMDs

As `freedreno_kmds` can contain both `msm` and `kgsl`, this case
would just produce a build with just KGSL due to the precedence of
the check which is inconsistent behavior. Now `replay` is built for
all active KMDs with a suffix for the KMD (eg: replay-kgsl/replay-msm).

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agofreedreno: Only add drm/computerator when system_has_kms_drm
Mark Collins [Mon, 7 Aug 2023 14:22:45 +0000 (14:22 +0000)]
freedreno: Only add drm/computerator when system_has_kms_drm

These are both MSM-DRM specific subprojects which depend on it and
cannot be built without, this change is required to allow for KGSL
freedreno tool builds to compile successfully.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agofreedreno/rnn: Remove %n usage in fprintf
Mark Collins [Mon, 7 Aug 2023 14:17:55 +0000 (14:17 +0000)]
freedreno/rnn: Remove %n usage in fprintf

fprintf was utilized with %n to count the amount of characters it
outputted but this was redundant since it was at the end of the
statement and fprintf itself returns the amount of characters it
writes out.

It should be noted that %n is a compatibility hazard on Android as
it isn't supported on Android due to security reasons.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agofreedreno/replay: Add "gpu_print" function for command streams
Danylo Piliaiev [Wed, 7 Jun 2023 14:53:28 +0000 (16:53 +0200)]
freedreno/replay: Add "gpu_print" function for command streams

Allows to dump GPU memory, e.g.
 gpu_print(&ctx, cs, 0x4000086080, 4);

would print 4 dowrds from 0x4000086080:
 CP Log [0]:
         20002000 47340000 20012001 47340001

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agofreedreno/replay: Add "print" instr to ir3 asm to be used in replay
Danylo Piliaiev [Thu, 1 Jun 2023 18:48:19 +0000 (20:48 +0200)]
freedreno/replay: Add "print" instr to ir3 asm to be used in replay

Could be used in shader assembly from rddecompiler when overriding
the cmdstream.

Usage:
 print r1.x, r3.z

 First arguments is three consecutive registers used for internal print
 needs.
 Second arg is register to print.

Output:
 Shader Log Entries: 36
 [0] 00000004 0.0000
 [1] 00000000 0.0000
 [2] 00000000 0.0000
 [3] 00000000 0.0000
 [4] beadc429 -0.3394
 [5] beadc429 -0.3394

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agofreedreno/rddecompiler: Update to handle a7xx
Danylo Piliaiev [Wed, 24 May 2023 13:01:10 +0000 (15:01 +0200)]
freedreno/rddecompiler: Update to handle a7xx

Also make rdcompiler compilable for Android.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agofreedreno/replay: Add limited support for KGSL
Danylo Piliaiev [Tue, 16 May 2023 11:31:55 +0000 (13:31 +0200)]
freedreno/replay: Add limited support for KGSL

KGSL doesn't support IOVAs being set form userspace, so as a workaround
we pre-allocate a single buffer and hope that it always starts from the
same address.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25005>

13 months agoanv: Remove i915_drm.h include from common code
José Roberto de Souza [Mon, 4 Sep 2023 18:25:56 +0000 (11:25 -0700)]
anv: Remove i915_drm.h include from common code

With the previous commit we are now able to build Anv without
including i915_drm.h from common code.

This is important as avoids that i915 specific code is included in
common code by mistake.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25044>

13 months agoanv: Move i915 handling of imported bos bo_flags
José Roberto de Souza [Mon, 4 Sep 2023 18:20:27 +0000 (11:20 -0700)]
anv: Move i915 handling of imported bos bo_flags

Imported bos already imported need special handling in i915.
That handling was moved to
anv_i915_gem_import_bo_alloc_flags_to_bo_flags() as the number of
imported bos is low.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25044>

13 months agoanv: Move bo_alloc_flags_to_bo_flags() to backend
José Roberto de Souza [Mon, 4 Sep 2023 18:15:29 +0000 (11:15 -0700)]
anv: Move bo_alloc_flags_to_bo_flags() to backend

The bo_flags are i915 specific and should not be handled in common
code, so here adding it to backend as it is in the hot-path.

There still i915 bo_flags handling in anv_device_import_bo() that
will be handled in the next patch.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25044>

13 months agoanv: Move i915 specific code from common anv_gem.c
José Roberto de Souza [Mon, 4 Sep 2023 17:29:17 +0000 (10:29 -0700)]
anv: Move i915 specific code from common anv_gem.c

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25212>

13 months agoanv: Move i915 specific gem_set_caching to backend
José Roberto de Souza [Mon, 4 Sep 2023 17:14:23 +0000 (10:14 -0700)]
anv: Move i915 specific gem_set_caching to backend

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25212>

13 months agovk/enum2str: add more max enum vendors
Mike Blumenkrantz [Wed, 13 Sep 2023 10:13:28 +0000 (06:13 -0400)]
vk/enum2str: add more max enum vendors

Acked-by: Iván Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25210>

13 months agozink: Change zink_vertex_elements_hw_state::b.strides to VkDeviceSize
Sviatoslav Peleshko [Wed, 13 Sep 2023 14:37:34 +0000 (17:37 +0300)]
zink: Change zink_vertex_elements_hw_state::b.strides to VkDeviceSize

Currently zink_vertex_elements_hw_state::b.strides is an array of 32-bit
unsigned values, while CmdBindVertexBuffers2EXT expects an array of
VkDeviceSize (64-bit unsigned). Instead of converting them for a call,
just change the type of the array itself.

Fixes: 76725452 ("gallium: move vertex stride to CSO")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9765
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25208>

13 months agoaux/tc: fix renderpass tracking fb state clobber scenario
Mike Blumenkrantz [Mon, 11 Sep 2023 13:41:37 +0000 (09:41 -0400)]
aux/tc: fix renderpass tracking fb state clobber scenario

in a stream like:
* set fb state (A)
* flush
* set fb state (B)
* draw -> driver query
* flush

the "driver query" should return the tc info corresponding to the most
recent fb state (B). previously this would increment to C because
the flag for incrementing at the start of a batch was set

Fixes: 07017aa137b ("util/tc: implement renderpass tracking")

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25206>

13 months agointel: Sync xe_drm.h
José Roberto de Souza [Mon, 11 Sep 2023 21:02:28 +0000 (14:02 -0700)]
intel: Sync xe_drm.h

Sync xe_drm.h with commit e51e857ffad4 ("drm/xe/uapi: Remove useless max_page_size").
Most relevant changes are the removal of max_page_size from
drm_xe_query_mem_region and the typo fix in XE_QUERY_CONFIG_MIN_ALIGNMENT.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25162>

13 months agoci/zink: Add another conversion fail on a618
Daniel Stone [Wed, 13 Sep 2023 14:37:27 +0000 (15:37 +0100)]
ci/zink: Add another conversion fail on a618

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25207>

13 months agoci/radeonsi: Skip more really slow tests
Daniel Stone [Wed, 13 Sep 2023 14:33:31 +0000 (15:33 +0100)]
ci/radeonsi: Skip more really slow tests

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25207>

13 months agofreedreno: Include speedbin fallback in 740 chipid to fix probing
Konrad Dybcio [Wed, 13 Sep 2023 12:29:02 +0000 (14:29 +0200)]
freedreno: Include speedbin fallback in 740 chipid to fix probing

The kernel exposes CHIP_ID, which consists of:

[63:48] const 0 / reserved
[47:32] speedbin (default 0xffff)
[31:0 ] actual gpu chip ID

Fix the 740 chip id to make it probe correctly.
Keep the existing entry for the downstream KGSL driver.

Fixes: cd3719be7d09 ("freedreno: Fully define a730 and a740 device properties")
Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25204>

13 months agoaux/tc: Add ASSERTED to unreferenced release build variable
Sil Vilerino [Wed, 13 Sep 2023 11:38:43 +0000 (07:38 -0400)]
aux/tc: Add ASSERTED to unreferenced release build variable

Fixes MSVC build error src/gallium/auxiliary/util/u_threaded_context.c(3184): error C4189: 'size': local variable is initialized but not referenced

Fixes: 51ad269198e ("aux/tc: handle stride mismatch during rp-optimized subdata")

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25203>

13 months agopvr: Use correct index when writing query availability data
Vlad Schiller [Mon, 4 Sep 2023 11:24:05 +0000 (12:24 +0100)]
pvr: Use correct index when writing query availability data

The availability data would be written to a different location in
the user provided buffer depending on whether the query for a given
index was available. Fix this by using fixed indicies when writing
the query and availability data.

Fixes conformance failures seen in the
dEQP-VK.query_pool.occlusion_query.get_reset_* test group when
implementing VK_EXT_host_query_reset.

Fixes: 279c7c6d5ad ("pvr: Implement vkGetQueryPoolResults API.")
Signed-off-by: Vlad Schiller <vlad-radu.schiller@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25116>

13 months agopanfrost: delete stale editorconfig file
Erik Faye-Lund [Mon, 11 Sep 2023 10:29:48 +0000 (12:29 +0200)]
panfrost: delete stale editorconfig file

We no longer use 8-space indent in panfrost, so let's remove the
needless .editorconfig, and instead inherit the 3-space indent from the
toplevel .editorconfig.

Fixes: 0afd691f296 ("panfrost: clang-format the tree")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25147>

13 months agozink: don't warn about missing scalarBlockLayout on v3dv
Mike Blumenkrantz [Wed, 13 Sep 2023 10:21:06 +0000 (06:21 -0400)]
zink: don't warn about missing scalarBlockLayout on v3dv

technically v3dv doesn't support the "full" feature, but it does support
enough of it to run zink without any issues

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25201>

13 months agoci/windows: drop build rules from test jobs
Eric Engestrom [Tue, 12 Sep 2023 17:08:15 +0000 (18:08 +0100)]
ci/windows: drop build rules from test jobs

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25183>

13 months agoci/windows: add windows docker runner tags to .windows-docker-vs2019
Eric Engestrom [Tue, 12 Sep 2023 18:33:52 +0000 (19:33 +0100)]
ci/windows: add windows docker runner tags to .windows-docker-vs2019

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25183>

13 months agoci/windows: centralize definition of windows runners tags
Eric Engestrom [Tue, 12 Sep 2023 18:32:07 +0000 (19:32 +0100)]
ci/windows: centralize definition of windows runners tags

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25183>

13 months agozink/ci: update list of expected failures for POLARIS10/NAVI10
Samuel Pitoiset [Wed, 13 Sep 2023 06:52:49 +0000 (08:52 +0200)]
zink/ci: update list of expected failures for POLARIS10/NAVI10

Fixed since piglit has been updated to
f7db20b03de6896d013826c0a731bc4417c1a5a0.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25199>

13 months agoci: don't run everything just because a farm gets re-enabled
Eric Engestrom [Mon, 11 Sep 2023 13:39:06 +0000 (14:39 +0100)]
ci: don't run everything just because a farm gets re-enabled

Let the other rules take care of this, as they did before
7cf13ea504e7e5be097e.

Fixes: 7cf13ea504e7e5be097e ("ci: skip containers & build jobs when disabling a farm")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25151>

13 months agov3dv: Enable VK API v1.2 for Android
Roman Stratiienko [Mon, 15 Aug 2022 15:20:21 +0000 (18:20 +0300)]
v3dv: Enable VK API v1.2 for Android

Now as all features are in place, we can enable it.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14195>

13 months agov3dv/android: Add AHardwareBuffer support
Roman Stratiienko [Sat, 2 Sep 2023 19:29:05 +0000 (22:29 +0300)]
v3dv/android: Add AHardwareBuffer support

The patch allows enabling Vulkan-based UI (SKIA, HWUI) on Android.
To enable - add 'TARGET_USES_VULKAN := true' into your device.mk file.

Passes:
 - dEQP-VK.api.external.memory.android_hardware_buffer.*
 - android.graphics.cts.BasicVulkanGpuTest
 - android.graphics.cts.MediaVulkanGpuTest

Camera preview window works.

Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14195>

13 months agov3dv: Split v3dv_image_init to use layout setting logic separately
Roman Stratiienko [Sat, 9 Sep 2023 21:12:27 +0000 (00:12 +0300)]
v3dv: Split v3dv_image_init to use layout setting logic separately

In AHB importing flow, the format is known at vkCreateImage step,
but buffer layout itself is not yet known. Buffer layout and modifier
must be updated later in vkBindImageMemory.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14195>

13 months agov3dv: Use format stored in vk_image and vk_image_view after init
Roman Stratiienko [Sat, 9 Sep 2023 20:53:25 +0000 (23:53 +0300)]
v3dv: Use format stored in vk_image and vk_image_view after init

Both vk_image_init and vk_image_view_init are smarter about format
settings and respect AHB extension needs.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14195>

13 months agov3dv/android: Rework Android native buffer importing logic
Roman Stratiienko [Sat, 2 Sep 2023 19:15:33 +0000 (22:15 +0300)]
v3dv/android: Rework Android native buffer importing logic

Rework it to use the existing VkImageDrmFormatModifierExplicitCreateInfoEXT
logic to set the image's explicit layout.

The code turned out to be generic enough so it could be integrated into
vk_image.c in the future and removed from the v3dv code.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14195>

13 months agov3dv/android: Add a helper function to support explicit layouts
Roman Stratiienko [Sat, 9 Sep 2023 18:26:05 +0000 (21:26 +0300)]
v3dv/android: Add a helper function to support explicit layouts

The function extracts buffer information from the gralloc and fills
the VkImageDrmFormatModifierExplicitCreateInfoEXT structure.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14195>

13 months agocompiler/types: Move builtin type initialization to C
Caio Oliveira [Thu, 7 Sep 2023 01:25:46 +0000 (18:25 -0700)]
compiler/types: Move builtin type initialization to C

While both clang and gcc can handle designated initializers in C++,
MSVC only does with the C++20 support enabled.  So move the initialization
of builtins to a C file.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Add workaround to use builtin_type_macros.h in C
Caio Oliveira [Sun, 3 Sep 2023 04:19:56 +0000 (21:19 -0700)]
compiler/types: Add workaround to use builtin_type_macros.h in C

In most versions of C, bool is defined as _Bool, so the macro for bool
gets generated with the wrong name.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Make struct glsl_type visible to C code
Caio Oliveira [Thu, 31 Aug 2023 05:32:13 +0000 (22:32 -0700)]
compiler/types: Make struct glsl_type visible to C code

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Use a linear (arena) allocator for glsl_types
Caio Oliveira [Fri, 1 Sep 2023 07:41:25 +0000 (00:41 -0700)]
compiler/types: Use a linear (arena) allocator for glsl_types

They are only deallocated in bulk all at once, which is exactly
the use case for the linear allocator.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Store builtin types directly as data
Caio Oliveira [Fri, 1 Sep 2023 07:41:25 +0000 (00:41 -0700)]
compiler/types: Store builtin types directly as data

Remove constructors from glsl_type so it can be used as a
POD ("plain old data") struct, allowing the builtins to be
initialized directly in memory.

For other types, we now allocate them from glsl_type_cache's mem_ctx,
instead of using the global allocator.

As a side-effect of how the new helpers work, we can completely
create the mock key types for struct/interface lookup without
allocating any memory.

Note there's no `make_sampler_type` since all the sampler types
are created through direct initialization.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Move static asserts about glsl_type to a central place
Caio Oliveira [Fri, 1 Sep 2023 07:36:29 +0000 (00:36 -0700)]
compiler/types: Move static asserts about glsl_type to a central place

Take it out of the way to reduce noise when reworking (and eventually
removing) the constructor code.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Simplify clearing the glsl_type_cache
Caio Oliveira [Fri, 1 Sep 2023 06:59:03 +0000 (23:59 -0700)]
compiler/types: Simplify clearing the glsl_type_cache

Since now all the data referenced by it is allocated with the cache's
mem_ctx, it is sufficient to just free it, and then reset the cache
state to be ready for a next initialization if it happens.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Don't store a mem_ctx per type
Caio Oliveira [Thu, 31 Aug 2023 18:59:38 +0000 (11:59 -0700)]
compiler/types: Don't store a mem_ctx per type

These are used only by types created at runtime.  Since those will follow
the lifetime of the glsl_type_cache, we can use its mem_ctx for all the types.

Without a mem_ctx, there's nothing to be done in the destructor, so remove it.

Note some keys are calculated by building a mock type, so we need to create
a tmp_ctx in some cases.  We'll get rid of them in a later commit.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Use type cache mem_ctx for hash tables
Caio Oliveira [Thu, 31 Aug 2023 06:57:54 +0000 (23:57 -0700)]
compiler/types: Use type cache mem_ctx for hash tables

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Add a mem_ctx for the glsl_type_cache
Caio Oliveira [Thu, 31 Aug 2023 06:54:04 +0000 (23:54 -0700)]
compiler/types: Add a mem_ctx for the glsl_type_cache

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Move local cache details to implementation file
Caio Oliveira [Thu, 31 Aug 2023 06:34:40 +0000 (23:34 -0700)]
compiler/types: Move local cache details to implementation file

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Use designated initializer syntax to specify builtins
Caio Oliveira [Fri, 1 Sep 2023 05:28:29 +0000 (22:28 -0700)]
compiler/types: Use designated initializer syntax to specify builtins

For now we use a temporary glsl_type_params struct, we will be able to
use the glsl_type directly once we make it a POD ("plain old data")
struct by getting rid of its constructors and destructors.

Note that since the name is statically allocated, there's no need to
strdup() it, deallocate it and also no need to have a mem_ctx.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Add extra level of macro to builtin_macros
Caio Oliveira [Fri, 1 Sep 2023 05:22:52 +0000 (22:22 -0700)]
compiler/types: Add extra level of macro to builtin_macros

This will make easier to transition from the macro calling a constructor
to the macro using designated initializers for a struct.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agoglsl: Don't create struct type builtins
Caio Oliveira [Mon, 11 Sep 2023 21:34:21 +0000 (14:34 -0700)]
glsl: Don't create struct type builtins

Unlike for simpler types, struct types have a runtime cache, that's used to
ensure same type can be compared to same pointer.  The existing code was bypassing
it, potentially breaking that invariant.  One potential issue would be when
decoding/encoding types, the resulting type would be pointer-different than what
was stored.

This hasn't caused a visible issue, but the (incomplete) special handling for struct
builtins is in the way of other changes.

Change the code to use get_struct_instance(), and also only ever load those if the
parser need the types, since some of them are deprecated types that we might never
want to load.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agoglsl: Add missing glsl_types initialization to test_optpass
Caio Oliveira [Wed, 13 Sep 2023 02:15:23 +0000 (19:15 -0700)]
glsl: Add missing glsl_types initialization to test_optpass

Will be needed when the builtin struct types will go through regular
initialization.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agocompiler/types: Move GLSL specific builtin structs into glsl/
Caio Oliveira [Thu, 7 Sep 2023 00:28:32 +0000 (17:28 -0700)]
compiler/types: Move GLSL specific builtin structs into glsl/

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>

13 months agoci/anv: Add testing on JSL.
Emma Anholt [Wed, 30 Aug 2023 16:13:31 +0000 (09:13 -0700)]
ci/anv: Add testing on JSL.

ChromeOS is deprioritizing native GL drivers, so move testing on the
boards we maintain mostly over to anv.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25155>

13 months agoci/anv: Add a manual full VK run for TGL.
Emma Anholt [Wed, 30 Aug 2023 18:58:53 +0000 (11:58 -0700)]
ci/anv: Add a manual full VK run for TGL.

There's a bunch of noise over time in the anv-tgl-fails.txt from the set
of tests run changing and catching more of the failures.  If we have a
nightly full run, we can keep things up to date more easily (as seen here,
where I finish filling out the modifiers crashes and drop a stale xfail).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25155>

13 months agoci/anv: Drop "-vk" from the job name.
Emma Anholt [Thu, 31 Aug 2023 18:33:42 +0000 (11:33 -0700)]
ci/anv: Drop "-vk" from the job name.

It's already implied by "anv"

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25155>

13 months agoci/anv: Drop DEQP_VER:vk setting.
Emma Anholt [Wed, 30 Aug 2023 16:25:59 +0000 (09:25 -0700)]
ci/anv: Drop DEQP_VER:vk setting.

It's only used if you don't set DEQP_SUITE.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25155>

13 months agoclover: fix parameter arguments since recent translator changes.
Dave Airlie [Tue, 10 Aug 2021 04:53:53 +0000 (14:53 +1000)]
clover: fix parameter arguments since recent translator changes.

The translator recently unmapped where const info gets stored,
and you can ask for the metadata to be passed through instead, do that
for now, until it's all resolved.

Fixes: api get_kernel_arg_info
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13449>

13 months agoglsl: remove field from gl_shader_program
Timothy Arceri [Fri, 8 Sep 2023 03:36:04 +0000 (13:36 +1000)]
glsl: remove field from gl_shader_program

We don't need to carry this value around, its only used a single time in
the linker. Instead simply extract it from gl_shader when we need it.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25105>

13 months agoglsl: check for xfb setting xfb info
Mike Blumenkrantz [Wed, 6 Sep 2023 14:08:35 +0000 (10:08 -0400)]
glsl: check for xfb setting xfb info

this otherwise hits the default buffer=0 path, which is invalid
for drivers which don't support xfb

fixes #9763

cc: mesa-stable

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25082>

13 months agozink: pass a stage mask to pipeline create functions
Mike Blumenkrantz [Wed, 6 Sep 2023 16:25:18 +0000 (12:25 -0400)]
zink: pass a stage mask to pipeline create functions

this is more accurate than checking random unionized zink_shader_object
members

no functional changes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25087>

13 months agozink: use FAIL_ON_PIPELINE_COMPILE_REQUIRED for GPL path
Mike Blumenkrantz [Wed, 6 Sep 2023 14:33:04 +0000 (10:33 -0400)]
zink: use FAIL_ON_PIPELINE_COMPILE_REQUIRED for GPL path

it should be low-cost to check for a cached+optimized pipeline on first
compile, so do that to avoid unnecessary pipeline compiles

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25087>

13 months agozink: remove an intermediate variable in pipeline compile selection
Mike Blumenkrantz [Wed, 6 Sep 2023 14:31:48 +0000 (10:31 -0400)]
zink: remove an intermediate variable in pipeline compile selection

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25087>

13 months agozink: add a flag for combined pipeline compile for doing FAIL_ON_PIPELINE_COMPILE_REQ...
Mike Blumenkrantz [Wed, 6 Sep 2023 14:30:10 +0000 (10:30 -0400)]
zink: add a flag for combined pipeline compile for doing FAIL_ON_PIPELINE_COMPILE_REQUIRED

not yet used

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25087>

13 months agozink: slightly refactor pipeline compile selection
Mike Blumenkrantz [Wed, 6 Sep 2023 14:28:08 +0000 (10:28 -0400)]
zink: slightly refactor pipeline compile selection

no functional changes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25087>

13 months agolavapipe: KHR_map_memory2
Mike Blumenkrantz [Tue, 12 Sep 2023 16:10:13 +0000 (12:10 -0400)]
lavapipe: KHR_map_memory2

Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25181>

13 months agospirv: use a pointer sized int type for opencl event_t
Dave Airlie [Mon, 11 Sep 2023 06:53:55 +0000 (16:53 +1000)]
spirv: use a pointer sized int type for opencl event_t

llvm16 + opaque pointers uses a ptr to event for the opaque type,
llvm 17 fixes this properly, but the fix doesn't look too backportable.

Cc: mesa-stable
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25165>

13 months agovenus: implement VK_EXT_vertex_input_dynamic_state
Juston Li [Mon, 7 Aug 2023 22:34:07 +0000 (15:34 -0700)]
venus: implement VK_EXT_vertex_input_dynamic_state

requires a fixup to ignore static pVertexInputState if dynamic state
is used.

Signed-off-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25193>

13 months agovenus: sync protocol for VK_EXT_vertex_input_dynamic_state
Juston Li [Tue, 12 Sep 2023 20:43:58 +0000 (13:43 -0700)]
venus: sync protocol for VK_EXT_vertex_input_dynamic_state

Signed-off-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25193>

13 months agocompiler/types: Remove unused GLSL_TYPE_FUNCTION and related functions
Caio Oliveira [Fri, 1 Sep 2023 17:50:31 +0000 (10:50 -0700)]
compiler/types: Remove unused GLSL_TYPE_FUNCTION and related functions

GLSL doesn't use that type.  SPIR-V used for a while but later started
relying on its own data structures and stopped using it.
See ca62e849d3c ("nir/spirv: Stop using glsl_type for function types")

If we were ever to add this one again, would be better to have a way to
grab a key for lookup that did not require allocations, right now that's
needed to inject return type as the first element in params array.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25160>

13 months agocompiler/types: Constify a couple of pointers in glsl_type
Caio Oliveira [Fri, 1 Sep 2023 06:45:02 +0000 (23:45 -0700)]
compiler/types: Constify a couple of pointers in glsl_type

This will allow builtins to initialize those with read-only
data in the future.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25160>

13 months agocompiler/types: Don't duplicate empty string
Caio Oliveira [Fri, 1 Sep 2023 07:16:04 +0000 (00:16 -0700)]
compiler/types: Don't duplicate empty string

We can use the static version of the empty string.  There's no worry
about freeing that string incorrectly since what is being deallocated
later is the whole mem_ctx.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25160>

13 months agocompiler/types: Use right hash for function types
Caio Oliveira [Fri, 1 Sep 2023 17:14:13 +0000 (10:14 -0700)]
compiler/types: Use right hash for function types

No bug really materialized since function types
aren't currently being used.

Fixes: 26f456203ca ("compiler/types: Use hash table pre-hashed functions for type caching")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25160>

13 months agointel/fs: use ffsll so we don't explode on 32 bits
Iván Briano [Tue, 12 Sep 2023 21:40:36 +0000 (14:40 -0700)]
intel/fs: use ffsll so we don't explode on 32 bits

Fixes: b200e5765cb ("anv: use a simpler MUE layout for fast linked libraries")

Tested-by: Mark Janes <markjanes@swizzler.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25192>

13 months agoradv: don't emit event code on video queues.
Dave Airlie [Tue, 12 Sep 2023 03:30:12 +0000 (13:30 +1000)]
radv: don't emit event code on video queues.

I don't know if these can be done properly, but for now just don't
emit the standard cp stuff since it hangs the GPU.

"Fixes" dEQP-VK.video.synchronizat*

Cc: mesa-stable
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25170>

13 months agowsi/x11: Don't allow signal_present_id to rewind.
Hans-Kristian Arntzen [Tue, 12 Sep 2023 12:31:14 +0000 (14:31 +0200)]
wsi/x11: Don't allow signal_present_id to rewind.

If present ID is 0, we should consider it to be ignored.
Avoids a theoretical problem when using IMMEDIATE mode with present ID
where some images don't set present ID.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25178>

13 months agowsi/x11: Fix potential deadlock in present ID.
Hans-Kristian Arntzen [Tue, 12 Sep 2023 12:28:18 +0000 (14:28 +0200)]
wsi/x11: Fix potential deadlock in present ID.

If we observe IDLE before COMPLETE, another queued image may have
presented with present ID 0 which would break the check fixed in this
commit. The original fix for present_id / signal_present_id split
forgot to take this into account.

Fixes: 32f7ff2c204b ("Fix present ID signal when IDLE comes before
COMPLETE").

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25178>

13 months agovenus: fix a device memory report leak
Yiwei Zhang [Tue, 12 Sep 2023 08:36:50 +0000 (01:36 -0700)]
venus: fix a device memory report leak

Fixes: f70a08bc60f ("venus: handle device memory report requests")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25176>

13 months agointel/genxml: update PIPE_CONTROL instruction for dg2
Rohan Garg [Fri, 8 Sep 2023 15:10:37 +0000 (17:10 +0200)]
intel/genxml: update PIPE_CONTROL instruction for dg2

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25124>

13 months agoRevert "frontends/va: Also map VAImageBufferType for reading"
Leo Liu [Fri, 8 Sep 2023 18:58:43 +0000 (14:58 -0400)]
Revert "frontends/va: Also map VAImageBufferType for reading"

This reverts commit 12a4f2c1328f31954f9bf70d255f9d3e7bb010d4.

With PIPE_MAP_READ_WRITE and derived image, the encoder will copy
to and from staging buffer for each frame, which caused performance
degradation, even worse than putImage.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25128>

13 months agoci_run_n_monitor: add comment to explain "MR > fork" logic
Eric Engestrom [Tue, 12 Sep 2023 17:54:20 +0000 (18:54 +0100)]
ci_run_n_monitor: add comment to explain "MR > fork" logic

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25186>

14 months agoci: remove duplicate fork pipeline in MRs
Eric Engestrom [Fri, 8 Sep 2023 18:15:15 +0000 (19:15 +0100)]
ci: remove duplicate fork pipeline in MRs

The argument for keeping this duplicate was to not affect
the ci_run_n_monitor script (which by default picked the pipeline in the
user's fork), but the script already supported specifying
a `--pipeline-url` to support that use-case, and it now automatically
picks the MR pipeline if there is no fork pipeline.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25154>

14 months agobin/ci_run_n_monitor: automatically pick MR pipelines when they exist
Eric Engestrom [Mon, 11 Sep 2023 13:58:17 +0000 (14:58 +0100)]
bin/ci_run_n_monitor: automatically pick MR pipelines when they exist

When an MR has been created, we usually want to run the jobs in the MR
pipeline so that reviewers see that things work as expected.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25153>

14 months agobin/ci_run_n_monitor: print in which repo we're looking for the pipeline
Eric Engestrom [Mon, 11 Sep 2023 13:58:17 +0000 (14:58 +0100)]
bin/ci_run_n_monitor: print in which repo we're looking for the pipeline

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25153>

14 months agonir: fix invalid sampler search by texture id
Illia Polishchuk [Mon, 11 Sep 2023 13:10:57 +0000 (16:10 +0300)]
nir: fix invalid sampler search by texture id

Sampler id cannot be mapped to a uniform object location

Fixes: 1a8dd84ec61 ("nir: Propagate the type sampler type change to the used variable.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9793

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Signed-off-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25145>

14 months agozink: move find_sampler_var from zink to nir core
Illia Polishchuk [Mon, 11 Sep 2023 13:08:31 +0000 (16:08 +0300)]
zink: move find_sampler_var from zink to nir core

Avoid code duplication because it need to be used in following commits

Fixes: 1a8dd84ec61 ("nir: Propagate the type sampler type change to the used variable.")

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Signed-off-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25145>

14 months agollvmpipe: make sure to initialize the lp_setup_context slots with the default values
Corentin Noël [Mon, 11 Sep 2023 14:53:03 +0000 (16:53 +0200)]
llvmpipe: make sure to initialize the lp_setup_context slots with the default values

As 0 is an actual valid value, this can lead to issues when we actually want to use them.

This fixes `spec@arb_cull_distance@basic-cull-3` crashes for instance.

Cc: mesa-stable
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25152>

14 months agoradv: use shortcut_1d_workgroup_id
Rhys Perry [Fri, 8 Sep 2023 10:36:00 +0000 (11:36 +0100)]
radv: use shortcut_1d_workgroup_id

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24882>

14 months agoradv: optimize mesh workgroup ID using ts_mesh_dispatch_dimensions
Rhys Perry [Wed, 23 Aug 2023 18:47:52 +0000 (19:47 +0100)]
radv: optimize mesh workgroup ID using ts_mesh_dispatch_dimensions

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24882>

14 months agonir/lower_system_values change num_workgroups to uint32_t
Rhys Perry [Fri, 8 Sep 2023 14:52:21 +0000 (15:52 +0100)]
nir/lower_system_values change num_workgroups to uint32_t

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24882>

14 months agozink: ci updates
Mike Blumenkrantz [Tue, 12 Sep 2023 12:53:41 +0000 (08:53 -0400)]
zink: ci updates

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25180>