OSDN Git Service

i965: Drop mt->levels[].width/height.
authorEric Anholt <eric@anholt.net>
Fri, 14 Feb 2014 21:00:40 +0000 (13:00 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 18 Feb 2014 18:01:45 +0000 (10:01 -0800)
commitf128bcc7c293013f4b44e4b661638333de0077c2
tree5491b8d902b8a06bf64f2056ee135b4909206849
parent4e0924c5de5f3964e4ca81f923d877dbb59fad0a
i965: Drop mt->levels[].width/height.

It often confused people because it was unclear on whether it was the
physical or logical, and people needed the other one as well.  We can
recompute it trivially using the minify() macro, clarifying which value is
being used and making getting the other value obvious.

v2: Fix a pasteo in intel_blit.c's dst flip.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/brw_clear.c
src/mesa/drivers/dri/i965/brw_tex_layout.c
src/mesa/drivers/dri/i965/intel_blit.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h
src/mesa/drivers/dri/i965/intel_screen.c