[Mesa-dev] [PATCH 2/2] i965: Set Y-tiling for qualified rotated scanout buffers
Vivek Kasireddy
vivek.kasireddy at intel.com
Thu Oct 22 18:44:53 PDT 2015
On newer hardware platforms that support rotation, if the gbm
interface requests to create a rotated scanout buffer via the
flag __DRI_IMAGE_USE_SCANOUT_ROTATED_90_270, set Y-tiling
while creating the buffer.
Cc: Kristian Hogsberg <krh at bitplanet.net>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy at intel.com>
---
src/mesa/drivers/dri/i965/intel_screen.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 590c45d..1079676 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -525,6 +525,12 @@ intel_create_image(__DRIscreen *screen,
if (use & __DRI_IMAGE_USE_LINEAR)
tiling = I915_TILING_NONE;
+ else if (use & __DRI_IMAGE_USE_SCANOUT_ROTATED_90_270) {
+ if (intelScreen->devinfo->gen >= 9)
+ tiling = I915_TILING_Y;
+ else
+ return NULL;
+ }
image = intel_allocate_image(format, loaderPrivate);
if (image == NULL)
--
2.4.3
More information about the mesa-dev
mailing list