intel: Cache tiling/swizzle state in user mode. Reset tiling on reuse.
authorKeith Packard <keithp@keithp.com>
Mon, 15 Dec 2008 23:08:12 +0000 (15:08 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 17 Dec 2008 18:29:15 +0000 (10:29 -0800)
commit18f091d136cd44ab397817f8a3e89c21e9561a31
tree1d7815713b1209d1162e6c0901773781357bacc9
parent40334c64107a2938c41af6e34bda9f2094d1c6ec
intel: Cache tiling/swizzle state in user mode. Reset tiling on reuse.

Remember tiling mode values provided by appplications, and
record tiling mode when creating a buffer from another application. This
eliminates any need to ask the kernel for tiling values and also makes
reused buffers get the right tiling.

Signed-off-by: Keith Packard <keithp@keithp.com>
libdrm/intel/intel_bufmgr_gem.c