Instead of using state->fb->obj[0] directly, get object from framebuffer
by calling drm_gem_fb_get_obj() and return error code when object is
null to avoid using null object of framebuffer.
v2: Call drm_gem_fb_get_obj after check old_state->fb for NULL.
Signed-off-by: Julia Zhang
---
Instead of using state->fb->obj[0] directly, get object from framebuffer
by calling drm_gem_fb_get_obj() and return error code when object is
null to avoid using null object of framebuffer.
Signed-off-by: Julia Zhang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 17 +++--
and vram objects.
Signed-off-by: Julia Zhang
---
drivers/gpu/drm/virtio/virtgpu_prime.c | 40 +++---
1 file changed, 36 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c
b/drivers/gpu/drm/virtio/virtgpu_prime.c
index 44425f20d91a..b490a5343b06
and
implement virtgpu specific map/unmap/attach callbacks to support both of
shmem objects and vram objects.
Changes from v1 to v2:
-Reimplement virtgpu_gem_device_attach()
-Remove calling drm dma-buf funcs in virtgpu callbacks and reimplement virtgpu
specific dma-buf callbacks.
Julia Zhang (1):
drm
drm_gem_map_attach for both of these two kinds of
object.
Signed-off-by: Julia Zhang
---
drivers/gpu/drm/virtio/virtgpu_prime.c | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c
b/drivers/gpu/drm/virtio/virtgpu_prime.c
index
the requirement was added.
Julia Zhang (1):
drm/virtio: Implement device_attach
drivers/gpu/drm/virtio/virtgpu_prime.c | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
--
2.34.1
Hi all,
Sorry to late reply. This is v2 of the implementation of
resource_query_layout. This adds a new ioctl to let guest query information
of host resource, which is originally from Daniel Stone. We add some
changes to support query the correct stride of host resource before it's
created, which
Signed-off-by: Daniel Stone
Co-developed-by: Julia Zhang # support query
stride before it's created
Signed-off-by: Julia Zhang
---
drivers/gpu/drm/virtio/virtgpu_drv.c | 1 +
drivers/gpu/drm/virtio/virtgpu_drv.h | 22 -
drivers/gpu/drm/virtio/virtgpu_ioctl.
Modify RESOURCE_GET_LAYOUT ioctl to handle the use case that query
correct stride for guest linear resource before it is created.
Signed-off-by: Julia Zhang
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 26 --
drivers/gpu/drm/virtio/virtgpu_ioctl.c | 47
From: Daniel Stone
This ioctl allows the guest to discover how the guest actually allocated
the underlying buffer, which allows buffers to be used for GL<->Vulkan
interop and through standard window systems. It's also a step towards
properly supporting modifiers in the guest.
---
/23896
Daniel Stone (1):
drm/virtio: Implement RESOURCE_GET_LAYOUT ioctl
Julia Zhang (1):
drm/virtio: Modify RESOURCE_GET_LAYOUT ioctl
drivers/gpu/drm/virtio/virtgpu_drv.c | 1 +
drivers/gpu/drm/virtio/virtgpu_drv.h | 22 -
drivers/gpu/drm/virtio/virtgpu_ioctl.c | 66
Remove stride and layer_stride check in virtio-gpu so that virgl can
send transfer data command with non zero stride to sync up data from
guest to host for dGPU prime on VM.
Link: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23896
Signed-off-by: Julia Zhang
---
drivers/gpu/drm
12 matches
Mail list logo