i965: Don't forget to subtract mt->first_level in minify calls.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 23 Feb 2014 07:47:30 +0000 (23:47 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Feb 2014 10:29:44 +0000 (02:29 -0800)
commitb18871c863fabec3ed383881d2cdd0298b157b06
tree98d8ad841edd45dd69004941eedf9b4493502ad4
parentac0a8b9540b29eb6faa55e4c77ba8fa99478884a
i965: Don't forget to subtract mt->first_level in minify calls.

This fixes fbo-clear-formats GL_ARB_depth_texture on Ironlake, which
regressed since commit f128bcc7c293013f4b44e4b661638333de0077c2
("i965: Drop mt->levels[].width/height.")  intel_miptree_copy_slice was
calling minify(.., 7) on a 2x2 texture with mt->first_level == 7.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75292
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/brw_clear.c
src/mesa/drivers/dri/i965/intel_blit.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_screen.c