-
Tomeu Vizoso authored
With the main aim of making vtest's usage of virglrenderer more similar to that of QEMU, this patch sets a backing store to each resource and reads from or writes to at each transfer operation. v2: - Instead of adding a callback on resource destruction, free the iovec when we unref a resource as we know that we won't be doing anything else with it. (Dave Airlie) v3: - Store pointers to iovecs in the global to also release them v4: - Add new commands for resource creation and transfers, to be used when protocol version >= 1. v5: - Replaced the global array of iovecs with a hash table because some es31 tests create thousands of resources and reach any sane limit. Tested-by: Jakob Bornecrantz <jakob@collabora.com> Reviewed-by: Jakob Bornecrantz <jakob@collabora.com> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Jakob Bornecrantz <jakob@collabora.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
6373d5a3