Jordan Justen [Thu, 8 Sep 2022 05:50:47 +0000 (22:50 -0700)]
intel/compiler: Use builder to allocate fs regs for gs control data bits
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18537>
Caio Oliveira [Sun, 11 Sep 2022 06:25:28 +0000 (23:25 -0700)]
intel/compiler: Use builder to allocate fs regs for TCS store output
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18537>
James Zhu [Mon, 29 Aug 2022 19:46:20 +0000 (15:46 -0400)]
amd/common: some ASICs with gfx9 use compute rings for render
Some ASICs with gfx9 use compute rings for render.
Fixes:
983223de5dc01f50 - ac/gpu_info: use the kernel-reported
GFX IP version to set gfx_level
-v2: update merge requests num
Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18553>
Illia Polishchuk [Mon, 12 Sep 2022 07:36:17 +0000 (10:36 +0300)]
mesa: skip extra state updates for clear calls
The glClear call updates draw state in the same way as other draw calls
with _mesa_update_state func
If currently used shader uses textures, _mesa_update_state will try to
update the shader texture state
But if the texture not set yet, before glClear call, it will detect
incompleted texture and will create dummy texture with default values
(see the update_single_program_texture func).
And this will be complete waste of time for glClear
Closes: #7128
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18459>
Alyssa Rosenzweig [Sun, 11 Sep 2022 22:12:09 +0000 (18:12 -0400)]
pan/decode: Fix job cycle detection
We need to look at the job header pointers themselves, not the memory objects
that contain them, because there can be (and usually is) multiple jobs per BO.
Fixes:
3da8c9193c3 ("panfrost: Handle Job VA cycles when decoding a dump file")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18539>
Iago Toral Quiroga [Mon, 12 Sep 2022 08:54:52 +0000 (10:54 +0200)]
v3dv: expose VK_EXT_primitive_topology_list_restart
The hw supports restarts of list primmitives and we pass
all the relevant CTS tests.
We don't advertise patch list restarts because we don't support
tessellation shaders yet.
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18544>
Oleksii Bozhenko [Thu, 8 Sep 2022 19:45:45 +0000 (22:45 +0300)]
anv: Allow aliasing with modifiers for WSI images
Ignore ALIAS_BIT when format comes from WSI because
we have the ability to bind the MEMORY_BINDING_PRIVATE
from the other WSI image.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7019
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18347>
Oleksii Bozhenko [Thu, 8 Sep 2022 19:44:40 +0000 (22:44 +0300)]
vulkan/wsi: Pass wsi_image_create_info into anv_GetPhysicalDeviceImageFormatProperties2
Signed-off-by: Oleksii Bozhenko <oleksii.bozhenko@globallogic.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18347>
Karmjit Mahil [Mon, 28 Mar 2022 12:02:44 +0000 (13:02 +0100)]
pvr: Add mid fragment pipeline barrier if needed.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18124>
Karmjit Mahil [Thu, 17 Mar 2022 11:25:54 +0000 (11:25 +0000)]
pvr: Implement clear ppp state emission from template.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18124>
Karmjit Mahil [Thu, 4 Aug 2022 13:00:57 +0000 (14:00 +0100)]
Revert "pvr: Make pvr_cmd_pack() macro clearly internal"
This reverts commit
27c57b86500ce48154533d78b74350c31152b2f3.
The driver doesn't always pack or emit words directly. In some
cases it might be desirable to store the struct equivalent for the
control word and emit/pack at a later stage. Thus reverting to
expose pvr_cmd_pack().
One such use case is in the following commit.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18124>
Karmjit Mahil [Thu, 17 Mar 2022 11:28:37 +0000 (11:28 +0000)]
pvr: Add graphics pipeline barrier handling.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18124>
Karmjit Mahil [Tue, 15 Mar 2022 14:43:17 +0000 (14:43 +0000)]
pvr: Add static clear VDM state in pvr_device.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18124>
Karmjit Mahil [Mon, 14 Mar 2022 16:14:26 +0000 (16:14 +0000)]
pvr: Add static clear control stream templates in pvr_device.
The templates will be used to flush fragment work at the
pipeline barrier. They will also be used in
vkCmdClearAttachments().
"pds_state" is a pointer to an array. This is done to prevent a
memcpy() patching the PDS state. Whenever the template requires
PDS state we will always be patching it so let's just pass a
pointer instead. Using a pointer here also allows to check (with a
NULL check) whether the pds state in the template was configured
prior to emitting.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18124>
Karmjit Mahil [Mon, 18 Jul 2022 12:29:32 +0000 (13:29 +0100)]
pvr: Add clear program in pvr_device.
It gets used to flush fragment work for a graphics pipeline
barrier.
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18124>
Roman Stratiienko [Sat, 10 Sep 2022 15:42:50 +0000 (18:42 +0300)]
Android: Use libgbm_mesa name for SDK30+
libgbm.so name has been occupied in AOSP by minigbm starting from
Android-11 (SDKv30).
In AOSP's mesa3d fork, libgbm was renamed to libgbm_mesa.
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18533>
Samuel Pitoiset [Fri, 9 Sep 2022 07:55:49 +0000 (09:55 +0200)]
radv: fix pipelineStageCreationFeedbackCount when it's 0
From the Vulkan spec 1.3.227:
"If pipelineStageCreationFeedbackCount is not 0,
pPipelineStageCreationFeedbacks must be a valid pointer to an
array of pipelineStageCreationFeedbackCount
VkPipelineCreationFeedback structures."
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18513>
Karol Herbst [Sat, 10 Sep 2022 13:32:45 +0000 (15:32 +0200)]
rusticl: add README file
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
Karol Herbst [Thu, 11 Aug 2022 16:11:07 +0000 (18:11 +0200)]
ci: rusticl with llvmpipe
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-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>
Karol Herbst [Fri, 5 Aug 2022 20:29:46 +0000 (22:29 +0200)]
rusticl/program: some more API validation
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>
Karol Herbst [Fri, 24 Jun 2022 16:55:53 +0000 (18:55 +0200)]
rusticl: call glsl_type_singleton_init_or_ref
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>
Karol Herbst [Thu, 12 May 2022 16:38:27 +0000 (18:38 +0200)]
rusticl: proper PIPE_MAP flags for internal maps
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>
Karol Herbst [Mon, 9 May 2022 11:21:26 +0000 (13:21 +0200)]
rusticl/kernel: use real references for arguments
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>
Karol Herbst [Thu, 5 May 2022 23:38:23 +0000 (01:38 +0200)]
rusticl/icd: add some way of debugging CL function calls
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>
Karol Herbst [Fri, 6 May 2022 11:10:56 +0000 (13:10 +0200)]
rusticl/icd: implement clGetExtensionFunctionAddressForPlatform
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>
Karol Herbst [Thu, 5 May 2022 22:27:32 +0000 (00:27 +0200)]
rusticl/device: report mesas version for CL_DRIVER_VERSION
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>
Karol Herbst [Wed, 4 May 2022 17:43:26 +0000 (19:43 +0200)]
rusticl/kernel: fix local buffers
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>
Karol Herbst [Wed, 4 May 2022 10:06:04 +0000 (12:06 +0200)]
rusticl/program: parse quoted paths in args
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>
Karol Herbst [Tue, 3 May 2022 19:52:42 +0000 (21:52 +0200)]
rusticl/device: allow overwriting the device_type via env
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>
Karol Herbst [Thu, 28 Apr 2022 00:49:00 +0000 (02:49 +0200)]
rusticl: disable fp64 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>
Karol Herbst [Wed, 27 Apr 2022 19:19:15 +0000 (21:19 +0200)]
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>
Karol Herbst [Sat, 23 Apr 2022 01:05:09 +0000 (03:05 +0200)]
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>
Karol Herbst [Sun, 24 Apr 2022 11:21:32 +0000 (13:21 +0200)]
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>
Karol Herbst [Thu, 21 Apr 2022 00:10:13 +0000 (02:10 +0200)]
rusticl: the CTS is a piece of shit
seriously, this fixes some image test, becaues ... rounding modes on CPU
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>
Karol Herbst [Wed, 20 Apr 2022 13:27:57 +0000 (15:27 +0200)]
rusticl/kernel: optimize local size
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>
Karol Herbst [Tue, 19 Apr 2022 21:49:34 +0000 (23:49 +0200)]
rusticl: fix compiler features_macro
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>
Karol Herbst [Sun, 17 Apr 2022 17:00:57 +0000 (19:00 +0200)]
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>
Karol Herbst [Sun, 17 Apr 2022 12:52:06 +0000 (14:52 +0200)]
rusticl/kernel: prepare for nir 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>
Karol Herbst [Sat, 16 Apr 2022 18:48:07 +0000 (20:48 +0200)]
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>
Karol Herbst [Sat, 16 Apr 2022 11:55:50 +0000 (13:55 +0200)]
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>
Karol Herbst [Fri, 15 Apr 2022 15:58:46 +0000 (17:58 +0200)]
rusticl/mem: only write pitch when required
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>
Karol Herbst [Fri, 15 Apr 2022 11:36:00 +0000 (13:36 +0200)]
rusticl/mem: fix IMAGE1D_BUFFER
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>
Karol Herbst [Thu, 14 Apr 2022 14:33:21 +0000 (16:33 +0200)]
rusticl/kernel: implement image_format and image_order
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>
Karol Herbst [Wed, 13 Apr 2022 23:21:05 +0000 (01:21 +0200)]
rusticl/mesa: make resource_from_user_memory an optinal feature
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>
Karol Herbst [Tue, 12 Apr 2022 23:28:43 +0000 (01:28 +0200)]
rusticl/mem: add user_ptr fallback shadow buffer
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>
Karol Herbst [Tue, 12 Apr 2022 15:31:47 +0000 (17:31 +0200)]
rusticl/device: fix compiler features_macro
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>
Karol Herbst [Tue, 12 Apr 2022 12:52:57 +0000 (14:52 +0200)]
rusticl/queue: implement missing CL 3.0 bits
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>
Karol Herbst [Tue, 12 Apr 2022 10:50:37 +0000 (12:50 +0200)]
rusticl/device: fix api consistency_device_and_host_timer test
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>
Karol Herbst [Mon, 11 Apr 2022 22:51:29 +0000 (00:51 +0200)]
rusticl/memory: don't map more than necessary for copy operations
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>
Karol Herbst [Sun, 3 Apr 2022 18:02:05 +0000 (20:02 +0200)]
rusticl: get rid of a few clones
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>
Jason Ekstrand [Fri, 15 Apr 2022 20:13:53 +0000 (15:13 -0500)]
rusticl: Call nir_scale_fdiv
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>
Karol Herbst [Fri, 29 Apr 2022 01:20:36 +0000 (03:20 +0200)]
rusticl/kernel: run some more opt passes
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>
Karol Herbst [Fri, 29 Apr 2022 01:20:25 +0000 (03:20 +0200)]
rusticl/kernel: set CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_MULTIPLE
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>
Karol Herbst [Thu, 31 Mar 2022 14:24:37 +0000 (16:24 +0200)]
rusticl/device: implement cl_khr_3d_image_writes
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>
Karol Herbst [Thu, 31 Mar 2022 00:38:17 +0000 (02:38 +0200)]
rusticl/device: add retain/release callbacks for luxmark v4
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>
Karol Herbst [Wed, 30 Mar 2022 16:09:32 +0000 (18:09 +0200)]
rusticl/kernel: lower memcpy
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>
Karol Herbst [Wed, 30 Mar 2022 03:01:50 +0000 (05:01 +0200)]
rusticl/kernel: inline samplers
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>
Karol Herbst [Fri, 25 Mar 2022 19:31:16 +0000 (20:31 +0100)]
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>
Karol Herbst [Fri, 25 Mar 2022 17:57:08 +0000 (18:57 +0100)]
rusticl/mem: implement clCreateSamplerWithProperties
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>
Karol Herbst [Mon, 11 Apr 2022 14:49:46 +0000 (16:49 +0200)]
rusticl/mesa/context: un Arc the PipeContext
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>
Karol Herbst [Fri, 25 Mar 2022 13:40:26 +0000 (14:40 +0100)]
rusticl/mem: implement copies between buffers and images
v2: Use the pitches from the pipe_transfer_map (Jason)
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>
Karol Herbst [Thu, 24 Mar 2022 19:52:48 +0000 (20:52 +0100)]
rusticl/mem: implement clCreateImage2D and 3D
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>
Karol Herbst [Thu, 24 Mar 2022 17:21:44 +0000 (18:21 +0100)]
rusticl/mem: implement copy image
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>
Karol Herbst [Thu, 24 Mar 2022 01:19:07 +0000 (02:19 +0100)]
rusticl/mem: implement fill image
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>
Karol Herbst [Wed, 23 Mar 2022 22:12:36 +0000 (23:12 +0100)]
rusticl/mem: implement maping 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>
Karol Herbst [Sat, 30 Apr 2022 10:06:01 +0000 (12:06 +0200)]
rusticl/memory: rework mapping tracking
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>
Karol Herbst [Tue, 22 Mar 2022 17:33:57 +0000 (18:33 +0100)]
rusticl/mem: support read/write/copy ops 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>
Karol Herbst [Tue, 22 Mar 2022 17:25:22 +0000 (18:25 +0100)]
rusticl/mesa: support mapping textures
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>
Karol Herbst [Sun, 20 Mar 2022 23:07:58 +0000 (00:07 +0100)]
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>
Karol Herbst [Fri, 18 Mar 2022 17:30:14 +0000 (18:30 +0100)]
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>
Karol Herbst [Sat, 19 Mar 2022 19:12:00 +0000 (20:12 +0100)]
rusticl/event: timeout wait on condvar to abort on reaped worker threads
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>
Karol Herbst [Sun, 20 Mar 2022 21:40:14 +0000 (22:40 +0100)]
rusticl/kernel: add stub for clGetKernelSubGroupInfo
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>
Karol Herbst [Sun, 20 Mar 2022 21:01:31 +0000 (22:01 +0100)]
rusticl/program: add stubs for program ctors and dtors
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>
Karol Herbst [Sun, 20 Mar 2022 20:47:33 +0000 (21:47 +0100)]
rusticl/pipe: add clGetPipeInfo stub end return CL_INVALID_MEM_OBJECT
spec requires this for devices not supporting pipes
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>
Karol Herbst [Sun, 20 Mar 2022 15:41:24 +0000 (16:41 +0100)]
rusticl/mem implement the memory *WithProperties API
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>
Karol Herbst [Sun, 20 Mar 2022 16:25:18 +0000 (17:25 +0100)]
rusticl/device: expose cles_khr_int64 for compatible embedded devices
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>
Karol Herbst [Fri, 18 Mar 2022 15:24:30 +0000 (16:24 +0100)]
rusticl/kernel: sweep nir to reduce peak memory usage
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>
Karol Herbst [Fri, 18 Mar 2022 02:16:05 +0000 (03:16 +0100)]
rusticl/kernel: report SIMD width as work group sizes
for the prefered multiple it should be fine. For CL_KERNEL_WORK_GROUP_SIZE
we have to query the driver once we compile to the hardware earlier.
But using the SIMD width is better than reporting 1.
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>
Karol Herbst [Fri, 18 Mar 2022 01:40:14 +0000 (02:40 +0100)]
rusticl/icd: add more func 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>
Karol Herbst [Fri, 18 Mar 2022 01:20:56 +0000 (02:20 +0100)]
rusticl: add svm func stubs
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>
Karol Herbst [Fri, 18 Mar 2022 00:49:08 +0000 (01:49 +0100)]
rusticl/program: add il stubs
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>
Karol Herbst [Fri, 18 Mar 2022 00:29:28 +0000 (01:29 +0100)]
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>
Karol Herbst [Fri, 18 Mar 2022 00:29:16 +0000 (01:29 +0100)]
rusticl/device: advertize atomic caps
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>
Karol Herbst [Fri, 18 Mar 2022 00:21:48 +0000 (01:21 +0100)]
rusticl/device: set required double fp config values
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>
Karol Herbst [Fri, 18 Mar 2022 00:06:20 +0000 (01:06 +0100)]
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>
Karol Herbst [Thu, 17 Mar 2022 23:41:38 +0000 (00:41 +0100)]
rusticl/context: implement clSetContextDestructorCallback
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>
Karol Herbst [Thu, 17 Mar 2022 22:48:47 +0000 (23:48 +0100)]
rusticl: advertize CL 1.1 and CL 1.2 extensions
That leads us stright to CL 3.0
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>
Karol Herbst [Thu, 17 Mar 2022 16:55:34 +0000 (17:55 +0100)]
rusticl/kernel: add missing preprocessor definitions
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>
Karol Herbst [Fri, 29 Apr 2022 12:02:57 +0000 (14:02 +0200)]
rusticl/kernel: add support for offsets
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>
Karol Herbst [Thu, 17 Mar 2022 19:18:16 +0000 (20:18 +0100)]
rusticl/kernel: run driver requested lowering passes
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>
Karol Herbst [Thu, 17 Mar 2022 18:29:01 +0000 (19:29 +0100)]
rusticl/mem: finish clEnqueueMigrateMemObjects
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>
Karol Herbst [Thu, 17 Mar 2022 16:38:41 +0000 (17:38 +0100)]
rusticl/kernel: implement CL_KERNEL_COMPILE_WORK_GROUP_SIZE
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>
Karol Herbst [Thu, 17 Mar 2022 15:08:39 +0000 (16:08 +0100)]
rusticl/event: add fake impl of clGetEventProfilingInfo
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>
Karol Herbst [Thu, 17 Mar 2022 10:44:22 +0000 (11:44 +0100)]
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>
Karol Herbst [Thu, 17 Mar 2022 11:18:39 +0000 (12:18 +0100)]
rusticl/api: add param to query which contains application provided values
this is required for e.g. CL_PROGRAM_BINARIES
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>
Karol Herbst [Wed, 16 Mar 2022 23:06:16 +0000 (00:06 +0100)]
rusticl: implement clUnloadPlatformCompiler
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>
Karol Herbst [Wed, 16 Mar 2022 21:37:42 +0000 (22:37 +0100)]
rusticl/program: support compiling libraries
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>
Karol Herbst [Sat, 30 Apr 2022 13:31:36 +0000 (15:31 +0200)]
rusticl/mem: add clEnqueueMigrateMemObjects stub
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>
Karol Herbst [Sat, 30 Apr 2022 20:34:10 +0000 (22:34 +0200)]
rusticl/event: implement marker and barrier
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>
Karol Herbst [Sat, 30 Apr 2022 20:34:02 +0000 (22:34 +0200)]
rusticl/mem: implement clFillBuffer
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>