Home
last modified time | relevance | path

Searched +full:drm +full:- +full:shim (Results 1 – 25 of 69) sorted by relevance

123

/external/mesa3d/src/drm-shim/
DREADME.md1 # DRM shim - Fake GEM kernel drivers in userspace for CI
4 be able to present either no-op GEM devices (for shader-db runs) or
5 simulator-backed GEM devices (for testing against a software simulator
11 - Doesn't know how to handle DRM fds getting passed over the wire from
13 - libc interception is rather glibc-specific and fragile.
14 - Can easily break gdb if the libc interceptor code is what's broken.
15 (ulimit -c unlimited and doing gdb on the core after the fact can
20 You choose the backend by setting `LD_PRELOAD` to the shim you want.
21 Since this will effectively fake another DRM device to your system,
23 to use it if it's not the only DRM device present. Setting
[all …]
Ddevice.c27 * wrappers, and calls into the driver-specific code as necessary.
40 #include "drm-uapi/drm.h"
57 /* Global state for the shim shared between libc, core, and driver. */
75 * Called when the first libc shim is called, to initialize GEM simulation
89 shim_device.mem_fd = memfd_create("shim mem", MFD_CLOEXEC); in drm_shim_device_init()
90 assert(shim_device.mem_fd != -1); in drm_shim_device_init()
102 * are offsets are page-size aligned as required. Otherwise, mmap will fail in drm_shim_device_init()
109 SHIM_MEM_SIZE - shim_page_size); in drm_shim_device_init()
119 shim_fd->fd = fd; in drm_shim_file_create()
120 p_atomic_set(&shim_fd->refcount, 1); in drm_shim_file_create()
[all …]
Ddrm_shim.c27 * Implements wrappers of libc functions to fake having a DRM device that
49 #include <drm-uapi/drm.h>
110 int render_node_minor = -1;
152 stat(render_node_path, &st) == -1) { in get_dri_render_node_minor()
186 override->path = path; in drm_shim_override_file()
187 override->contents = strdup(contents); in drm_shim_override_file()
200 * that might need to be wrapped with the shim.
251 fprintf(stderr, "Initializing DRM shim on %s\n", in init_shim()
274 if (render_node_minor == -1) in hide_drm_device_path()
284 * We want to hide all other drm devices for the shim. in hide_drm_device_path()
[all …]
/external/mesa3d/docs/drivers/
Dpanfrost.rst6 on Mali-G52 and Mali-G57 but **non-conformant** on other GPUs. The following
36 --------
38 Panfrost's OpenGL support is a Gallium driver. Since Mali GPUs are 3D-only and
47 Build like ``meson . build/ -Dvulkan-drivers=
48 -Dgallium-drivers=panfrost -Dllvm=disabled`` for a build directory
55 ----
62 --------------------------
67 every system-on-chip with a Mali GPU support all these formats. Many lower-end
70 system-on-chip, Panfrost includes a ``panfrost_texfeatures`` tool to query
73 To use this tool, include the option ``-Dtools=panfrost`` when configuring Mesa.
[all …]
Dasahi.rst7 -----------------
12 reverse-engineering the hardware, as glue to get at the "interesting" GPU
15 The library is only built if ``-Dtools=asahi`` is passed. It builds a single
24 -----------------
36 ``st_var`` instruction. ``st_var`` takes a *vertex output index* and a 32-bit
39 consist of a single 32-bit value or an aligned 16-bit register pair, depending
40 on whether interpolation should happen at 32-bit or 16-bit. Vertex outputs are
42 32-bit user varyings coming next with perspective, flat, and linear interpolated
43 varyings grouped in that order, then 16-bit user varyings with the same groupings,
51 .. list-table:: Ordering of vertex outputs with all outputs used
[all …]
Dv3d.rst6 <https://www.khronos.org/conformance/adopters/conformant-products/opengles#submission_882>`__
11 <https://www.kernel.org/doc/html/latest/gpu/v3d.html>`__ kernel DRM
13 4 and 5, the kernel uses the VC4 DRM driver for display support, so Mesa
15 behind-the-scenes buffer management between the two kernel drivers,
23 <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25851>`__)
29 ----------------------
46 (``src/broadcom/drm-shim/``) to use simpenrose from an x86 system with
/external/mesa3d/src/etnaviv/
Dmeson.build23 subdir('drm') subdir
26 if with_tools.contains('drm-shim')
27 subdir('drm-shim') subdir
/external/mesa3d/src/asahi/
Dmeson.build3 # SPDX-License-Identifier: MIT
17 if with_tools.contains('drm-shim')
18 subdir('drm-shim') subdir
/external/mesa3d/src/nouveau/
Dmeson.build26 if with_tools.contains('drm-shim')
27 subdir('drm-shim') subdir
/external/mesa3d/src/freedreno/
Dmeson.build32 dep_libxml2 = dependency('libxml-2.0', allow_fallback: true, required: false)
46 subdir('drm') subdir
68 if with_tools.contains('drm-shim')
69 subdir('drm-shim') subdir
/external/mesa3d/src/amd/
Dmeson.build41 if with_tools.contains('drm-shim')
42 subdir('drm-shim') subdir
/external/mesa3d/src/panfrost/
Dmeson.build31 '-Wno-pointer-arith'
81 if with_tools.contains('drm-shim')
82 subdir('drm-shim') subdir
/external/mesa3d/src/
Dmeson.build33 inc_virtio_gpu = include_directories('virtio/virtio-gpu')
56 command : [prog_python, git_sha1_gen_py, '--output', '@OUTPUT@'],
75 if with_tools.contains('drm-shim')
76 subdir('drm-shim') subdir
82 subdir('egl/wayland/wayland-drm')
/external/mesa3d/src/broadcom/
Dmeson.build34 if with_tools.contains('drm-shim')
35 subdir('drm-shim') subdir
41 'broadcom-v' + ver,
47 c_args : [no_override_init_args, '-DV3D_VERSION=' + ver],
53 v3d_args = ['-DV3D_BUILD_NEON']
57 v3d_neon_c_args = '-mfpu=neon'
/external/libdrm/freedreno/kgsl/
DREADME2 in libdrm freedreno (before the upstream drm/msm driver). Note
3 that the kgsl backend requires the "kgsl-drm" shim driver, which
9 ----------------
12 DRM interface for GEM, which is basically sufficient to have DRI2
14 cores is via different other devices (/dev/kgsl-*). This is not
15 quite how I'd write a DRM driver, but at this stage it is useful for
16 xf86-video-freedreno and fdre (and eventual gallium driver) to be
22 driver and xf86-video-freedreno (ignoring the fbdev->KMS changes).
25 module or a DRM driver.. it is just an attempt to paper over a non-
/external/mesa3d/src/gallium/drivers/lima/
Dmeson.build94 prog_python, '@INPUT@', '-p', dir_compiler_nir,
111 compile_args : '-DGALLIUM_LIMA',
159 if with_tools.contains('drm-shim')
160 subdir('drm-shim') subdir
/external/mesa3d/src/egl/main/
Degldevice.c66 dev_list = dev_list->Next; in _eglFiniDevice()
71 dev_list = dev_list->Next; in _eglFiniDevice()
75 drmFreeDevice(&dev->device); in _eglFiniDevice()
93 cur = cur->Next; in _eglCheckDeviceHandle()
115 assert(device->available_nodes & ((1 << DRM_NODE_RENDER))); in _eglAddDRMDevice()
119 * assert(device->available_nodes & ((1 << DRM_NODE_PRIMARY))); in _eglAddDRMDevice()
121 * DRM shim does not expose a primary node, so the CI would fail if we had in _eglAddDRMDevice()
122 * this assert. DRM shim is being used to run shader-db. We need to in _eglAddDRMDevice()
123 * investigate what should be done (probably fixing DRM shim). in _eglAddDRMDevice()
132 while (dev->Next) { in _eglAddDRMDevice()
[all …]
/external/igt-gpu-tools/include/drm-uapi/
Dexynos_drm.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
7 * Joonyoung Shim <jy0922.shim@samsung.com>
8 * Seung-Woo Kim <sw0312.kim@samsung.com>
19 #include "drm.h"
26 * User-desired buffer creation information structure.
28 * @size: user-desired memory allocation size.
29 * - this size value would be page-aligned internally.
32 * - this handle will be set by gem module of kernel side.
41 * A structure for getting a fake-offset that can be used with mmap.
44 * @reserved: just padding to be 64-bit aligned.
[all …]
/external/kernel-headers/original/uapi/drm/
Dexynos_drm.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
7 * Joonyoung Shim <jy0922.shim@samsung.com>
8 * Seung-Woo Kim <sw0312.kim@samsung.com>
19 #include "drm.h"
26 * User-desired buffer creation information structure.
28 * @size: user-desired memory allocation size.
29 * - this size value would be page-aligned internally.
32 * - this handle will be set by gem module of kernel side.
41 * A structure for getting a fake-offset that can be used with mmap.
44 * @reserved: just padding to be 64-bit aligned.
[all …]
/external/mesa3d/src/etnaviv/drm-shim/
Detnaviv_noop.c18 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
30 #include "drm-uapi/etnaviv_drm.h"
31 #include "drm-shim/drm_shim.h"
168 drm_shim_bo_init(bo, create->size); in etnaviv_ioctl_gem_new()
169 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in etnaviv_ioctl_gem_new()
180 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle); in etnaviv_ioctl_gem_info()
182 args->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo); in etnaviv_ioctl_gem_info()
193 if (gp->param > ETNAVIV_PARAM_SOFTPIN_START_ADDR) { in etnaviv_ioctl_get_param()
194 fprintf(stderr, "Unknown DRM_IOCTL_ETNAVIV_GET_PARAM %d\n", gp->param); in etnaviv_ioctl_get_param()
195 return -1; in etnaviv_ioctl_get_param()
[all …]
/external/mesa3d/src/gallium/drivers/lima/drm-shim/
Dlima_noop.c28 #include "drm-shim/drm_shim.h"
29 #include "drm-uapi/lima_drm.h"
46 switch (gp->param) { in lima_ioctl_get_param()
48 gp->value = DRM_LIMA_PARAM_GPU_ID_MALI450; in lima_ioctl_get_param()
51 gp->value = 6; in lima_ioctl_get_param()
54 fprintf(stderr, "Unknown DRM_IOCTL_LIMA_GET_PARAM %d\n", gp->param); in lima_ioctl_get_param()
55 return -1; in lima_ioctl_get_param()
66 size_t size = ALIGN(create->size, 4096); in lima_ioctl_gem_create()
70 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in lima_ioctl_gem_create()
83 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, gem_info->handle); in lima_ioctl_gem_info()
[all …]
/external/mesa3d/src/freedreno/drm-shim/
Dfreedreno_noop.c27 #include "drm-shim/drm_shim.h"
28 #include "drm-uapi/msm_drm.h"
54 size_t size = (size_t)align64(create->size, 4096); in msm_ioctl_gem_new()
57 return -EINVAL; in msm_ioctl_gem_new()
68 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in msm_ioctl_gem_new()
80 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle); in msm_ioctl_gem_info()
83 return -ENOENT; in msm_ioctl_gem_info()
85 switch (args->info) { in msm_ioctl_gem_info()
87 args->value = drm_shim_bo_get_mmap_offset(shim_fd, bo); in msm_ioctl_gem_info()
90 args->value = bo->mem_addr; in msm_ioctl_gem_info()
[all …]
/external/mesa3d/src/asahi/drm-shim/
Dasahi_noop.c4 * SPDX-License-Identifier: MIT
7 #include "drm-shim/drm_shim.h"
25 "OF_COMPATIBLE_0=apple,gpu-g13g\n" in drm_shim_driver_init()
/external/mesa3d/src/etnaviv/ci/
Dgitlab-ci.yml1 .etnaviv-rules:
4 - !reference [.test, rules]
5 - !reference [.austriancoder-farm-rules, rules]
6 - !reference [.gl-rules, rules]
7 - changes: &etnaviv_file_list
8 - src/etnaviv/*
9 - src/etnaviv/ci/gitlab-ci.yml
10 - src/etnaviv/ci/deqp-$DEQP_SUITE.toml
11 - src/etnaviv/ci/$GPU_VERSION-fails.txt
12 - src/etnaviv/ci/$GPU_VERSION-flakes.txt
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/ci/
Dgitlab-ci-inc.yml1 .nouveau-rules:
4 - !reference [.test, rules]
5 - !reference [.anholt-farm-rules, rules]
6 - !reference [.gl-rules, rules]
7 - changes: &nouveau_file_list
8 - src/nouveau/*
9 - src/nouveau/codegen/**/*
10 - src/nouveau/drm-shim/**/*
11 - src/nouveau/headers/**/*
12 - src/nouveau/winsys/**/*
[all …]

123