aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2016-03-01 09:17:16 -0800
committerKristian Høgsberg Kristensen <[email protected]>2016-03-01 09:19:39 -0800
commit22d8666d74f6fa6de53366f76a56277976eced21 (patch)
tree4248b694a322d4b9d3a74c820521bfdf87b0cbb9
parent38f4c11c2f5c00a1d2addddcd0508ad89a7cead4 (diff)
anv: Add in image->offset when setting up depth buffer
Fix from Neil Roberts. https://bugs.freedesktop.org/show_bug.cgi?id=94348
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c2
1 files changed, 1 insertions, 1 deletions
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,