[Mesa-dev] [PATCH] i965/gen7: Minify blit size for stencil tree copy
Jordan Justen
jordan.l.justen at intel.com
Thu Nov 17 02:42:02 UTC 2016
Found by the piglit 'fbo-depth-array stencil-clear' test when
implementing blorp blit splitting for gen7.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Cc: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Ben Widawsky <ben at bwidawsk.net>
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 28001b6..e7f71c0 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2373,9 +2373,11 @@ intel_update_r8stencil(struct brw_context *brw,
dst, level, layers_per_blit * layer,
MESA_FORMAT_R_UNORM8,
0, 0,
- src->logical_width0, src->logical_height0,
+ minify(src->logical_width0, level),
+ minify(src->logical_height0, level),
0, 0,
- dst->logical_width0, dst->logical_height0,
+ minify(dst->logical_width0, level),
+ minify(dst->logical_height0, level),
GL_NEAREST, false, false /*mirror x, y*/,
false, false /* decode/encode srgb */);
}
--
2.10.2
More information about the mesa-dev
mailing list