OSDN Git Service

i965: Make intel_miptree_prepare_texture() take level/layer arguments.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Oct 2017 03:59:22 +0000 (20:59 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Oct 2017 18:10:00 +0000 (11:10 -0700)
commit0954ce1000cb646cda8bad3918cc9bbdcbdbf88b
tree4353db06001ef039e3cdb6b27f1e3297ed7a487a
parent33bdbc1db47cffc9c8b79d7daee51fcdcb52837e
i965: Make intel_miptree_prepare_texture() take level/layer arguments.

This effectively exports intel_miptree_prepare_texture_slices() as
intel_miptree_prepare_texture().  The hope is to avoid resolves for
when using texture views that access a subset of the levels/layers.

For now, we pass the same arguments to separate the mechanical change
from the one that actually modifies our behavior.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by; Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h