asahi: fix drm-shim
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Was trying to test a patch on my Intel box, seems asahi drm-shim bitrotted in
that time. Update the parameters to better match what I dumped off my m1
personal laptop and stub another ioctl. This gets shader-db ./run working on x86

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37382>
This commit is contained in:
Alyssa Rosenzweig 2025-09-15 15:52:17 -04:00 committed by Marge Bot
parent d0edb06951
commit 2f7b1e8453

View file

@ -15,8 +15,9 @@ static const struct drm_asahi_params_global params = {
.gpu_generation = 13,
.gpu_variant = 'G',
.gpu_revision = 0,
.vm_start = 0x1000000,
.vm_end = 0x5000000,
.vm_start = 0x4000,
.vm_end = 0x7fffff8000ull,
.command_timestamp_frequency_hz = 1000000000,
};
struct asahi_bo {
@ -105,6 +106,7 @@ static ioctl_fn_t driver_ioctls[] = {
[DRM_ASAHI_GEM_MMAP_OFFSET] = asahi_ioctl_gem_mmap_offset,
[DRM_ASAHI_QUEUE_CREATE] = asahi_ioctl_noop,
[DRM_ASAHI_QUEUE_DESTROY] = asahi_ioctl_noop,
[DRM_ASAHI_GEM_BIND_OBJECT] = asahi_ioctl_noop,
[DRM_ASAHI_SUBMIT] = asahi_ioctl_noop,
};