From 22d8666d74f6fa6de53366f76a56277976eced21 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Kristensen Date: Tue, 1 Mar 2016 09:17:16 -0800 Subject: anv: Add in image->offset when setting up depth buffer Fix from Neil Roberts. https://bugs.freedesktop.org/show_bug.cgi?id=94348 --- src/intel/vulkan/genX_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/vulkan/genX_cmd_buffer.c') 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, -- cgit v1.2.3