Samuel Pitoiset
8126e0287d
vulkan/pipeline_cache: remove a bogus assert when inserting objects
...
If two threads deserialize the raw object at the same time, the
refcount could be more than 1 temporarily.
This can be reproduced with Granite during the multi-threaded pipeline
cache pre-warm on startup, and also with Dota2.
Fixes: cbab396f54 ("vulkan/pipeline_cache: replace raw data objects on cache insertion of real objects")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22853 >
2023-05-25 10:07:35 +00:00
Erik Faye-Lund
d6deb977c8
radeonsi,radv: use nir_format_linear_to_srgb
...
There's little point in open-coding this, when we already have a helper
for it.
This adds an fsat to both code-paths. Not sure if that's good or bad, or
if it even matters at all.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23201 >
2023-05-25 09:33:40 +00:00
Lionel Landwerlin
1d13f22174
iris: rework Wa_14017076903 to only apply with occlusion queries
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 415b824bc6 ("iris: implement occlusion query related Wa_14017076903")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22807 >
2023-05-25 09:10:33 +00:00
Eric Engestrom
7ae6932d47
mailmap: update @mupuf's name
...
There were a number of variants in the git history:
Martin Peres <martin.peres@linux.intel.com >
Martin Peres <martin.peres@mupuf.org >
Martin Roukala (néé Peres) <martin.roukala@mupuf.org >
Martin Roukala (né Peres) <martin.roukala@mupuf.org >
Last one is the current one, so let's normalize the rest to that.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23229 >
2023-05-25 09:07:59 +00:00
Thomas H.P. Andersen
8038ecfbda
st: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
16fb3995f3
lavapipe: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
1227d66dc1
zink: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
14a350fbf3
virgl: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
cbe1e2cec7
vc4: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
c959e302e8
v3d: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
3d4789d3be
svga: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
ea136dd9e0
softpipe: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
f8663b4b40
radeonsi: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
23e78d719b
r600: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
17207eef36
r300: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
5d345b3b05
nouveau: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
af57770df2
llvmpipe: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
472bc207cb
i915: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
381b29f14e
freedreno: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
3ea64b8a2d
etnaviv: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
1a6ffb3e9d
d3d12: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:32 +00:00
Thomas H.P. Andersen
531896b366
aux: remove unused tgsi includes
...
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22838 >
2023-05-25 08:20:31 +00:00
Thomas H.P. Andersen
e2d305ce45
tgsi: delete unused functions
...
None of these are in use
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22864 >
2023-05-25 07:36:07 +00:00
Erik Faye-Lund
c87e491107
nir: use nir_fsub_imm
...
Now that we have nir_fsub_imm, let's use it to save some typing!
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23179 >
2023-05-25 06:59:25 +00:00
Erik Faye-Lund
0ef104b057
nir: add nir_fsub_imm
...
This is similar to nir_isub_imm, but for floats.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23179 >
2023-05-25 06:59:25 +00:00
Erik Faye-Lund
4cfb8005f0
nir: use more nir_ffma_imm variants
...
nir_ffma_imm has several variants that allows specific arguments to be
immediates. Use them for simplicity.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23179 >
2023-05-25 06:59:25 +00:00
Erik Faye-Lund
c4d2ebd285
nir: fsub -> fadd_imm
...
When doing nir_fsub(b, x, imm), we can negate the immediate value, and
replace the fsub with nir_fadd_imm() and get the same result. This makes
the code a bit shorter and easier to read.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23179 >
2023-05-25 06:59:25 +00:00
Erik Faye-Lund
5382b4fc2e
nir: use more nir_fadd_imm
...
This makes the code a bit easier to read.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23179 >
2023-05-25 06:59:24 +00:00
Erik Faye-Lund
20d619cd84
nir: use more nir_fmul_imm
...
This simplifies things a bit. Note that in some cases, the arguments are
swapped, because multiplications are commutative, and nir_fmul_imm only
allows the second operand to be an immediate.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23179 >
2023-05-25 06:59:24 +00:00
Dave Airlie
ea2eade57b
radv/video: use correct h264 levels
...
This should be set to the enum, ffmpeg has it wrong so far, but the sample decoder has it right.
convert radv to the proper answer.
Fixes: 1693c03a39 ("radv/video: add initial h264 decoder for VCN")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23225 >
2023-05-25 03:04:04 +00:00
Julia Tatz
81b0840caa
zink: Implement PIPE_CAP_RESOURCE_FROM_USER_MEMORY
...
Needed for GL_AMD_pinned_memory & zero-copy support in opencl
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23199 >
2023-05-25 02:41:23 +00:00
Marek Olšák
c5054b1dfd
winsys/radeon: set more radeon_info fields
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23221 >
2023-05-25 02:26:01 +00:00
Marek Olšák
474f9fbe86
winsys/radeon: fix the scratch buffer on gfx6-7
...
I'm sure this was broken.
Fixes: 1bf39b1f9d - ac,radeonsi: rework how scratch_waves is used and move it to ac_gpu_info.c
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23221 >
2023-05-25 02:26:01 +00:00
Marek Olšák
fe03351bee
winsys/radeon: set has_image_opcodes to unbreak gfx6-7
...
Fixes: 96913bbf3e - ac/surface: force linear image layout for chips not supporting image opcodes
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9073
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23221 >
2023-05-25 02:26:01 +00:00
Jesse Natalie
6674f04fc2
dzn: Fix src/dest confusion for some non-bindless descriptor copies
...
Fixes: 5d2b4ee4 ("dzn: Allocate descriptor sets in buffers for bindless mode")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23218 >
2023-05-25 02:08:32 +00:00
Jesse Natalie
5a43a50319
dzn: Don't expose copy queues
...
Vulkan says you can do things like image resolves or blits on transfer
queues, but D3D only allows literal copies. We could try to emulate
a Vulkan transfer-only queue backed by multiple D3D queues, where we
use the copy queue when possible but fall back to compute when needed,
but let's wait until there's a good reason to do that...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23218 >
2023-05-25 02:08:32 +00:00
Jesse Natalie
b4852c4efb
dzn: Partial revert of 8887852d
...
Turns out there was a good reason for having both buffer count
and desc_count. They served different purposes.
Fixes: 8887852d ("dzn: Add some docs around descriptor sets and remove redundant/unused data")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23218 >
2023-05-25 02:08:32 +00:00
Jesse Natalie
c83d894be1
dzn: Fix inverted assert
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23218 >
2023-05-25 02:08:32 +00:00
Jesse Natalie
98589399a4
dzn: Add a no-bindless debug flag
...
Forcing bindless on is nice for apps that don't use EXT_descriptor_indexing,
but for the CTS, whenever EXT_descriptor_indexing is supported, it's used.
To be able to more thoroughly test the not-bindless path, add a debug flag
to turn it off.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23218 >
2023-05-25 02:08:31 +00:00
Frank Binns
9b7faa7d96
pvr: fix invalid read reported by valgrind
...
pvr_gpu_upload() can't be used in the case of pvr_gpu_upload_usc() as it expects
the source and destination buffers to be the same size. This isn't the case
because pvr_gpu_upload_usc() adds some padding bytes to the size passed in by
the caller.
Fixes: 547a10f870 ("pvr: switch pvr_cmd_buffer_alloc_mem to use pvr_bo_suballoc")
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23185 >
2023-05-25 01:51:36 +00:00
Caleb Cornett
a7beb9974e
d3d12: Fix Xbox frame scheduling for interval != 1
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23154 >
2023-05-25 01:35:55 +00:00
Caleb Cornett
e9bc4a22bb
wgl: Add BITMAPV5HEADER to stw_gdishim.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23154 >
2023-05-25 01:35:55 +00:00
Caleb Cornett
2e0eeb3706
d3d12: Fix Xbox GDK build errors
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23154 >
2023-05-25 01:35:55 +00:00
Patrick Lerda
39a9ebde37
glthread: fix typo related to upload_vertices()
...
Fixes: 68a926a15b ("glthread: set GL_OUT_OF_MEMORY if we fail to upload vertices")
Signed-off-by: Patrick Lerda <patrick9876@free.fr >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23166 >
2023-05-24 22:17:26 +00:00
Marek Olšák
e18344dd24
ac,radeonsi,winsyses: switch to SPDX-License-Identifier: MIT
...
excluding: aco, radv, addrlib
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Acked-by: David Heidelberg <david.heidelberg@collabora.com >
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23113 >
2023-05-24 21:48:19 +00:00
Eric Engestrom
713078f662
ci/zink: add new zink-radv-navi10-valve flakes
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23215 >
2023-05-24 21:21:58 +00:00
David Heidelberg
862a3e3b9e
ci/freedreno: rename piglit job to respresent the real testing it does
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23211 >
2023-05-24 20:52:25 +00:00
David Heidelberg
3809807b3d
ci/freedreno: disable 3 jobs to match our farm 3 devices down
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23211 >
2023-05-24 20:52:25 +00:00
Marek Olšák
ce3edf51be
mesa: fix a VBO buffer reference leak in _mesa_bind_vertex_buffer
...
Fixes: 03ba57c6c5 - mesa: extend _mesa_bind_vertex_buffer to take ownership of the buffer reference
Reviewed-by: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23112 >
2023-05-24 19:56:33 +00:00
Samuel Pitoiset
2ae220f451
zink/ci: update VANGOGH expected list of failures
...
arb_pipeline_statistics_query-frag is passing now. VRS flat shading
was the culprit and since smooth lines, it's disabled because
gl_SampleMaskIn is read. Incredible.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23212 >
2023-05-24 19:31:36 +00:00