platform/upstream/mesa.git
2 years agoradv: Remove unnecessary null check.
Vinson Lee [Thu, 16 Jun 2022 23:03:20 +0000 (16:03 -0700)]
radv: Remove unnecessary null check.

Fix defect reported by Coverity Scan.

Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking subpass suggests that it may be null,
but it has already been dereferenced on all paths leading to the check.

Fixes: 779e09639b5 ("radv: configure DB_Z_INFO.NUM_SAMPLES correctly on GFX11")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17100>

2 years agoci: Uprev apitrace to 790380e05854
David Heidelberg [Mon, 20 Jun 2022 13:34:53 +0000 (15:34 +0200)]
ci: Uprev apitrace to 790380e05854

Better context error reporting, fix crash for replaying PlagueIncEvolved

Reviewed-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17136>

2 years agor300: prefer old not native swizzle in constant folding
Filip Gawin [Sat, 18 Jun 2022 11:57:14 +0000 (13:57 +0200)]
r300: prefer old not native swizzle in constant folding

r300 and r400 have strict rules with swizzles, so we
will need to convert swizzle back.

Operating on 0, 1, H in this case unnecessarily makes
rest of r300 overly complicated.
(also it's not currently able to handle this)

helps with:
deqp-gles2@functional@shaders@random@exponential@fragment@24

cc: mesa-stable

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

2 years agopanfrost: Implement provoking vertices on Valhall
Alyssa Rosenzweig [Wed, 15 Jun 2022 20:06:00 +0000 (16:06 -0400)]
panfrost: Implement provoking vertices on Valhall

Starting with Valhall, the provoking vertex state is specified per-framebuffer
(batch) instead of per-draw. We use the pan_tristate infrastructure to translate
between desktop OpenGL's per-draw semantics to Valhall's per-framebuffer
semantic. This is notably not required for GLES or Vulkan.

If the provoking vertex is unset when the tiler context is generated, it could
be set (incompatibly) later in the batch, and the tiler context's provoking
vertex field would no longer match the framebuffer's. That would violate a
hardware invariant. To ensure that doesn't happen, we make sure to set provoking
vertexes *before* generating the tiler context so it can't change after.

Fixes arb-provoking-vertex-render on Valhall.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17068>

2 years agopanfrost: Add tristate_is_defined helper
Alyssa Rosenzweig [Wed, 15 Jun 2022 20:03:32 +0000 (16:03 -0400)]
panfrost: Add tristate_is_defined helper

This is useful to ensure that the tri-state has been set. It could be inlined,
but the tri-state structure is designed to be opaque so this matches better.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17068>

2 years agopanfrost: Fix batch state changes on Valhall
Alyssa Rosenzweig [Wed, 15 Jun 2022 19:54:08 +0000 (15:54 -0400)]
panfrost: Fix batch state changes on Valhall

If we need to change batch state (currently just point coord origins), not only
do we need to flush the old batch, but also set the desired state on the new
batch. That second step was missing. Fix that so this mechanism works as
intended.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Fixes: 3641dfe4367 ("panfrost: Flip point coords in hardware")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17068>

2 years agopanfrost: Disable QUADS on Valhall
Alyssa Rosenzweig [Wed, 15 Jun 2022 19:56:24 +0000 (15:56 -0400)]
panfrost: Disable QUADS on Valhall

Even with the fixes in the rest of the series, arb-provoking-vertex-render is
still failing on Valhall for a single subcase (involving QUADS). It seems likely
that QUADS support is broken on Valhall, given it's not used in any of the APIs
for which Arm ships drivers.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17068>

2 years agointel/compiler: vectorize task payload loads/stores
Marcin Ślusarz [Mon, 13 Jun 2022 12:44:30 +0000 (14:44 +0200)]
intel/compiler: vectorize task payload loads/stores

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17000>

2 years agonir/opt_load_store_vectorize: handle task payloads
Marcin Ślusarz [Mon, 13 Jun 2022 12:43:45 +0000 (14:43 +0200)]
nir/opt_load_store_vectorize: handle task payloads

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17000>

2 years agopvr: Extend hard coding infra to allow per stage per device coding.
Karmjit Mahil [Wed, 15 Jun 2022 14:35:14 +0000 (15:35 +0100)]
pvr: Extend hard coding infra to allow per stage per device coding.

This commit extends the graphics hard coding infrastructure to
allow the independent hard coding of stages, i.e. hard code fragment
stage and vertex stage separately instead of having to hard code
everything.

It also extends the infrastructure to allow per device hard coding.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17106>

2 years agopvr: Enable 33.15.11.3 (AXE-1-16M).
Karmjit Mahil [Wed, 11 May 2022 12:39:21 +0000 (13:39 +0100)]
pvr: Enable 33.15.11.3 (AXE-1-16M).

This commit adds 33.15.11.3 in the supported BVNCs and addresses
differences in the descriptor limits between devices so that the
physical device limit is accurate.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17106>

2 years agopvr: Add TI AM62 as a supported device.
Frank Binns [Thu, 24 Mar 2022 14:47:03 +0000 (14:47 +0000)]
pvr: Add TI AM62 as a supported device.

The AM62 platform contains an IMG AXE-1-16M GPU.

Co-Authored-By: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17106>

2 years agoci/freedreno: disable non-existing trace
David Heidelberg [Mon, 20 Jun 2022 13:23:21 +0000 (15:23 +0200)]
ci/freedreno: disable non-existing trace

Never existed in the repository.

Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17137>

2 years agov3dv/ci: Update expected results
Juan A. Suarez Romero [Mon, 20 Jun 2022 14:28:54 +0000 (16:28 +0200)]
v3dv/ci: Update expected results

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17141>

2 years agoci/dzn: Move to a .toml description
Boris Brezillon [Mon, 20 Jun 2022 12:14:54 +0000 (14:14 +0200)]
ci/dzn: Move to a .toml description

This way we don't force a CI run on all platforms anytime we add a
group of test, and, as a bonus, we make dozen CI consistent with other
platforms.

Suggested-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Suggested-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17074>

2 years agoci/freedreno: smuggle myself into restricted traces access list
David Heidelberg [Mon, 13 Jun 2022 22:03:34 +0000 (00:03 +0200)]
ci/freedreno: smuggle myself into restricted traces access list

Already have access into traces-db-restricted repository, so this just
allow me to trigger the job without patching.

Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17016>

2 years agoci/freedreno: update restricted traces to the brotli compressed version
David Heidelberg [Mon, 13 Jun 2022 21:44:06 +0000 (23:44 +0200)]
ci/freedreno: update restricted traces to the brotli compressed version

Save some space on proxies and speedup network transfer to the runners.

Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17016>

2 years agogallium/tools: fixes to option handling
Matti Hamalainen [Thu, 16 Jun 2022 14:01:39 +0000 (17:01 +0300)]
gallium/tools: fixes to option handling

Not all options in the options object are set by all tools.
Instead of using argparse result objects directly, use separate
with default settings and copy relevant attributes there.

Signed-off-by: Matti Hamalainen <ccr@tnsp.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17108>

2 years agoanv: Use sampleLocationsEnable for sample locations
Mykhailo Skorokhodov [Sun, 19 Jun 2022 20:56:12 +0000 (23:56 +0300)]
anv: Use sampleLocationsEnable for sample locations

The spec says: "sampleLocationsEnable controls whether custom sample
locations are used. If sampleLocationsEnable is VK_FALSE, the default
sample locations are used and the values specified in
sampleLocationsInfo are ignored."

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6675
Signed-off-by: Mykhailo Skorokhodov <mykhailo.skorokhodov@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17134>

2 years agodzn: correct order of src_subres and dst_subres args
Erik Faye-Lund [Mon, 20 Jun 2022 10:11:57 +0000 (12:11 +0200)]
dzn: correct order of src_subres and dst_subres args

Fixes: 2d0798440b4 ("dzn: Add support for dynamic rendering")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17133>

2 years agoradv: Check descriptor pool entry count before allocating a new set.
Georg Lehmann [Sun, 19 Jun 2022 20:16:28 +0000 (22:16 +0200)]
radv: Check descriptor pool entry count before allocating a new set.

It's simpler and more efficient.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17127>

2 years agoradv: Remove redundant memset in radv_descriptor_set_create.
Georg Lehmann [Sun, 19 Jun 2022 20:12:54 +0000 (22:12 +0200)]
radv: Remove redundant memset in radv_descriptor_set_create.

The memset below also clears this memory, plus the descriptor set header.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17127>

2 years agopvr: Add graphics pipeline hard coding infrastructure.
Karmjit Mahil [Tue, 7 Jun 2022 14:29:46 +0000 (15:29 +0100)]
pvr: Add graphics pipeline hard coding infrastructure.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Acked-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16999>

2 years agopvr: Remove unused output_selects from vertex shader state.
Karmjit Mahil [Mon, 6 Jun 2022 13:59:23 +0000 (14:59 +0100)]
pvr: Remove unused output_selects from vertex shader state.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Acked-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16999>

2 years agopvr: Change compute hard coding infrastructure.
Karmjit Mahil [Wed, 1 Jun 2022 14:04:59 +0000 (15:04 +0100)]
pvr: Change compute hard coding infrastructure.

This commit changes the way in which the hard coding is done in
the compute pipeline to allow easier hard coding for demos other
than the simple-compute demo.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Acked-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16999>

2 years agointel/dev: fixup max_cs_workgroup_threads after hwconfig is read
Marcin Ślusarz [Wed, 15 Jun 2022 17:21:23 +0000 (19:21 +0200)]
intel/dev: fixup max_cs_workgroup_threads after hwconfig is read

Without it we get max value from gfx12 on gfx>12.

Fixes: d9ff9ea9c33 ("intel/dev: Read hwconfig from i915")

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17063>

2 years agoaco: fix validation of SOP1 instructions without definitions
Samuel Pitoiset [Thu, 16 Jun 2022 12:49:24 +0000 (14:49 +0200)]
aco: fix validation of SOP1 instructions without definitions

Like s_setpc_b64.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17082>

2 years agoradv/amdgpu: do not add "global" BO to the virtual BO list
Samuel Pitoiset [Thu, 16 Jun 2022 15:20:14 +0000 (17:20 +0200)]
radv/amdgpu: do not add "global" BO to the virtual BO list

To avoid dangling BO references if it's destroyed without being
previously unbound. This is under Vulkan spec clarification but it
looks like the "global" BO fix is simple enough to workaround the
issue for now.

This fixes a CPU hang with Halo Infinite because the kernel rejects
a submission (invalid BO handle found).

Cc: 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/17085>

2 years agoradv/amdgpu: make sure to reset the number of BO when there is no ranges
Samuel Pitoiset [Fri, 17 Jun 2022 07:10:00 +0000 (09:10 +0200)]
radv/amdgpu: make sure to reset the number of BO when there is no ranges

If an application binds a sparse resource and then unbind it with NULL,
the number of "real" BOs in the virtual BO list should be reset to 0.
Otherwise, it might use a dangling BO reference if it's destroyed just
after being unbound.

Cc: 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/17085>

2 years agoci: uprev vkd3d-proton to 39d07dea2cef34bfb3ed39741f026bc637e3eec4
Samuel Pitoiset [Fri, 17 Jun 2022 07:25:14 +0000 (09:25 +0200)]
ci: uprev vkd3d-proton to 39d07dea2cef34bfb3ed39741f026bc637e3eec4

The 2.6 version is old (released 4 months ago), the latest contains
even more useful tests (+2900 tests). Use the master branch by default,
so it could be regularly updated.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Martin Roukala <martin.roukala@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17105>

2 years agozink: ci updates
Mike Blumenkrantz [Mon, 20 Jun 2022 00:49:37 +0000 (20:49 -0400)]
zink: ci updates

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

2 years agozink: relax zink_resource_buffer_needs_barrier checks
Mike Blumenkrantz [Sat, 18 Jun 2022 14:05:55 +0000 (10:05 -0400)]
zink: relax zink_resource_buffer_needs_barrier checks

this now matches zink_resource_image_needs_barrier

cc: mesa-stable

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

2 years agozink: don't short-circuit gfx stage finding during barrier generation
Mike Blumenkrantz [Sat, 18 Jun 2022 13:48:51 +0000 (09:48 -0400)]
zink: don't short-circuit gfx stage finding during barrier generation

according to spec, all stages must be specified, not just the first one

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

2 years agozink: collect gfx stages for all bindings during barrier generation
Mike Blumenkrantz [Sat, 18 Jun 2022 13:47:13 +0000 (09:47 -0400)]
zink: collect gfx stages for all bindings during barrier generation

it's important to get the full mask in order to accurately provide
dependency info

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

2 years agozink: add a #define for vk shader bits
Mike Blumenkrantz [Sat, 18 Jun 2022 13:43:01 +0000 (09:43 -0400)]
zink: add a #define for vk shader bits

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

2 years agozink: track image binds
Mike Blumenkrantz [Sat, 18 Jun 2022 13:41:43 +0000 (09:41 -0400)]
zink: track image binds

track all the things

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

2 years agozink: rework buffer barrier generation
Mike Blumenkrantz [Fri, 17 Jun 2022 14:55:37 +0000 (10:55 -0400)]
zink: rework buffer barrier generation

by passing through the draw buffers, more accurate barriers can be generated
to ensure synchronization for both the draw buffer scopes and
descriptor binding scopes

ref #6597

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

2 years agozink: track vertex buffer bind counts on resources
Mike Blumenkrantz [Fri, 17 Jun 2022 14:55:10 +0000 (10:55 -0400)]
zink: track vertex buffer bind counts on resources

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

2 years agozink: move draw-time barrier generation down a little
Mike Blumenkrantz [Fri, 17 Jun 2022 14:14:00 +0000 (10:14 -0400)]
zink: move draw-time barrier generation down a little

ensure that this occurs after potential rebind handling

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

2 years agomesa/st: increment num_uniforms for hw accel select shaders
Mike Blumenkrantz [Thu, 16 Jun 2022 20:58:37 +0000 (16:58 -0400)]
mesa/st: increment num_uniforms for hw accel select shaders

this otherwise breaks nir_lower_uniforms_to_ubo() and probably lots
of drivers

Fixes: 9b22ab4167e ("mesa/st: implement hardware accelerated GL_SELECT")

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17092>

2 years agozink: unset PIPE_CAP_DITHERING
Mike Blumenkrantz [Wed, 23 Sep 2020 14:08:02 +0000 (10:08 -0400)]
zink: unset PIPE_CAP_DITHERING

there's no point in updating blend state for this when it does nothing,
so skip updates for this functionality

in the future, I expect zink will export this conditionally based on
the underlying driver, and some sort of functionality will be implemented
to do something

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17043>

2 years agomesa/st: add PIPE_CAP_DITHERING
Mike Blumenkrantz [Wed, 23 Sep 2020 14:06:53 +0000 (10:06 -0400)]
mesa/st: add PIPE_CAP_DITHERING

this is for drivers like zink that may or may not
handle dithering and so getting blend state changes
when this state changes isn't useful

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17043>

2 years agoradv/ci: test vkd3d on kabini
Martin Roukala (né Peres) [Thu, 16 Jun 2022 13:39:32 +0000 (16:39 +0300)]
radv/ci: test vkd3d on kabini

The machine is extremely slow and fails to finish vkcts, but vkd3d may
still be used as a way to detect extreme regressions.

Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17081>

2 years agoRevert "ci/valve: uprev boot2container"
Martin Roukala (né Peres) [Sat, 18 Jun 2022 14:48:34 +0000 (17:48 +0300)]
Revert "ci/valve: uprev boot2container"

This reverts commit 48243965723e53f283d7c9fbfc801c1406795e31.

The newest version of b2c has changed the mount point of the cache
device, which is has proven to be working very well in my local
testing, but ends up confusing podman when the cache device had been
initialized using an older version of b2c. The end result is that we
end up using tmpfs to run our jobs, and some machines just run out of
RAM before the end of the job...

We'll be fixing this issue, cut a new b2c release, then re-introduce
in Mesa.

Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17120>

2 years agoanv: Properly clamp attachment layer counts
Jason Ekstrand [Wed, 15 Jun 2022 17:05:51 +0000 (12:05 -0500)]
anv: Properly clamp attachment layer counts

Vulkan requires that the acutal layer count come from
VkRenderingInfo::layerCount or VkFramebufferCreateInfo::layers rather
than from the image view itself.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17060>

2 years agofreedreno/fdl: use XYZW swap for PIPE_FORMAT_X24S8_UINT
Chia-I Wu [Fri, 20 May 2022 23:49:42 +0000 (16:49 -0700)]
freedreno/fdl: use XYZW swap for PIPE_FORMAT_X24S8_UINT

We used to use WZYX and apply swizzles.  Because swizzles apply for
border colors as well, the gallium driver un-swizzled the border colors
to cancel out swizzles.  That did not work for turnip because turnip
advertises customBorderColorWithoutFormat and does not know when to
un-swizzle.

This change replaces WZYX by XYZW and removes the swizzles.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6516
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16647>

2 years agopanfrost: Remove sync arguments from panfrost_batch_submit
Icecream95 [Fri, 10 Jun 2022 11:03:33 +0000 (23:03 +1200)]
panfrost: Remove sync arguments from panfrost_batch_submit

Whether a sync object is used cannot depend on where the batch is
submitted from, remove the in_sync and out_sync fields from
panfrost_batch_submit.

Always use an output syncobj, this is required for glFinish to work
correctly. This could be skipped for batches which another batch
depends on, but because of the existence of empty batches which emit
no job, doing so is not trivial.

Never use an input syncobj. There appears to be no point to this, the
kernel driver does implicit sync anyway.

Fixes "seconds per frame" rendering with Neverball; previously, every
batch was submitted with out_sync=0, so DRI's frame throttling could
do nothing. New jobs would keep getting submitted until more than a
thousand were queued in the kernel, which increased rendering latency
for the compositor far beyond acceptable levels.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16966>

2 years agopanfrost: Use a macro for checking for a shared bind type
Icecream95 [Fri, 10 Jun 2022 10:51:07 +0000 (22:51 +1200)]
panfrost: Use a macro for checking for a shared bind type

PAN_BIND_SHARED_MASK is all binding flags that mean that a resource
might be shared and accessible by other contexts.

Don't replace the usage of this pattern in panfrost_should_afbc and
panfrost_should_tile in case a new binding is introduced that not all
layouts can support.

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

2 years agomesa/st: Account for YUV color space and range.
Andres Calderon Jaramillo [Sat, 21 May 2022 23:27:34 +0000 (23:27 +0000)]
mesa/st: Account for YUV color space and range.

This patch plumbs the YUV color space and range provided through
EGL_EXT_image_dma_buf_import all the way to nir_lower_tex().

NIR already accounts for the YUV color space courtesy of commit
d8fdb8da. However, the color space was wired only for i965/i915 (see
6c11a799) and not for Gallium.

Tested-by: Andres Calderon Jaramillo <andrescj@chromium.org>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16651>

2 years agonir: Account for YUV range.
Andres Calderon Jaramillo [Sat, 21 May 2022 23:25:02 +0000 (23:25 +0000)]
nir: Account for YUV range.

This patch expands on what commit
d8fdb8dab4658de2d255718627ee671e84fedf2d did. It adds support for
YUV-to-RGB conversions depending on the range of the YUV samples.

The conversion matrices and offsets are derived from
https://gist.github.com/yohhoy/dafa5a47dade85d8b40625261af3776a.

Tested-by: Andres Calderon Jaramillo <andrescj@chromium.org>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16651>

2 years agointel/fs: Add missing synchronization for WaW dependency
Ian Romanick [Tue, 14 Jun 2022 19:30:21 +0000 (12:30 -0700)]
intel/fs: Add missing synchronization for WaW dependency

v2: Do the synchronization in the correct place.  Noticed by Curro.

Fixes: b5fa43952aa ("intel/fs: Better handle constant sources of FS_OPCODE_PACK_HALF_2x16_SPLIT")
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Tested-by: Felix DeGrood <felix.j.degrood@intel.com> [v1]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17037>

2 years agoRevert "ci: freedreno farm is down"
Rob Clark [Fri, 17 Jun 2022 13:13:41 +0000 (06:13 -0700)]
Revert "ci: freedreno farm is down"

They seem to be responding again.

This reverts commit 551442b53ebf531ab010dad2a3127ce41432ed4c.

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

2 years agointel/validator: validate dst/src types against devinfo support
Lionel Landwerlin [Fri, 10 Jun 2022 21:23:44 +0000 (00:23 +0300)]
intel/validator: validate dst/src types against devinfo support

v2: deal with src3_a1/src3_a16 instruction types (Curro)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16985>

2 years agomesa/main: Correct alloca() use without #include "c99_alloca.h"
Ken Johnson [Thu, 16 Jun 2022 02:29:19 +0000 (19:29 -0700)]
mesa/main:  Correct alloca() use without #include "c99_alloca.h"

Fixes: d231f955913e3265d9a560b45dba48ea6336ab90 ("mesa: add hw select name stack code path")

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

2 years agoAndroid.mk: Fix c11-related build failures
Roman Stratiienko [Thu, 16 Jun 2022 10:32:56 +0000 (13:32 +0300)]
Android.mk: Fix c11-related build failures

When building with Android.mk we are ending-up with:

    gcc ..... -std=gnu99 .... -std=c11 .... target.o
              ^^^^^^^^^^      ^^^^^^^^
                   |              |
    _______________^_____    _____^___________
     AOSP/KATI GENERATED      MESON GENERATED

Some compilers uses first -std=gnu99 option and ignores second,
which results:

    c99 implicit declaration of function static_assert()

This patch filters-out the first '-std=gnu99' from the cflags obtained
from AOSP/KATI dummy target output to avoid such kind of errors.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Mauro Rossi <issor.oruam@gmail.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17078>

2 years agoci/valve: uprev boot2container
Martin Roukala (né Peres) [Wed, 15 Jun 2022 10:04:11 +0000 (13:04 +0300)]
ci/valve: uprev boot2container

The latest version of the initramfs brings in the latest podman, but
most importantly brings in the usage of collapsed sections, thus
reducing the amount of scrolling up necessary when wanting to find out
the list of failures/flakes.

Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17051>

2 years agoci: freedreno farm is down
Daniel Stone [Fri, 17 Jun 2022 08:27:53 +0000 (09:27 +0100)]
ci: freedreno farm is down

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

2 years agozink: print runtime warning on missing EXT_border_color_swizzle
Mike Blumenkrantz [Tue, 14 Jun 2022 13:56:00 +0000 (09:56 -0400)]
zink: print runtime warning on missing EXT_border_color_swizzle

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

2 years agozink: use VK_EXT_border_color_swizzle
Mike Blumenkrantz [Tue, 14 Jun 2022 13:55:25 +0000 (09:55 -0400)]
zink: use VK_EXT_border_color_swizzle

if borderColorSwizzleFromImage isn't supported, assume the border color
must be pre-swizzled

fixes #6651

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

2 years agozink: hook up VK_EXT_border_color_swizzle
Mike Blumenkrantz [Tue, 14 Jun 2022 13:55:13 +0000 (09:55 -0400)]
zink: hook up VK_EXT_border_color_swizzle

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

2 years agozink: be a little selective about BAR fallback memory type
Mike Blumenkrantz [Thu, 16 Jun 2022 21:55:50 +0000 (17:55 -0400)]
zink: be a little selective about BAR fallback memory type

some resources MUST be host-visible, so use the appropriate heap for them

cc: mesa-stable

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

2 years agozink: move BAR allocation demotion up the stack
Mike Blumenkrantz [Thu, 16 Jun 2022 16:06:51 +0000 (12:06 -0400)]
zink: move BAR allocation demotion up the stack

having this so far down in the BO allocation path meant that slabs were
getting demoted to device-local and then stored as BAR in the pb cache,
which broke the cache pretty badly

cc: mesa-stable

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

2 years agozink: store and reuse memory heap flags for buffer placement
Mike Blumenkrantz [Thu, 16 Jun 2022 15:06:53 +0000 (11:06 -0400)]
zink: store and reuse memory heap flags for buffer placement

the flags in vk_domain_from_heap() are the MINIMUM required flags for
the heap, but there may be other flags present, so ensure those are picked
up as expected

cc: mesa-stable

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

2 years agozink: fix buffer transfer flushes with offsets
Mike Blumenkrantz [Thu, 16 Jun 2022 18:33:46 +0000 (14:33 -0400)]
zink: fix buffer transfer flushes with offsets

the src and dst ofsets need to be adjusted by the base map offset
in order to flush the correct region

cc: mesa-stable

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

2 years agozink: use only the extents for buffer unmap flushes
Mike Blumenkrantz [Thu, 16 Jun 2022 18:56:32 +0000 (14:56 -0400)]
zink: use only the extents for buffer unmap flushes

flush_region is relative to the map, so passing in the offsets again
breaks the flush (if the flush hook is implemented correctly)

cc: mesa-stable

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

2 years agozink: unify actual map calls in buffer mapping
Mike Blumenkrantz [Thu, 16 Jun 2022 18:32:46 +0000 (14:32 -0400)]
zink: unify actual map calls in buffer mapping

make this a bit easier to debug by moving the calls to one place

cc: mesa-stable

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

2 years agozink: rename a variable
Mike Blumenkrantz [Thu, 16 Jun 2022 17:46:56 +0000 (13:46 -0400)]
zink: rename a variable

make this a little clearer to read

cc: mesa-stable

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

2 years agovenus: resolve YV12 AHB to VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM
Yiwei Zhang [Tue, 7 Jun 2022 06:59:32 +0000 (06:59 +0000)]
venus: resolve YV12 AHB to VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM

YV12 is a 3-plane format with minigbm. This change mitigates the crash
of testGLViewLargerHeightDecodeAccuracy[4], and successfully creates the
host side image and imports the memory.

vk_format(1000156002) drm_fourcc(842094169)
offsets(0, 27648, 34560, 0)
strides(256, 128, 128, 0)
modifier(0)

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16913>

2 years agogallivm: use enum types instead of unsigned in lp_bld_sample.[ch]
Brian Paul [Tue, 14 Jun 2022 21:42:37 +0000 (15:42 -0600)]
gallivm: use enum types instead of unsigned in lp_bld_sample.[ch]

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_vbuf.h
Brian Paul [Fri, 10 Jun 2022 17:40:28 +0000 (11:40 -0600)]
draw: asst. clean-up in draw_vbuf.h

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_pt_vsplit.c
Brian Paul [Fri, 10 Jun 2022 17:40:09 +0000 (11:40 -0600)]
draw: asst. clean-up in draw_pt_vsplit.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_pt_util.c
Brian Paul [Fri, 10 Jun 2022 17:40:01 +0000 (11:40 -0600)]
draw: asst. clean-up in draw_pt_util.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_pt_fetch_shader_pipeline.c
Brian Paul [Fri, 10 Jun 2022 17:39:48 +0000 (11:39 -0600)]
draw: asst. clean-up in draw_pt_fetch_shader_pipeline.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_pt_fetch_shader_emit.c
Brian Paul [Fri, 10 Jun 2022 17:39:38 +0000 (11:39 -0600)]
draw: asst. clean-up in draw_pt_fetch_shader_emit.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_pt.c
Brian Paul [Fri, 10 Jun 2022 17:39:19 +0000 (11:39 -0600)]
draw: asst. clean-up in draw_pt.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_pt.h
Brian Paul [Fri, 10 Jun 2022 17:39:15 +0000 (11:39 -0600)]
draw: asst. clean-up in draw_pt.h

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_private.h
Brian Paul [Fri, 10 Jun 2022 17:39:07 +0000 (11:39 -0600)]
draw: asst. clean-up in draw_private.h

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_pipe_validate.c
Brian Paul [Fri, 10 Jun 2022 17:38:54 +0000 (11:38 -0600)]
draw: asst. clean-up in draw_pipe_validate.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_pipe.c
Brian Paul [Fri, 10 Jun 2022 17:38:46 +0000 (11:38 -0600)]
draw: asst. clean-up in draw_pipe.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_gs.h
Brian Paul [Fri, 10 Jun 2022 17:38:37 +0000 (11:38 -0600)]
draw: asst. clean-up in draw_gs.h

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: asst. clean-up in draw_context.h
Brian Paul [Fri, 10 Jun 2022 17:38:24 +0000 (11:38 -0600)]
draw: asst. clean-up in draw_context.h

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodraw: s/unsigned/enum pipe_prim_type/
Brian Paul [Fri, 10 Jun 2022 17:12:16 +0000 (11:12 -0600)]
draw: s/unsigned/enum pipe_prim_type/

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agollvmpipe: asst. clean-ups in lp_state_fs.c
Brian Paul [Thu, 9 Jun 2022 17:59:42 +0000 (11:59 -0600)]
llvmpipe: asst. clean-ups in lp_state_fs.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agogallivm: asst. clean-ups in lp_bld_logic.
Brian Paul [Thu, 9 Jun 2022 17:44:03 +0000 (11:44 -0600)]
gallivm: asst. clean-ups in lp_bld_logic.

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agollvmpipe: s/unsigned/enum pipe_compare_func/
Brian Paul [Thu, 9 Jun 2022 17:32:35 +0000 (11:32 -0600)]
llvmpipe: s/unsigned/enum pipe_compare_func/

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agollvmpipe: use enum blend types instead of unsigned
Brian Paul [Thu, 9 Jun 2022 17:18:02 +0000 (11:18 -0600)]
llvmpipe: use enum blend types instead of unsigned

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agollvmpipe: minor clean-up in lp_state_blend.c
Brian Paul [Thu, 9 Jun 2022 17:11:15 +0000 (11:11 -0600)]
llvmpipe: minor clean-up in lp_state_blend.c

Signed-off-by: Brian Paul <brianp@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>

2 years agodocs: Extend calendar entries for 22.1 by 3 releases.
Dylan Baker [Thu, 16 Jun 2022 17:02:35 +0000 (10:02 -0700)]
docs: Extend calendar entries for 22.1 by 3 releases.

This gives us a last release of the 22.1 series lining up with 22.2.1,
assuming that the 22.1.0 is on time.

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

2 years agodocs: Add calendar entries for 22.2 release candidates.
Dylan Baker [Thu, 16 Jun 2022 17:02:04 +0000 (10:02 -0700)]
docs: Add calendar entries for 22.2 release candidates.

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

2 years agodocs: drop 22.1.4 calendar entry.
Dylan Baker [Thu, 16 Jun 2022 17:01:20 +0000 (10:01 -0700)]
docs: drop 22.1.4 calendar entry.

We're done with the 22.1 series, so lets not have it on the calendar

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

2 years agokmsro: add error message on drm ioctl failure
Mike Blumenkrantz [Thu, 9 Jun 2022 15:21:05 +0000 (11:21 -0400)]
kmsro: add error message on drm ioctl failure

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16949>

2 years agodrisw: probe kms if fd is passed
Mike Blumenkrantz [Thu, 9 Jun 2022 15:03:13 +0000 (11:03 -0400)]
drisw: probe kms if fd is passed

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16949>

2 years agodzn: Skip another test that times out occasionally
Jesse Natalie [Thu, 16 Jun 2022 19:18:42 +0000 (12:18 -0700)]
dzn: Skip another test that times out occasionally

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17089>

2 years agollvmpipe: disable alpha test branch if multisample is enabled.
Dave Airlie [Wed, 15 Jun 2022 06:26:18 +0000 (16:26 +1000)]
llvmpipe: disable alpha test branch if multisample is enabled.

If multisample is enabled and alpha testing happens, the
branch can jump out of the fragment shader before the other
samples are generated. Just don't take the branch optimisation
post alpha test if multisample is enabled.

This should fix some rendering bugs in kicad with multisample
enabled.

Cc: mesa-stable
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17049>

2 years agozink: radv baseline updates
Mike Blumenkrantz [Thu, 16 Jun 2022 19:15:54 +0000 (15:15 -0400)]
zink: radv baseline updates

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

2 years agodocs: Update windows build requirement with Visual Studio
Yonggang Luo [Wed, 15 Jun 2022 15:25:23 +0000 (23:25 +0800)]
docs: Update windows build requirement with Visual Studio

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17044>

2 years agoci/vs2019: Upgrade Windows 10 SDK version to 20348
Yonggang Luo [Fri, 10 Jun 2022 06:04:33 +0000 (14:04 +0800)]
ci/vs2019: Upgrade Windows 10 SDK version to 20348

This comes with stdalign.h for more C11 conformance

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17044>

2 years agomeson/clover: Getting clover can be built with no-rtti llvm in mingw
Yonggang Luo [Wed, 15 Jun 2022 17:42:49 +0000 (01:42 +0800)]
meson/clover: Getting clover can be built with no-rtti llvm in mingw

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17055>

2 years agomeson/rtti: Using get_argument_syntax to check msvc compatible compiler
Yonggang Luo [Thu, 19 May 2022 10:27:44 +0000 (18:27 +0800)]
meson/rtti: Using get_argument_syntax to check msvc compatible compiler

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17055>

2 years agomeson: Use cc.get_argument_syntax instead cc.get_id when possible.
Yonggang Luo [Thu, 21 Apr 2022 06:06:17 +0000 (14:06 +0800)]
meson: Use cc.get_argument_syntax instead cc.get_id when possible.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17065>