Browse Source

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 <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
tags/12.0-branchpoint
Kenneth Graunke 10 years ago
parent
commit
1e44599a43
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/mesa/drivers/dri/i965/intel_mipmap_tree.c

+ 2
- 2
src/mesa/drivers/dri/i965/intel_mipmap_tree.c View File

@@ -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];
}

Loading…
Cancel
Save