OSDN Git Service

Revert "i965: Always use Y-tiled buffers on SKL+"
authorDaniel Stone <daniels@collabora.com>
Mon, 2 May 2016 14:34:40 +0000 (15:34 +0100)
committerDaniel Stone <daniels@collabora.com>
Mon, 9 May 2016 09:35:55 +0000 (10:35 +0100)
commite54b2e902aba22f697c0ba8622cd0a905f1edfff
tree7a49e670de554dc46c23fc754fdcf48201f68f18
parent920d78a32c25eae051599896fe186aa8507cd007
Revert "i965: Always use Y-tiled buffers on SKL+"

This commit broke Weston, Mutter, and xf86-video-modesetting, on KMS.

In order to use Y-tiled buffers, the kernel requires the tiling mode to
be explicitly named through the I915_FORMAT_MOD_Y_TILED AddFB2 modifier;
it disallows any attempt to infer the buffer's tiling mode.

As the GBM API does not have a way to extract modifiers for a buffer,
this commit broke all users of GBM on SKL+. Revert it for now, until we
get a way to extract modifier information from GBM, and also let GBM
users inform the implementation that it intends to use the modifiers.

This reverts commit 6a0d036483caf87d43ebe2edd1905873446c9589.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
Tested-by: Hans de Goede <hdegoede@redhat.com>
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h
src/mesa/drivers/dri/i965/intel_screen.c