On 09/18/2013 12:59 PM, Eric Anholt wrote:
If the caller shows up with GL_BASE_LEVEL != 0, it doesn't mean that the texture will over the course of its lifetime have that nonzero baselevel, it means that the caller is filling the texture from the bottom up for some reason (one could imagine demand-loading detailed texture layers at runtime, for example). If we allocate from just the current baselevel, it means when they come along with the next level up, we'll have to allocate a new miptree and copy all of our bits out of the first miptree. --- src/mesa/drivers/dri/i965/intel_tex_image.c | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-)
I like patches 3 and 4. They make the teximage and miptree code cleaner and easier to reason about. They are Reviewed-by: Chad Versace <chad.vers...@linux.intel.com> _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev