i915g: add winsys function to create tiled buffers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 21 Nov 2010 19:34:44 +0000 (20:34 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Thu, 2 Dec 2010 00:34:12 +0000 (01:34 +0100)
commit4a666488c4e3067eed984e272149411cc2198c77
treef1c82966a868f032dce2db59ed4b3b891a83d771
parentc62f5c7e7bc3ed84677805b3800fbcfa93c419ea
i915g: add winsys function to create tiled buffers

Different kernels have different restrictions for tiled buffers.
Hence use the libdrm abstraction to calculate the necessary
stride and height alignment requirements.

Not yet used.

v2: Incorporate review comments from Jakob Bornecrantz

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
src/gallium/drivers/i915/i915_winsys.h
src/gallium/winsys/i915/drm/i915_drm_buffer.c
src/gallium/winsys/i915/sw/i915_sw_buffer.c
src/gallium/winsys/i915/sw/i915_sw_winsys.h