From e8f9195e5fb34a45783d6491d2e0305a0b137439 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Thu, 15 Aug 2013 12:47:58 +0200 Subject: gallium, intel: Implements new __DRI_IMAGE_USE_LINEAR and PIPE_BIND_LINEAR flags to enforce no tiling. Signed-off-by: Axel Davy --- src/gallium/state_trackers/dri/drm/dri2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/state_trackers/dri') diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 1dcc1f7fd06..e4477d6de77 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -628,6 +628,8 @@ dri2_create_image(__DRIscreen *_screen, tex_usage |= PIPE_BIND_SCANOUT; if (use & __DRI_IMAGE_USE_SHARE) tex_usage |= PIPE_BIND_SHARED; + if (use & __DRI_IMAGE_USE_LINEAR) + tex_usage |= PIPE_BIND_LINEAR; if (use & __DRI_IMAGE_USE_CURSOR) { if (width != 64 || height != 64) return NULL; -- cgit v1.2.3