Alyssa Rosenzweig
be705ce760
nir/print: Print locations for geometry shader inputs
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Acked-by: Caio Oliveira <caio.oliveira@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23259 >
2023-05-30 16:25:07 -04:00
Alyssa Rosenzweig
065db2ddad
intel/blorp: Use nir_trim_vector
...
With Coccinelle patch:
@@
expression b, V;
@@
-nir_vec2(b, nir_channel(b, V, 0), nir_channel(b, V, 1))
+nir_trim_vector(b, V, 2)
@@
expression b, V;
@@
-nir_vec3(b, nir_channel(b, V, 0), nir_channel(b, V, 1), nir_channel(b, V, 2))
+nir_trim_vector(b, V, 3)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Acked-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23259 >
2023-05-30 16:24:21 -04:00
Alyssa Rosenzweig
4486009edb
radv/query: Use nir_trim_vector
...
With Coccinelle patch:
@@
expression b, V;
@@
-nir_vec2(b, nir_channel(b, V, 0), nir_channel(b, V, 1))
+nir_trim_vector(b, V, 2)
@@
expression b, V;
@@
-nir_vec3(b, nir_channel(b, V, 0), nir_channel(b, V, 1), nir_channel(b, V, 2))
+nir_trim_vector(b, V, 3)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Acked-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23259 >
2023-05-30 16:24:21 -04:00
Alyssa Rosenzweig
2b2685f551
pan/lower_framebuffer: Use nir_replicate
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Italo Nicola <italonicola@collabora.com >
Acked-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23259 >
2023-05-30 16:24:21 -04:00
Alyssa Rosenzweig
ebf4eff7eb
treewide: Use nir_replicate
...
Via coccinelle.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Acked-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23259 >
2023-05-30 16:24:21 -04:00
Alyssa Rosenzweig
f534c2c539
nir/builder: Add nir_replicate helper
...
Splat a scalar to all components of a vector.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Acked-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23259 >
2023-05-30 16:24:21 -04:00
Veerabadhran Gopalakrishnan
11c8b84c53
radeonsi: return kernel queried video capability for HEVC and JPEG
...
Query and return the values obtained from kernel for VCN_1 and above.
Earlier the HEVC and JPEG capabilities were returned based on
pre-defined values.
Signed-off-by: Veerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com >
Reviewed-by: Thong Thai <thong.thai@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23067 >
2023-05-30 19:15:12 +00:00
Veerabadhran Gopalakrishnan
af8f04e9fe
radeonsi: return kernel queried video capability for HEVC and JPEG
...
Query and return the values obtained from kernel for VCN_1 and above.
Earlier the HEVC and JPEG capabilities were returned based on
pre-defined values.
Signed-off-by: Veerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23067 >
2023-05-30 19:15:12 +00:00
Konstantin Seurer
a2ae6518c2
gallivm: Fix gather/scatter types for newer llvm
...
The types changed with opaque pointer support.
Fixes a bunch of lavapipe regressions.
Cc: mesa-stable
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23293 >
2023-05-30 18:25:49 +00:00
Eric Engestrom
74704cbb18
docs/calendar: add 23.2 branchpoint and release candidates
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23205 >
2023-05-30 18:20:20 +00:00
Dylan Baker
631109f8f7
docs: update calendar for 23.0.4
...
At this point I'm calling 23.0 done. Please use 23.1 for future updates
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23325 >
2023-05-30 18:15:28 +00:00
Dylan Baker
cf2a9e2c15
docs: Add sha256 sum for 23.0.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23325 >
2023-05-30 18:15:28 +00:00
Dylan Baker
d4f612b30d
docs: add release notes for 23.0.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23325 >
2023-05-30 18:15:28 +00:00
Jesse Natalie
84691dfc46
microsoft/compiler: Use image formats to determine texture types
...
Fixes some tests when bindless is disabled, where the image format is
R32, we do atomics on it, but we didn't set the "typed UAV load with
additional formats" feature bit because when we loaded from it, we
only loaded one component. Since the image format on the DXIL side
was declared as U32x4, the DXIL validator said that we should have.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23266 >
2023-05-30 17:54:18 +00:00
Jesse Natalie
431557e38e
spirv2dxil: Assign formats to image vars before lowering to bindless
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23266 >
2023-05-30 17:54:18 +00:00
Jesse Natalie
a66d1e4d1f
microsoft/compiler: Add a pass to assign image formats based on number of components
...
For loads/stores without formats, let's guess one based on how it's used.
The actual format doesn't matter, we just want to use it for the number
of components it has.
Also copy image formats from variables to intrinsics, to ensure that
deref-based intrinsics have formats assigned and lowered intrinsics
are up to date.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23266 >
2023-05-30 17:54:18 +00:00
Jesse Natalie
0c8c77b1b0
microsoft/compiler: Enable emitting type info for textures with <4 comps
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23266 >
2023-05-30 17:54:18 +00:00
Hans-Kristian Arntzen
a3507f9d87
radv/amdgpu: Report 48-bit VAs in bo logs.
...
More ergonomic when correlating with page fault addresses.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23256 >
2023-05-30 17:17:58 +00:00
Chia-I Wu
063e2e8ed8
radv: fix gl_SampleMaskIn for sample shading
...
When sample shading, we need
gl_SampleMaskIn = SampleCoverage & (PsIterMask << gl_SampleID);
Add a new shader arg, ps_iter_mask, to pass PsIterMask to ps.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23265 >
2023-05-30 16:35:31 +00:00
Chia-I Wu
0bba0eb0df
ac, radeonsi: add and use ac_get_ps_iter_mask
...
It is more natural for ac_get_ps_iter_mask to take sample count.
Replace samplemask_log_ps_iter by ps_iter_smples in
ac_nir_lower_ps_options accordingly.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23265 >
2023-05-30 16:35:30 +00:00
Chia-I Wu
750d641ca6
aco: fix alignment check in emit_load
...
align_offset already takes const_offset into consideration. Remove the
adjustment.
Fixes: 542733dbbf ("aco: add emit_load helper")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9097
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23242 >
2023-05-30 16:02:34 +00:00
Lionel Landwerlin
25c1f325d0
anv: remove unused functions
...
I thought I removed those, it seems my rebase got screwed up :(
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: 64f20cec28 ("anv: prepare image/buffer views for non indirect descriptors")
Acked-by: Caio Oliveira <caio.oliveira@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23317 >
2023-05-30 15:14:49 +00:00
Lionel Landwerlin
d17af98abc
anv: add support for VK_EXT_dynamic_rendering_unused_attachments
...
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23294 >
2023-05-30 14:45:49 +00:00
Erik Faye-Lund
b50c9ba692
zink: do not lower line-smooth for non-lines
...
We used to do this correctly, but it seems this accidentally got
dropped.
Fixes: d80a35a7f7 ("zink: unified `zink_set_primitive_emulation_keys` and `zink_create_primitive_emulation_gs`")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23316 >
2023-05-30 14:24:25 +00:00
Erik Faye-Lund
ffc77d5262
zink: compute correct location for line-smooth gs
...
The GS and the FS needs to agree on the driver_location. But we just
used the num_outputs variable for the GS instead of matching the logic
from lower_aaline_instr in nir_draw_helpers.c.
This does that, but cleans up our copy slightly to avoid computing the
needless location, as well as using unsigned values.
This used to *mostly* work before, but only because we were lucky and
not too much crazy stuff went on with the inputs / outputs in
smooth-line cases.
Fixes: edecb66b01 ("nir: avoid generating conflicting output variables")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23316 >
2023-05-30 14:24:25 +00:00
Erik Faye-Lund
955a6ffa6e
zink: keep gl46_optimal extensions/features sorted
...
These are mostly sorted, which makes it easy to know where to insert new
stuff. Let's make them completely sorted.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23316 >
2023-05-30 14:24:25 +00:00
Mike Blumenkrantz
c6ef6a39cc
zink: explicitly avoid ci errors due to unrecognized extensions in VVL
...
lavapipe still had this from shader object, but this should always be in
place for all drivers so that old VVL doesn't block merges
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23315 >
2023-05-30 14:00:36 +00:00
Erik Faye-Lund
bf97afa2ab
zink: update profiles schema
...
We technically need the 251 version, but the schema for that version
is not released yet, so this is the best we can do.
See https://github.com/KhronosGroup/Vulkan-Profiles/issues/437
This gets rid of some JSON schema-validation warnings.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23308 >
2023-05-30 13:34:44 +00:00
Georg Lehmann
76a82c3ac9
nir/opt_if: use nir_alu_instr_is_comparison directly
...
Since 2d6233d0 ("nir: Check all sizes in nir_alu_instr_is_comparison"),
nir_alu_instr_is_comparison already returns true for comparisons with 32bit
result.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23287 >
2023-05-30 13:04:22 +00:00
Rhys Perry
94958e637d
aco: improve printing of s_delay_alu
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23213 >
2023-05-30 12:42:00 +00:00
Rhys Perry
54c0088629
aco: insert s_delay_alu on the linear CFG
...
fossil-db (gfx1100):
Totals from 10498 (7.87% of 133428) affected shaders:
Instrs: 22274711 -> 22277717 (+0.01%); split: -0.01%, +0.03%
CodeSize: 114557040 -> 114569064 (+0.01%); split: -0.01%, +0.02%
Latency: 236505186 -> 236497338 (-0.00%); split: -0.00%, +0.00%
InvThroughput: 33425052 -> 33423876 (-0.00%); split: -0.00%, +0.00%
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23213 >
2023-05-30 12:42:00 +00:00
Rhys Perry
d7f48a61ec
aco: use pass_flags to recover s_delay_alu cycles
...
This is simpler and more accurate.
fossil-db (gfx1100):
Totals from 11678 (8.75% of 133428) affected shaders:
Instrs: 25448655 -> 25436028 (-0.05%)
CodeSize: 130364728 -> 130314220 (-0.04%)
Latency: 325247603 -> 325231064 (-0.01%); split: -0.01%, +0.00%
InvThroughput: 45901166 -> 45900022 (-0.00%); split: -0.00%, +0.00%
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23213 >
2023-05-30 12:42:00 +00:00
Rhys Perry
d9cdb3524a
aco: fix update_alu(clear=true) for exports
...
For:
v_mov_b32_e32 v0, 1.0
exp mrtz v0, off, off, off
we should completely remove the ALU entry before creating the EXP's WaR entry for v0.
Otherwise, the two will be combined into an entry which will wait for
expcnt(0) for later uses of v0.
gen_alu() should also be before gen(), since gen_alu() performs the clear
while gen() creates the WaR entry.
fossil-db (gfx1100):
Totals from 3589 (2.69% of 133428) affected shaders:
Instrs: 5591041 -> 5589047 (-0.04%); split: -0.04%, +0.00%
CodeSize: 28580840 -> 28572864 (-0.03%); split: -0.03%, +0.00%
Latency: 65427923 -> 65427543 (-0.00%); split: -0.00%, +0.00%
InvThroughput: 11109079 -> 11109065 (-0.00%); split: -0.00%, +0.00%
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23213 >
2023-05-30 12:42:00 +00:00
Teng, Jin Chung
a63a38aeaf
d3d12: HEVC Encode - Fix num_subregions_per_scanline rounding
...
num_subregions_per_scanline need to be round up
Signed-off-by: Teng, Jin Chung <jin.chung.teng@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23247 >
2023-05-30 12:08:11 +00:00
Matt Coster
3fc24c64e1
pvr: Fix page faults in occlusion query tests
...
This does not fix the tests completely, but does allow them to run to
completion and fail "properly".
Also contains a few trivial bugfixes in the same codepath.
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reported-by: James Glanville <james.glanville@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23100 >
2023-05-30 10:53:41 +00:00
Karmjit Mahil
43f0fef92f
pvr: Handle barrier load and store flags.
...
This commit adds handling for {s,z}loaden and {s,z}storeen to
control loading from and storing to the stencil and depth buffer.
This commit also addressed the FIXMEs around barrier_{load,store}
which control the {s,z}{load,store}en.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20487 >
2023-05-30 10:36:21 +00:00
Matt Coster
a04f244c0c
pvr: Reorder execution in pvr_cmd_buffer_end_sub_cmd()
...
This allows sub_cmd->job.run_frag to be setup before calling
pvr_sub_cmd_gfx_requires_split_submit().
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reported-by: James Glanville <james.glanville@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23125 >
2023-05-30 10:00:37 +00:00
Matt Coster
173df8f15d
pvr: Fix out of range stream errors for geometry-only jobs on pvrsrvkm
...
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reported-by: James Glanville <james.glanville@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23125 >
2023-05-30 10:00:37 +00:00
Matt Coster
dae68cf4aa
pvr: Do not free deferred pvr_transfer_cmd instances
...
Deferred pvr_transfer_cmd instances are allocated from a dyn_array on
the owning pvr_cmd_buffer and must not be freed directly.
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reported-by: James Glanville <james.glanville@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23125 >
2023-05-30 10:00:37 +00:00
Matt Coster
85fa24e061
pvr: Rename shadowing loop variable in pvr_add_deferred_rta_clear()
...
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23125 >
2023-05-30 10:00:37 +00:00
Matt Coster
6e6cd3eb3a
pvr: Use correct surface for deferred RTA clear
...
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reported-by: James Glanville <james.glanville@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23125 >
2023-05-30 10:00:37 +00:00
Matt Coster
0be6f8b5c1
pvr: Correct error flow in pvr_compute_pipeline_compile()
...
Fixes:
dEQP-VK.api.object_management.alloc_callback_fail.compute_pipeline
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23130 >
2023-05-30 10:43:09 +01:00
Matt Coster
a49a2f8765
pvr: Correct error flow in pvr_graphics_pipeline_compile()
...
Fixes:
dEQP-VK.api.object_management.alloc_callback_fail.graphics_pipeline
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23130 >
2023-05-30 10:43:09 +01:00
Matt Coster
9bfd3997b4
pvr: Fix memory leaks on realloc failure in pvr_pipeline.c
...
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23130 >
2023-05-30 10:43:08 +01:00
Matt Coster
4af6a9507f
pvr: Fix allocation scopes in vkCreateRenderPass2() code path
...
These previously COMMAND scoped allocations are stored on the
VkRenderPass and must therefore be OBJECT scoped.
Fixes: dEQP-VK.api.object_management.single_alloc_callbacks.render_pass
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23130 >
2023-05-30 10:43:06 +01:00
Iago Toral Quiroga
4c0541abb3
v3d: only warn about bining sync for indirect draw once
...
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23306 >
2023-05-30 09:00:34 +00:00
Felix DeGrood
5731ebac40
anv: override vendorID for Cyberpunk 2077
...
A recent update to Cyberpunk 2077 enables XeSS code for Intel GPUs
which is causing the game to crash in the XeSS libraries. As a
temporary work around, stop identifying as Intel for Cyberpunk so
XeSS falls back to the cross-vendor path.
References: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8860
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23271 >
2023-05-30 01:05:36 -07:00
Lionel Landwerlin
96c33fb027
anv: enable direct descriptors on platforms with extended bindless offset
...
Aka. DG2
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21645 >
2023-05-30 06:36:39 +00:00
Lionel Landwerlin
26e2436823
anv: ensure descriptor addresses are used with bindless stages
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21645 >
2023-05-30 06:36:38 +00:00
Lionel Landwerlin
0502a92199
anv: descriptor binding for direct descriptors
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21645 >
2023-05-30 06:36:38 +00:00