virgl: modify internal structures to track winsys-supplied data
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 25 Sep 2019 17:33:16 +0000 (10:33 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Thu, 3 Oct 2019 00:57:53 +0000 (17:57 -0700)
commit9bde8f3a8fcb6c3e0bf1fe4b87155161b85cf9b6
treecdebd17367500265c026090d3bc42854100ab039
parentaad4127c41b70981f5c8a5aad6e3d7922a812ccb
virgl: modify internal structures to track winsys-supplied data

The winsys might supply dimensions that are different than
those we calculate.  In additional, it may supply virtualized
modifiers.

In practice, a stride != bpp * width and virtualized modifiers don't
happen yet, but the plan is to move in that direction.

Also make virgl_resource_layout static.

Reviewed by: Robert Tarasov <tutankhamen@chromium.org>
src/gallium/drivers/virgl/virgl_resource.c
src/gallium/drivers/virgl/virgl_resource.h