vk/image: Define anv_surface, refactor anv_image
authorChad Versace <chad.versace@intel.com>
Sat, 27 Jun 2015 01:48:34 +0000 (18:48 -0700)
committerChad Versace <chad.versace@intel.com>
Sat, 27 Jun 2015 04:45:53 +0000 (21:45 -0700)
commitc6e76aed9dc28aae05cb11857201b5dab0c0cae8
tree10002dd301f2e68953f6c5e3f1bf97edf0924364
parent127cb3f6c5f29c4cb23ba23a294fc5b65702ffdf
vk/image: Define anv_surface, refactor anv_image

This prepares for upcoming miptree support.

anv_surface is a proxy for color surfaces, depth surfaces, and stencil
surfaces.  Embed two instances of anv_surface into anv_image: the
primary surface (color or depth), and an optional stencil surface.
src/vulkan/image.c
src/vulkan/intel.c
src/vulkan/private.h
src/vulkan/x11.c