diff options
author | Kenneth Graunke <[email protected]> | 2016-04-26 01:44:51 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-04-26 21:32:35 -0700 |
commit | 1e44599a43f6e9e35c4e951d55897c4e5a750fb9 (patch) | |
tree | d2cd298644a199c7f8e8667e1f0721c0e8be26b9 /src/mesa | |
parent | 361a24e1408fdda1c7cf1d7698a9d2e010a9ccfc (diff) |
i965: Fix MapTextureImage for multi-slice/level stencil buffers.
We called intel_miptree_get_image_offset() to get the image offsets
for the current level/slice, but then proceeded to ignore the results
and clobber level/slice 0 every time.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94713
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 |
1 files changed, 2 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 4072bdf881b..3d8f48e93c1 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -2498,8 +2498,8 @@ intel_miptree_unmap_s8(struct brw_context *brw, for (uint32_t y = 0; y < map->h; y++) { for (uint32_t x = 0; x < map->w; x++) { ptrdiff_t offset = intel_offset_S8(mt->pitch, - x + map->x, - y + map->y, + image_x + x + map->x, + image_y + y + map->y, brw->has_swizzling); tiled_s8_map[offset] = untiled_s8_map[y * map->w + x]; } |