virgl: Fix virgl driver in mesa.

There is a cros overlay for mesa that changes the virtuals for
surfaces and samplers but not for the virgl driver.  Also
the context may outlive these objects so it needs to be ref
counted.

BUG=b:65738232
TEST=Runs with Betty on qemu with virglrenderer

Change-Id: Iba785f888b3f53fef056bc33cd6d7a43b4a6123c
Signed-off-by: ChromeOS Developer <djmk@google.com>
2 files changed