anv: Add in image->offset when setting up depth buffer
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 1 Mar 2016 17:17:16 +0000 (09:17 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 1 Mar 2016 17:19:39 +0000 (09:19 -0800)
Fix from Neil Roberts.

https://bugs.freedesktop.org/show_bug.cgi?id=94348

src/intel/vulkan/genX_cmd_buffer.c

index 9be87a3ff052693268a32e9c5305c20a6b710d7e..c00c6d0decc3d9488208aaa4d5401b228927b517 100644 (file)
@@ -572,7 +572,7 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer)
          .SurfacePitch = image->depth_surface.isl.row_pitch - 1,
          .SurfaceBaseAddress = {
             .bo = image->bo,
-            .offset = image->depth_surface.offset,
+            .offset = image->offset + image->depth_surface.offset,
          },
          .Height = fb->height - 1,
          .Width = fb->width - 1,