From: Kristian Høgsberg Kristensen Date: Tue, 1 Mar 2016 17:17:16 +0000 (-0800) Subject: anv: Add in image->offset when setting up depth buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22d8666d74f6fa6de53366f76a56277976eced21;p=mesa.git anv: Add in image->offset when setting up depth buffer Fix from Neil Roberts. https://bugs.freedesktop.org/show_bug.cgi?id=94348 --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 9be87a3ff05..c00c6d0decc 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -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,