diff options
author | Jordan Justen <[email protected]> | 2016-11-15 17:55:41 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-11-17 14:15:44 -0800 |
commit | 0cee3fd5c73acf7e3841a7d790e3ec3031b0fe41 (patch) | |
tree | 2fcb68e8b5751659cf715777f1f817a4eda0a2c6 /src/mesa | |
parent | 9bfee7047b70cb0aa026ca9536465762f96cb2b1 (diff) |
i965/gen7: Minify blit size for stencil tree copy
Found by the piglit 'fbo-depth-array stencil-clear' test when
implementing blorp blit splitting for gen7.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Ben Widawsky <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 |
1 files 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 28001b643bd..e7f71c09730 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 */); } |