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
Rhys Perry
fab911858c
aco: consider how definitions fixed to operands can change register demand
...
Usually the register demand before an instruction would be considered part
of the previous instruction, since it's not greater than the register
demand for that previous instruction. Except, it can be greater in the
case of an definition fixed to a non-killed operand: the RA needs to
reserve space between the two instructions for the definition (containing
a copy of the operand).
fossil-db (navi21):
Totals from 5 (0.00% of 135636) affected shaders:
PreVGPRs: 35 -> 40 (+14.29%)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8807
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22446 >
2023-05-24 18:58:15 +00:00
Rhys Perry
446d0dd658
aco: add get_op_fixed_to_def() helper
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22446 >
2023-05-24 18:58:15 +00:00
Lionel Landwerlin
e9fa840eed
anv: implement EDS2.extendedDynamicState2PatchControlPoints
...
We make the compiler assume the worst possible case (it's not great
because we have to burn 32 GRFs of potential input data) and then we
push the actual value through push constants.
This enables VK_EXT_gpl usage on zink, which causes two traces to change
their results. Raven is an imperceptible change, blender has missing
original pngs but looks plausible.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22378 >
2023-05-24 18:32:07 +00:00
Lionel Landwerlin
429ef02f83
intel/fs: make tcs input_vertices dynamic
...
We need to do 3 things to accomplish this :
1. make all the register access consider the maximal case when
unknown at compile time
2. move the clamping of load_per_vertex_input prior to lowering
nir_intrinsic_load_patch_vertices_in (in the dynamic cases, the
clamping will use the nir_intrinsic_load_patch_vertices_in to
clamp), meaning clamping using derefs rather than lowered
nir_intrinsic_load_per_vertex_input
3. in the known cases, lower nir_intrinsic_load_patch_vertices_in
in NIR (so that the clamped elements still be vectorized to the
smallest number of URB read messages)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22378 >
2023-05-24 18:32:07 +00:00
Mike Blumenkrantz
32b7659fff
zink: use the per-context track_renderpasses flag in more places
...
this should fix some erroneous zsbuf invalidation
Fixes: 215beee16d
("zink: more explicitly track/check rp optimizing per-context")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23189 >
2023-05-24 18:02:11 +00:00
Mike Blumenkrantz
f58594cdea
zink: don't wait on queue thread if disabled
...
Fixes: 270f9c0b06
("zink: add ZINK_DEBUG=flushsync")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23189 >
2023-05-24 18:02:11 +00:00
Alyssa Rosenzweig
feeeb45639
nir: Drop stale comments
...
Follow-on clean up after 01e9ee79f7
("nir: Drop unused name from
nir_ssa_dest_init"). The referenced argument no longer exists.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Reviewed-by: Rob Clark <robclark@freedesktop.org >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23181 >
2023-05-24 17:30:03 +00:00
Alyssa Rosenzweig
d6b8acbee9
agx: Use common combine_all_barriers callback
...
This contains a bugfix: execution scopes are now respected when combining
barriers. Otherwise control barriers can disappear during combining, which is
wrong.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23181 >
2023-05-24 17:30:03 +00:00