Karol Herbst
ca1e9917a9
rusticl/program: allow dumping compilation logs through RUSTICL_DEBUG
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22280 >
2023-04-13 02:54:21 +00:00
Karol Herbst
13a4c49cb1
rusticl/program: enable spirv
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19008 >
2023-02-13 12:45:07 +00:00
Italo Nicola
c935232822
rusticl: use 32-bit address format for 32-bit devices
...
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18985 >
2022-10-15 02:23:03 +00:00
Italo Nicola
66b3df3c15
clc: add 32-bit target
...
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18985 >
2022-10-15 02:23:03 +00:00
LingMan
b23fe77cf4
rusticl: Fix compilation if stdout and/or stderr aren't symbols
...
ISO C only guarantees that `stdout` and `stderr` are expressions of type `FILE*`. It does not
guarantee that they are symbols which can be bound to. In particular, they are macros on the BSDs,
which bindgen cannot deal with (yet?).
Add our own symbol-defining wrapper.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7269
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18810 >
2022-09-27 12:36:22 +00:00
Karol Herbst
f2ce79f8af
rusticl/memory: kernel read_write images prep work
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:13 +00:00
Karol Herbst
734352ddfb
rusticl/program: some boilerplate code for SPIR-V support
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:13 +00:00
Karol Herbst
1b00d4f22e
rusticl/kernel: implement CL_KERNEL_ATTRIBUTES
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:13 +00:00
Karol Herbst
79b3c820cc
rusticl/kernel: cache the nir as well
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:13 +00:00
Karol Herbst
0da5e8704b
rusticl: kernel caching
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:13 +00:00
Karol Herbst
7f80350d55
rusticl: port to Rust 2018
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:13 +00:00
Karol Herbst
0423f0701e
rusticl/kernel: support for images
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:13 +00:00
Karol Herbst
2639cff15c
rusticl/spirv: add print method
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:12 +00:00
Karol Herbst
ea1250d0bf
rusticl: add support for printf
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:12 +00:00
Karol Herbst
e548b6f3c1
rusticl: claim support for generic pointers
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:12 +00:00
Karol Herbst
a40d4c0346
rusticl/kernel: implement clCloneKernel
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:12 +00:00
Karol Herbst
e028baa177
rusticl/program: implement clCreateProgramWithBinary
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:12 +00:00
Karol Herbst
5795ee0e08
rusticl: translate spirv to nir and first steps to kernel arg handling
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:12 +00:00
Karol Herbst
e8de580998
rusticl/kernel: basic implementation
...
still not able to run kernels, but most of the boilerplate code is there now
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:12 +00:00
Karol Herbst
20c90fed5a
rusticl: added
...
Initial code drop for Rusticl :)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439 >
2022-09-12 05:58:12 +00:00