OSDN Git Service

intel: Extend the force_y_tiling flag to allow forcing no tiling.
authorEric Anholt <eric@anholt.net>
Thu, 23 May 2013 23:08:22 +0000 (16:08 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 May 2013 20:06:43 +0000 (13:06 -0700)
commitda2880bea05bfc87109477ab026a7f5401fc8f0c
tree1ae708bfa128c392a9cea1173beaaa0e4d65a8e8
parent045612c90e53cd3c4e46c203b982f376d21ab13d
intel: Extend the force_y_tiling flag to allow forcing no tiling.

For a blit-uploaded temporary, it's faster on current hardware to memcpy
the data into a linear CPU mapping than to go through the GTT.

v2: Turn the not-fully-supported mask into 3 supported enum values.

Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Reviewed-by: Paul Berry <stereotype441@gmail.com> (v2)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (v2)
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h
src/mesa/drivers/dri/intel/intel_tex_image.c
src/mesa/drivers/dri/intel/intel_tex_validate.c