vk/image: Don't set anv_surface_view::offset twice
authorChad Versace <chad.versace@intel.com>
Tue, 18 Aug 2015 18:30:38 +0000 (11:30 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 18 Aug 2015 18:48:50 +0000 (11:48 -0700)
It was set twice a few lines apart, and the second setting always
overrode the first.

src/vulkan/anv_image.c

index 0152fef9ffb57725ff0e907b199cae86925cf870..f24acdb0facd26e87e2c375e9b12b72d3f6239b1 100644 (file)
@@ -354,7 +354,6 @@ anv_image_view_init(struct anv_image_view *iview,
       break;
    case VK_IMAGE_ASPECT_DEPTH:
    case VK_IMAGE_ASPECT_COLOR:
-      view->offset = image->offset;
       surface = &image->primary_surface;
       break;
    default: