Simon Perretta
ed5dc3e64d
pco, pygen: isa upper sources definitions
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
9b64e1a8de
pco, pygen: isa lower source definitions
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
ce5de01d1a
pco, pygen: isa instruction group header validation and encoding support
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
4ca21e7038
pco, pygen: define and emit isa instruction group header variant fields
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
ee312ebd6f
pco, pygen: define basic isa field types
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
77a183fc14
pco, pygen: enum emit support, define some enums and op/ref mods/types
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
4d8653a643
pco: pygen stubs
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
fa9892026e
pco: suppress warning for functions passing structs
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
14d7ade582
pvr: drop PVRX macro
...
All core-specific selections will take place at runtime.
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
cbc9896264
pvr: fix GetInstanceProcAddr ubsan warning when _instance == NULL
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
8f1613accf
pvr: add device info for additional iterator features
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
898dd3bdf6
pvr: track pipeline flags
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
8d440ece64
pvr: add shader compilation stubs
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
7a32dc673b
pvr: add device info and functions for calculating available temps
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
aea38c1e47
pvr: remove pipeline shader hard-coding support
...
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/32258 >
2024-11-29 15:14:11 +00:00
Simon Perretta
8702dfce62
pvr: connect basic pco functions to the driver
...
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/32258 >
2024-11-29 15:14:10 +00:00
Simon Perretta
008b635031
pco: stubs for SPIR-V/NIR compilation options
...
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/32258 >
2024-11-29 15:14:10 +00:00
Simon Perretta
3349b5b296
pco: add env debug option parsing
...
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/32258 >
2024-11-29 15:14:10 +00:00
Simon Perretta
e90c851b8c
pvr, pco: Add new compiler framework and shader gen stubs
...
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/32258 >
2024-11-29 15:14:10 +00:00
Simon Perretta
ab1298e926
pvr: add initial pco stub/boilerplate
...
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/32258 >
2024-11-29 15:14:10 +00:00
Frank Binns
b82793221a
pvr: add 36.53.104.796 (BXS-4-64) to the list of supported GPUs
...
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/32258 >
2024-11-29 15:14:10 +00:00
Frank Binns
cd630fe704
pvr: add TI j721s2 as a supported device
...
This is found in various boards, such as the TI SK-AM68.
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/32258 >
2024-11-29 15:14:10 +00:00
David (Ming Qiang) Wu
e359b3c525
radeonsi/vcn: support 12bit YUV420 AV1 decoding
...
Add 12bit AV1 decoding support for PIPE_VIDEO_PROFILE_AV1_PROFILE2.
This feature is tested on VCN5 and VCN4.
Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Reviewed-by: David Rosca <david.rosca@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32383 >
2024-11-29 14:38:30 +00:00
David (Ming Qiang) Wu
389c77d127
frontends/va: add PIPE_VIDEO_PROFILE_AV1_PROFILE2
...
Add PIPE_VIDEO_PROFILE_AV1_PROFILE2 and
enable with VA_CHECK_VERSION(1, 23, 0) check
Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Reviewed-by: David Rosca <david.rosca@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32383 >
2024-11-29 14:38:30 +00:00
David (Ming Qiang) Wu
9c6d14d736
frontends/va: adding PIPE_FORMAT_P012
...
Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Reviewed-by: David Rosca <david.rosca@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32383 >
2024-11-29 14:38:30 +00:00
Erik Faye-Lund
284952b864
mesa: error-check GL_TEXTURE_TILING_EXT params
...
This just seems like the right thing to do. We shouldn't allow
unexpected params just like that.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349 >
2024-11-29 13:48:27 +00:00
Erik Faye-Lund
7b0d401265
st/mesa: check requirements for MESA_texture_const_bandwidth
...
This extension depends on EXT_memory_object, and is not usable without
it. So let's disable it, so applications don't try to use it.
Fixes: 5cccd6d689 ("mesa: Implement MESA_texture_const_bandwidth")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349 >
2024-11-29 13:48:27 +00:00
Erik Faye-Lund
42205ac386
mesa/main: properly check for EXT_semaphore_win32
...
This extension isn't supported in GLES 1.x, so let's tighten the check.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349 >
2024-11-29 13:48:27 +00:00
Erik Faye-Lund
640837ff78
mesa/main: properly check for EXT_semaphore
...
This extension isn't supported in GLES 1.x, so let's tighten the check.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349 >
2024-11-29 13:48:27 +00:00
Erik Faye-Lund
da04f4cb92
mesa/main: properly check for EXT_memory_object_win32
...
This extension isn't supported in GLES 1.x, so let's tighten the check.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349 >
2024-11-29 13:48:27 +00:00
Erik Faye-Lund
d90c81740d
mesa/main: properly check for EXT_memory_object_fd
...
This extension isn't supported in GLES 1.x, so let's tighten the check.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349 >
2024-11-29 13:48:27 +00:00
Erik Faye-Lund
0284e7fedb
mesa/main: properly check for EXT_memory_object
...
This extension isn't supported in GLES 1.x, so let's tighten the check.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349 >
2024-11-29 13:48:26 +00:00
Philipp Zabel
dddec9a66d
teflon: Support fused ReLU6 activation via output saturation
...
If the output tensor quantization range does not exceed 6.0, ReLU6 can
be replaced with ReLU: output values larger than 6.0 are clipped by
output saturation.
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net >
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32388 >
2024-11-29 13:32:42 +00:00
Hans-Kristian Arntzen
6370acbead
radv: Add sparse mappings to radv_check_va.py.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32146 >
2024-11-29 12:57:42 +00:00
Hans-Kristian Arntzen
cb15b34295
radv/winsys: Report VA mappings in bo_log too.
...
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32146 >
2024-11-29 12:57:42 +00:00
Philipp Zabel
a9f0624d6b
teflon: Reject per-axis quantization
...
Until a workaround for missing hardware support is implemented, stop
pretending to support convolution operations on tensors with per-axis
quantization.
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net >
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32387 >
2024-11-29 11:20:27 +00:00
Philipp Zabel
0501a3b5c1
etnaviv/ml: Create combined input tensors for addition first
...
Fix addition where one summand was already used as input to an earlier
operation, for example in the last operation of MobileNet V2 residual
blocks.
Fixes an assertion when trying to run MobileNet V2:
.../src/gallium/drivers/etnaviv/etnaviv_ml.c:58: etna_ml_create_tensor: Assertion `size == pipe_buffer_size(res)' failed.
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net >
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31987 >
2024-11-29 10:46:33 +00:00
Philipp Zabel
47b4aef5db
teflon/tests: Enable int8 tests
...
Enable signed 8-bit convolution tests.
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net >
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31979 >
2024-11-29 10:53:01 +01:00
Philipp Zabel
563316417a
teflon/tests: prep test executor for signed convolutions
...
Subtract 128 from the input and output tensor zero points, to keep
them in int8_t range (conv2d.tflite is set up for uint8_t).
Set weight tensor zero point to zero, as required by TensorFlow Lite
for int8_t weight tensors.
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net >
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31979 >
2024-11-29 10:52:58 +01:00
Philipp Zabel
4153154423
etnaviv/nn: Add support for signed 8-bit tensors
...
The hardware only supports unsigned 8-bit tensors, but with the
configurable zero point we can map signed 8-bit integers to unsigned
8-bit integers by adding a constant offset of 128 to all values and to
the zero point setting.
This requires adding 128 to all input tensors and subtracting 128
from all output tensors during inference.
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net >
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31979 >
2024-11-29 10:52:56 +01:00
Philipp Zabel
f9c34a3eb0
teflon: Add is_signed parameter to ml_subgraph_invoke and ml_subgraph_read_output
...
There probably is a better way to provide this information to the
gallium driver, but this allows the driver to apply conversions as
needed when writing input tensors and reading back output tensors.
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net >
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31979 >
2024-11-29 10:52:48 +01:00
Peyton Lee
1ca2137a84
radeonsi/vpe: optimize software functions
...
1. Break down the configuration functions
2. Remove unnecessary debug messages and redundant coding
3. Add support for color primaries
Signed-off-by: Peyton Lee <peytolee@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32296 >
2024-11-29 08:37:47 +00:00
Timothy Arceri
05d2fe2372
glsl: remove glsl/program.h
...
It is now unused.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32402 >
2024-11-29 14:31:30 +11:00
Timothy Arceri
8142797721
glsl: move _mesa_glsl_compile_shader() declaration
...
The function is in glsl_parser_extras.cpp so move the declaration to
glsl_parser_extras.h
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32402 >
2024-11-29 14:30:03 +11:00
Benjamin Cheng
323b59a5b5
radv/video: support event for pre-VCN4 decode queues
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32400 >
2024-11-29 10:03:48 +10:00
Benjamin Cheng
1689d88e4a
radv/video: support event for pre-VCN4 encode queues
...
Prior to VCN4, the encode queue is separate from the decode queue. For
encode, the WRITE_MEMORY command can be executed with similar framing as
for VCN4, but notably there is no signature support, so it must be
skipped.
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32400 >
2024-11-29 10:02:14 +10:00
Benjamin Cheng
152b06acd8
ac/vcn: allow sq signature package to be skipped
...
This is preparing for radv event support on pre-VCN4 encode queues.
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32400 >
2024-11-29 10:01:49 +10:00
Boris Brezillon
25c0a11cf7
panvk: Add a flag to force SIMULTANEOUS_USE
...
Turns out we have a bunch of test that fail when the descriptor
ring-buffer is involved. Add a flag so we can extend testing coverage
without adding more CTS tests.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32284 >
2024-11-28 20:21:52 +00:00
Boris Brezillon
46a0231c9c
panvk/csf: Don't disable SIMULTANEOUS_USE when tracing is enabled
...
Now that we switched to event-based tracing, we can keep the
SIMULTANEOUS_USE flag even when tracing is enabled.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32284 >
2024-11-28 20:21:52 +00:00
Boris Brezillon
bd49fa68b0
panvk/csf: Use event-based CS tracing
...
Use the new event-based tracing system to capture IDVS/COMPUTE/FRAGMENT
jobs and their context.
When tracing is enabled, the descriptor ring buffer is replaced by
a bigger linear buffer such that descriptors are not recycled before
we get a change to decode the trace.
If the decode buffer is too small and a OOB is detected, the driver will
suggest the user to allocate a bigger buffer with the
PANVK_{DESC,CS}_TRACEBUF_SIZE env vars.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com >
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32284 >
2024-11-28 20:21:52 +00:00