[Mesa-dev] [PATCH 06/11] anv/cmd_buffer: Set depth/stencil extent based on the image
Jason Ekstrand
jason at jlekstrand.net
Fri Jun 17 20:53:23 UTC 2016
It used to be based on the framebuffer which isn't quite right.
Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Cc: Chad Versace <chad.versace at intel.com>
Cc: "12.0" <mesa-stable at lists.freedesktop.org>
---
src/intel/vulkan/genX_cmd_buffer.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index 10ed73a..d0b28a9 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -1033,11 +1033,11 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer)
db.DepthBufferObjectControlState = GENX(MOCS),
db.SurfacePitch = image->depth_surface.isl.row_pitch - 1;
- db.Height = fb->height - 1;
- db.Width = fb->width - 1;
- db.LOD = 0;
- db.Depth = 1 - 1;
- db.MinimumArrayElement = 0;
+ db.Height = image->extent.height - 1;
+ db.Width = image->extent.width - 1;
+ db.LOD = iview->base_mip;
+ db.Depth = image->array_size - 1; /* FIXME: 3-D */
+ db.MinimumArrayElement = iview->base_layer;
#if GEN_GEN >= 8
db.SurfaceQPitch =
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list