Alyssa Rosenzweig
9c2a2deee6
treewide: use BITSET_BYTES, BITSET_RZALLOC
...
Via Coccinelle patches:
@@
expression bits;
typedef BITSET_WORD;
@@
-BITSET_WORDS(bits) * sizeof(BITSET_WORD)
+BITSET_BYTES(bits)
@@
expression memctx, bits;
typedef BITSET_WORD;
@@
-rzalloc_array(memctx, BITSET_WORD, BITSET_WORDS(bits))
+BITSET_RZALLOC(memctx, bits)
@@
expression memctx, bits;
@@
-rzalloc_size(memctx, BITSET_BYTES(bits))
+BITSET_RZALLOC(memctx, bits)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com >
Acked-by: Yonggang Luo <luoyonggang@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38245 >
2025-11-05 18:44:23 +00:00
Alessio Belle
a6ca6bcabf
pvr: add device info for GE8300 (22.67.54.30)
...
Requested by the community [1].
[1] https://gitlab.freedesktop.org/imagination/linux-firmware/-/issues/13
Signed-off-by: Alessio Belle <alessio.belle@imgtec.com >
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38211 >
2025-11-05 14:47:27 +00:00
Alessio Belle
b83bd94d69
pvr: add device info for GE7800 (15.5.1.64)
...
Requested by the community [1].
[1] https://gitlab.freedesktop.org/imagination/linux-firmware/-/issues/13
Signed-off-by: Alessio Belle <alessio.belle@imgtec.com >
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38211 >
2025-11-05 14:47:26 +00:00
Alyssa Rosenzweig
17355f716b
treewide: use UTIL_DYNARRAY_INIT
...
Instead of util_dynarray_init(&dynarray, NULL), just use
UTIL_DYNARRAY_INIT instead. This is more ergonomic.
Via Coccinelle patch:
@@
identifier dynarray;
@@
-struct util_dynarray dynarray = {0};
-util_dynarray_init(&dynarray, NULL);
+struct util_dynarray dynarray = UTIL_DYNARRAY_INIT;
@@
identifier dynarray;
@@
-struct util_dynarray dynarray;
-util_dynarray_init(&dynarray, NULL);
+struct util_dynarray dynarray = UTIL_DYNARRAY_INIT;
@@
expression dynarray;
@@
-util_dynarray_init(&(dynarray), NULL);
+dynarray = UTIL_DYNARRAY_INIT;
@@
expression dynarray;
@@
-util_dynarray_init(dynarray, NULL);
+(*dynarray) = UTIL_DYNARRAY_INIT;
Followed by sed:
bash -c "find . -type f -exec sed -i -e 's/util_dynarray_init(&\(.*\), NULL)/\1 = UTIL_DYNARRAY_INIT/g' \{} \;"
bash -c "find . -type f -exec sed -i -e 's/util_dynarray_init( &\(.*\), NULL )/\1 = UTIL_DYNARRAY_INIT/g' \{} \;"
bash -c "find . -type f -exec sed -i -e 's/util_dynarray_init(\(.*\), NULL)/*\1 = UTIL_DYNARRAY_INIT/g' \{} \;"
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com >
Reviewed-by: Mel Henning <mhenning@darkrefraction.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38189 >
2025-11-04 13:39:48 +00:00
Alyssa Rosenzweig
83303aa05d
pvr: don't NIH alignment helpers
...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com >
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Acked-by: Yonggang Luo <luoyonggang@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38169 >
2025-10-31 15:03:58 +00:00
Alyssa Rosenzweig
b824ef83ab
util/dynarray: infer type in append
...
Most of the time, we can infer the type to append in
util_dynarray_append using __typeof__, which is standardized in C23 and
support in Jesse's MSMSVCV. This patch drops the type argument most of
the time, making util_dynarray a little more ergonomic to use.
This is done in four steps.
First, rename util_dynarray_append -> util_dynarray_append_typed
bash -c "find . -type f -exec sed -i -e 's/util_dynarray_append(/util_dynarray_append_typed(/g' \{} \;"
Then, add a new append that infers the type. This is much more ergonomic
for what you want most of the time.
Next, use type-inferred append as much as possible, via Coccinelle
patch (plus manual fixup):
@@
expression dynarray, element;
type type;
@@
-util_dynarray_append_typed(dynarray, type, element);
+util_dynarray_append(dynarray, element);
Finally, hand fixup cases that Coccinelle missed or incorrectly
translated, of which there were several because we can't used the
untyped append with a literal (since the sizeof won't do what you want).
All four steps are squashed to produce a single patch changing every
util_dynarray_append call site in tree to either drop a type parameter
(if possible) or insert a _typed suffix (if we can't infer). As such,
the final patch is best reviewed by hand even though it was
tool-assisted.
No Long Linguine Meals were involved in the making of this patch.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com >
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38038 >
2025-10-24 18:32:07 +00:00
Simon Perretta
c60232c0c5
pvr: temporarily disable gs_rta_support on all cores
...
The gs_rta_support feature is currently bugged and may cause the
driver to assert; disabling it will instead use a fallback method
which is functional.
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38024 >
2025-10-23 13:18:56 +01:00
Mel Henning
fafb81cd02
treewide: Use vk_collect_dependency_info_src_stages
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37961 >
2025-10-22 19:22:17 +00:00
Simon Perretta
ff51e6dc9e
nir: commonize barycentric intrinsic opt pass
...
Introduces an opt pass that attempts to optimize
load_barycentric_at_{sample,offset} with simpler load_barycentric_*
equivalents where possible, and optionally lowers
load_barycentric_at_sample to load_barycentric_at_offset with a position
derived from the sample ID instead.
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37658 >
2025-10-22 16:48:01 +00:00
Frank Binns
b9baf2c260
pvr: Advertise VK_KHR_storage_buffer_storage_class
...
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com >
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37913 >
2025-10-17 08:11:11 +00:00
Frank Binns
c6c0690723
pvr: Advertise VK_KHR_relaxed_block_layout
...
This is already supported by the compiler and all the relevant conformance
tests pass.
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com >
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37913 >
2025-10-17 08:11:11 +00:00
Frank Binns
28cc04b400
pvr: sort extensions alphabetically
...
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com >
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37913 >
2025-10-17 08:11:10 +00:00
Alyssa Rosenzweig
84d8e6824b
treewide: don't check before free
...
This was something that came up in the slop MR. Not sure it's actually a
good idea or not but kind of curious what people think, given we have a
sound tool (Coccinelle) to do the transform. Saves a redundant branch
but means extra noninlined function calls.. likely no actual perf impact
but saves some code.
Via Coccinelle patches:
@@
expression ptr;
@@
-if (ptr) {
-free(ptr);
-}
+free(ptr);
@@
expression ptr;
@@
-if (ptr) {
-FREE(ptr);
-}
+FREE(ptr);
@@
expression ptr;
@@
-if (ptr) {
-ralloc_free(ptr);
-}
+ralloc_free(ptr);
@@
expression ptr;
@@
-if (ptr != NULL) {
-free(ptr);
-}
-
+free(ptr);
@@
expression ptr;
@@
-if (ptr != NULL) {
-FREE(ptr);
-}
-
+FREE(ptr);
@@
expression ptr;
@@
-if (ptr != NULL) {
-ralloc_free(ptr);
-}
-
+ralloc_free(ptr);
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com >
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com > [v3d]
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org > [venus]
Reviewed-by: Frank Binns <frank.binns@imgtec.com > [powervr]
Reviewed-by: Janne Grunau <j@jannau.net > [asahi]
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com > [radv]
Reviewed-by: Job Noorman <jnoorman@igalia.com > [ir3]
Acked-by: Marek Olšák <maraeo@gmail.com >
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Job Noorman <jnoorman@igalia.com >
Acked-by: Yonggang Luo <luoyonggang@gmail.com >
Acked-by: Christian Gmeiner <cgmeiner@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37892 >
2025-10-15 23:01:33 +00:00
Erico Nunes
48f3bcdd02
pvr: enable KHR_wayland_surface
...
Just expose the extension to enable Wayland WSI.
The current use case for this is being able to run Wayland clients on
e.g. an offscreen compositor.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37721 >
2025-10-15 08:58:03 +00:00
Simon Perretta
7b222d532b
pco/ra: abort if spilling fails
...
In release builds, the assertion checking whether spilling failed isn't
evaluated, which can result in shader compilation continuing despite this.
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37872 >
2025-10-14 21:47:30 +00:00
Ella Stanforth
85b170ab41
pvr: implement buffer device address
...
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:22:00 +00:00
Simon Perretta
38c3c89b0d
pco: add support for global memory
...
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Acked-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:22:00 +00:00
Frank Binns
09c131df0c
pvr: support VK_KHR_device_group
...
VK_KHR_device_group has some interactions with other extensions that requires
some additional bits and pieces to be supported. One such interaction is with
VK_KHR_swapchain.
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:22:00 +00:00
Simon Perretta
d62fdc0a2e
pvr: support VK_EXT_map_memory_placed.memoryUnmapReserve
...
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:21:59 +00:00
Simon Perretta
733444aaec
pvr: support VK_EXT_map_memory_placed
...
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:21:58 +00:00
Simon Perretta
8dcfbcde52
pvr: support VK_KHR_map_memory2
...
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:21:58 +00:00
Simon Perretta
d0608fd3d6
pvr: advertise VK_KHR_device_group_creation
...
Handled by common code.
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:21:57 +00:00
Simon Perretta
bf5e88a754
pvr: advertise VK_EXT_shader_replicated_composites
...
Handled by common code.
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:21:57 +00:00
Simon Perretta
0a92ee50a1
pvr: advertise VK_KHR_shader_relaxed_extended_instruction
...
Handled by common code.
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:21:56 +00:00
Simon Perretta
466abd1d0e
pvr: advertise VK_KHR_shader_non_semantic_info
...
Handled by common code.
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:21:56 +00:00
Simon Perretta
4d34c07b7a
pvr: advertise VK_KHR_sampler_mirror_clamp_to_edge
...
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37726 >
2025-10-14 17:21:55 +00:00
Job Noorman
0b82b803d9
nir,ir3: rename umul_low to umul_16x16
...
This is more in line with similar opcodes like umul_32x16.
Also change its const expr: the masking based on bit size was
unnecessary as it is only defined for 32 bits. Use simple casts instead.
Signed-off-by: Job Noorman <jnoorman@igalia.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37863 >
2025-10-14 12:54:54 +00:00
Marek Vasut
bbd6c186a4
pvr: fix device info for GX6250 (4.45.2.58)
...
Synchronize GX6250 (4.45.2.58) device info with GX6250 (4.40.2.51) device info
and fill in the missing entries into GX6250 (4.45.2.58) device info . This is
important due to missing has_unified_store_depth , which leads to mesa warning:
```
MESA: warning: Missing unified_store_depth feature (defaulting to: 0U)
```
Fixes: 4a245d9f57 ("pvr: add device info for GX6250 (4.45.2.58)")
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com >
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37850 >
2025-10-13 20:03:40 +00:00
Marek Vasut
fb8f0794ea
pvr: fix features pointer on GX6650 (4.46.6.62)
...
The GX6650 (4.46.6.62) has to point to the matching
pvr_device_features_4_V_6_62 , update the pointer
accordingly.
Fixes: 5914d1146f ("pvr: add device info for GX6650 (4.46.6.62)")
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com >
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37851 >
2025-10-13 19:48:05 +00:00
Alessio Belle
1db1038a61
pvr: add device info for BXM-4-64 (36.56.104.183)
...
Requested by the community [1].
[1] https://gitlab.freedesktop.org/imagination/linux-firmware/-/issues/12
Signed-off-by: Alessio Belle <alessio.belle@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:10 +00:00
Frank Binns
0dd5db3478
pvr: add device info for GE8300 (22.68.54.30)
...
Requested by the community [1].
[1] https://gitlab.freedesktop.org/imagination/linux-firmware/-/issues/6
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:10 +00:00
Frank Binns
6c42d7eb01
pvr: add device info for GE8300 (22.102.54.38)
...
Requested by the community [1].
[1] https://gitlab.freedesktop.org/imagination/linux-firmware/-/issues/5
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:10 +00:00
Frank Binns
e60e0c96ba
pvr: add device info for BXE-2-32 (36.29.52.182)
...
Requested by the community [1].
[1] https://gitlab.freedesktop.org/imagination/linux-firmware/-/issues/2
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:10 +00:00
Frank Binns
2743363a57
pvr: add device info for BXM-4-64 (36.52.104.182)
...
Requested by the community [1].
[1] https://gitlab.freedesktop.org/imagination/linux-firmware/-/issues/1
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:09 +00:00
Frank Binns
5914d1146f
pvr: add device info for GX6650 (4.46.6.62)
...
Requested by the community [1].
[1] https://gitlab.freedesktop.org/mesa/mesa/-/issues/7032
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:09 +00:00
Frank Binns
9358c65c3d
pvr: add device info for G6110 (5.9.1.46)
...
Requested by the community [1][2].
[1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15243#note_1306552
[2] https://gitlab.freedesktop.org/frankbinns/linux-firmware/-/issues/1
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:08 +00:00
Frank Binns
4a245d9f57
pvr: add device info for GX6250 (4.45.2.58)
...
Requested by the community [1].
[1] https://lists.freedesktop.org/archives/dri-devel/2023-June/409639.html
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:08 +00:00
Frank Binns
ea28791d40
pvr: add device info for BXE-4-32 (36.50.54.182)
...
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Ashish Chauhan <ashish.chauhan@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37790 >
2025-10-11 19:45:08 +00:00
Simon Perretta
d41c34c5ca
pco: ensure a variable exists for the multiview index
...
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Acked-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37724 >
2025-10-11 20:28:16 +01:00
Simon Perretta
e7c409cd29
pvr: amend num temps calculation when wg_size is not provided
...
Fixes: 7a32dc673b ("pvr: add device info and functions for calculating ava...")
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Acked-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37724 >
2025-10-11 20:28:16 +01:00
Simon Perretta
1c1bc876fb
pvr: amend tile buffer size calculation for eot
...
Fixes: a67120cda3 ("pvr, pco: full support for tile buffer eot handling")
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Acked-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37724 >
2025-10-11 20:28:16 +01:00
Simon Perretta
b0609a30b1
pco: improve early and late algebraic pass ordering
...
Ensures early algebraic passes aren't called again following late
algebraic passes, so that the latter's opts aren't undone (e.g.
unfusing ffmas).
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Acked-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37724 >
2025-10-11 20:28:16 +01:00
Simon Perretta
e637d01ef2
pco: tidy and commonize conversion ops
...
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Acked-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37724 >
2025-10-11 20:28:16 +01:00
Simon Perretta
34b4b35ca8
pco: apply rounding mode to relevant conversion ops
...
The rounding behaviour on [iu]2f32 ops needs to be explicitly set in
order to match the implicit behaviour described in the
KHR_shader_float_controls properties.
Fixes: e306abc6e6 ("pvr: implement KHR_shader_float_controls")
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com >
Acked-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37724 >
2025-10-11 20:28:16 +01:00
Ashish Chauhan
1143363a4f
pvr: Drop broken driver environment variable check for BXS-4-64
...
The Imagination PowerVR Vulkan driver is now conformant on BXS-4-64, so drop the
PVR_I_WANT_A_BROKEN_VULKAN_DRIVER runtime check for this GPU. This eliminates
the need for the user to explicitly opt in via an environment variable.
Signed-off-by: Ashish Chauhan <Ashish.Chauhan@imgtec.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37761 >
2025-10-10 15:29:04 +00:00
Frank Binns
793abd9741
pvr: advertise VK_EXT_zero_initialize_device_memory
...
The kernel driver zero initialises device memory allocations for us, so all that
needs to be done is to advertise support for the extension.
Signed-off-by: Frank Binns <frank.binns@imgtec.com >
Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37732 >
2025-10-08 08:25:20 +01:00
Rhys Perry
0dd09a292b
nir: add ACCESS_ATOMIC
...
This is so that passes and backends can tell if a coherent load/store is
atomic or not, instead of having to assume it could be either.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36602 >
2025-10-07 17:41:30 +00:00
Erik Faye-Lund
478e8f11c4
pvr: split out rogue hw-defs to separate folder
...
This just carves out some space for future architectures in the source
tree.
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37675 >
2025-10-06 11:02:04 +02:00
Erik Faye-Lund
88e626b6eb
pvr: kill rogue_hwdefs.h
...
This header is only used in a single place, which will generate macros
based on these definitions. Let's remove the header, and just include
the separate files in pvr_csb.h instead.
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37675 >
2025-10-06 11:02:00 +02:00
Erik Faye-Lund
be0c740c73
pvr: include pvr_csb.h first in implementation
...
This just makes sure the header file is free-standing.
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37675 >
2025-10-06 11:01:28 +02:00