intel: Move the max_gtt_map_object_size estimation to intel_context.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Apr 2013 18:11:19 +0000 (11:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Apr 2013 23:54:31 +0000 (16:54 -0700)
commitba38ac062c5b8c80e4d33ee680b86cabbfa19095
tree3c3ccd593700b812a3941529ad595093ed04c0f2
parentfb69dbb0d164fc617941943472cfa390510ec63b
intel: Move the max_gtt_map_object_size estimation to intel_context.

We need know this in order to decide what tiling mode to use.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_mipmap_tree.c