@ -6395,6 +6395,14 @@ static enum virgl_resource_fd_type vrend_pipe_resource_export_fd(UNUSED struct p
return VIRGL_RESOURCE_FD_INVALID ;
return VIRGL_RESOURCE_FD_INVALID ;
}
}
static uint64_t vrend_pipe_resource_get_size ( struct pipe_resource * pres ,
UNUSED void * data )
{
struct vrend_resource * res = ( struct vrend_resource * ) pres ;
return res - > size ;
}
const struct virgl_resource_pipe_callbacks *
const struct virgl_resource_pipe_callbacks *
vrend_renderer_get_pipe_callbacks ( void )
vrend_renderer_get_pipe_callbacks ( void )
{
{
@ -6403,6 +6411,7 @@ vrend_renderer_get_pipe_callbacks(void)
. attach_iov = vrend_pipe_resource_attach_iov ,
. attach_iov = vrend_pipe_resource_attach_iov ,
. detach_iov = vrend_pipe_resource_detach_iov ,
. detach_iov = vrend_pipe_resource_detach_iov ,
. export_fd = vrend_pipe_resource_export_fd ,
. export_fd = vrend_pipe_resource_export_fd ,
. get_size = vrend_pipe_resource_get_size ,
} ;
} ;
return & callbacks ;
return & callbacks ;