anv: Add in image->offset when setting up depth buffer
Fix from Neil Roberts. https://bugs.freedesktop.org/show_bug.cgi?id=94348
This commit is contained in:
@@ -572,7 +572,7 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer)
|
|||||||
.SurfacePitch = image->depth_surface.isl.row_pitch - 1,
|
.SurfacePitch = image->depth_surface.isl.row_pitch - 1,
|
||||||
.SurfaceBaseAddress = {
|
.SurfaceBaseAddress = {
|
||||||
.bo = image->bo,
|
.bo = image->bo,
|
||||||
.offset = image->depth_surface.offset,
|
.offset = image->offset + image->depth_surface.offset,
|
||||||
},
|
},
|
||||||
.Height = fb->height - 1,
|
.Height = fb->height - 1,
|
||||||
.Width = fb->width - 1,
|
.Width = fb->width - 1,
|
||||||
|
Reference in New Issue
Block a user