[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 08/11] virtio-gpu: add cursor update tracepoint
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 08/11] virtio-gpu: add cursor update tracepoint |
Date: |
Fri, 9 Oct 2015 10:18:31 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
---
hw/display/virtio-gpu.c | 9 ++++++++-
trace-events | 1 +
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
index 0f8d35c..a836ce3 100644
--- a/hw/display/virtio-gpu.c
+++ b/hw/display/virtio-gpu.c
@@ -91,13 +91,20 @@ static void update_cursor_data_virgl(VirtIOGPU *g,
static void update_cursor(VirtIOGPU *g, struct virtio_gpu_update_cursor
*cursor)
{
struct virtio_gpu_scanout *s;
+ bool move = cursor->hdr.type != VIRTIO_GPU_CMD_MOVE_CURSOR;
if (cursor->pos.scanout_id >= g->conf.max_outputs) {
return;
}
s = &g->scanout[cursor->pos.scanout_id];
- if (cursor->hdr.type != VIRTIO_GPU_CMD_MOVE_CURSOR) {
+ trace_virtio_gpu_update_cursor(cursor->pos.scanout_id,
+ cursor->pos.x,
+ cursor->pos.y,
+ move ? "move" : "update",
+ cursor->resource_id);
+
+ if (move) {
if (!s->current_cursor) {
s->current_cursor = cursor_alloc(64, 64);
}
diff --git a/trace-events b/trace-events
index 02ff51b..2da6832 100644
--- a/trace-events
+++ b/trace-events
@@ -1199,6 +1199,7 @@ virtio_gpu_cmd_ctx_destroy(uint32_t ctx) "ctx 0x%x"
virtio_gpu_cmd_ctx_res_attach(uint32_t ctx, uint32_t res) "ctx 0x%x, res 0x%x"
virtio_gpu_cmd_ctx_res_detach(uint32_t ctx, uint32_t res) "ctx 0x%x, res 0x%x"
virtio_gpu_cmd_ctx_submit(uint32_t ctx, uint32_t size) "ctx 0x%x, size %d"
+virtio_gpu_update_cursor(uint32_t scanout, uint32_t x, uint32_t y, const char
*type, uint32_t res) "scanout %d, x %d, y %d, %s, res 0x%x"
virtio_gpu_fence_ctrl(uint64_t fence, uint32_t type) "fence 0x%" PRIx64 ",
type 0x%x"
virtio_gpu_fence_resp(uint64_t fence) "fence 0x%" PRIx64
--
1.8.3.1
- [Qemu-devel] [PULL 00/11] virtio-gpu+gtk: add 3d rendering support, Gerd Hoffmann, 2015/10/10
- [Qemu-devel] [PULL 08/11] virtio-gpu: add cursor update tracepoint,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 04/11] virtio-gpu: move iov free to virtio_gpu_cleanup_mapping_iov, Gerd Hoffmann, 2015/10/09
- [Qemu-devel] [PULL 06/11] virtio-gpu: update headers for virgl/3d, Gerd Hoffmann, 2015/10/09
- [Qemu-devel] [PULL 10/11] gtk/opengl: add opengl context and scanout support (egl), Gerd Hoffmann, 2015/10/09
- [Qemu-devel] [PULL 07/11] virtio-gpu: add 3d mode and virgl rendering support., Gerd Hoffmann, 2015/10/09
- [Qemu-devel] [PULL 02/11] sdl2: stop flickering, Gerd Hoffmann, 2015/10/09
- [Qemu-devel] [PULL 05/11] virtio-gpu: change licence from GPLv2 to GPLv2+, Gerd Hoffmann, 2015/10/09
- [Qemu-devel] [PULL 09/11] opengl: add egl-context.[ch] helpers, Gerd Hoffmann, 2015/10/09
- [Qemu-devel] [PULL 01/11] shaders: initialize vertexes once, Gerd Hoffmann, 2015/10/09
- [Qemu-devel] [PULL 03/11] ui/console: add opengl context and scanout support interfaces., Gerd Hoffmann, 2015/10/10
- [Qemu-devel] [PULL 11/11] gtk/opengl: add opengl context and scanout support (GtkGLArea), Gerd Hoffmann, 2015/10/10