vk/image: Abort on stencil image views
authorChad Versace <chad.versace@intel.com>
Sat, 27 Jun 2015 02:23:21 +0000 (19:23 -0700)
committerChad Versace <chad.versace@intel.com>
Sat, 27 Jun 2015 02:23:21 +0000 (19:23 -0700)
The code doesn't work. Not even close.

Replace the broken code with a FINISHME and abort.

src/vulkan/image.c

index a2f76ef27d69aab7b25e1ce5786a7467c3828665..dc05b694c8ad729ab31032647d53cd2e62e221f4 100644 (file)
@@ -278,10 +278,8 @@ anv_image_view_init(struct anv_surface_view *view,
    view->bo = image->bo;
    switch (pCreateInfo->subresourceRange.aspect) {
    case VK_IMAGE_ASPECT_STENCIL:
-      /* FIXME: How is stencil texturing formed? */
-      view->offset = image->offset + image->stencil_offset;
-      tile_mode = WMAJOR;
-      format = R8_UINT;
+      anv_finishme("stencil image views");
+      abort();
       break;
    case VK_IMAGE_ASPECT_DEPTH:
    case VK_IMAGE_ASPECT_COLOR: