static void update_cursor_data_virgl(VirtIOGPU *g,

                                     struct virtio_gpu_scanout *s,

                                     uint32_t resource_id)

{

    uint32_t width, height;

    uint32_t pixels, *data;



    data = virgl_renderer_get_cursor_data(resource_id, &width, &height);

    if (!data) {

        return;

    }



    if (width != s->current_cursor->width ||

        height != s->current_cursor->height) {


        return;

    }



    pixels = s->current_cursor->width * s->current_cursor->height;

    memcpy(s->current_cursor->data, data, pixels * sizeof(uint32_t));


}
static void update_cursor_data_virgl(VirtIOGPU *g,

                                     struct virtio_gpu_scanout *s,

                                     uint32_t resource_id)

{

    uint32_t width, height;

    uint32_t pixels, *data;



    data = virgl_renderer_get_cursor_data(resource_id, &width, &height);

    if (!data) {

        return;

    }



    if (width != s->current_cursor->width ||

        height != s->current_cursor->height) {


        return;

    }



    pixels = s->current_cursor->width * s->current_cursor->height;

    memcpy(s->current_cursor->data, data, pixels * sizeof(uint32_t));


}
static void FUNC_0(VirtIOGPU *VAR_0,

                                     struct virtio_gpu_scanout *VAR_1,

                                     uint32_t VAR_2)

{

    uint32_t width, height;

    uint32_t pixels, *data;



    data = virgl_renderer_get_cursor_data(VAR_2, &width, &height);

    if (!data) {

        return;

    }



    if (width != VAR_1->current_cursor->width ||

        height != VAR_1->current_cursor->height) {


        return;

    }



    pixels = VAR_1->current_cursor->width * VAR_1->current_cursor->height;

    memcpy(VAR_1->current_cursor->data, data, pixels * sizeof(uint32_t));


}
static void FUNC_0(VirtIOGPU *VAR_0,
struct virtio_gpu_scanout *VAR_1,
uint32_t VAR_2)
{ uint32_t width, height; uint32_t pixels, *data; data = virgl_renderer_get_cursor_data(VAR_2, &width, &height); if (!data) { return; } if (width != VAR_1->current_cursor->width ||
height != VAR_1->current_cursor->height) { return; } pixels = VAR_1->current_cursor->width * VAR_1->current_cursor->height; memcpy(VAR_1->current_cursor->data, data, pixels * sizeof(uint32_t)); }