diff options
author | Axel Davy <[email protected]> | 2013-08-15 12:47:58 +0200 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2013-09-06 15:02:34 -0700 |
commit | e8f9195e5fb34a45783d6491d2e0305a0b137439 (patch) | |
tree | 604a81c82fc66e609d137ca28856e5d56fb9ffdd /src/mesa | |
parent | 0a0f543082ce3bbee3d09425a912a9181128a257 (diff) |
gallium, intel: Implements new __DRI_IMAGE_USE_LINEAR and PIPE_BIND_LINEAR flags to enforce no tiling.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_screen.c | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c index f8b95f44a9d..5a4734ffa47 100644 --- a/src/mesa/drivers/dri/i915/intel_screen.c +++ b/src/mesa/drivers/dri/i915/intel_screen.c @@ -482,6 +482,9 @@ intel_create_image(__DRIscreen *screen, tiling = I915_TILING_NONE; } + if (use & __DRI_IMAGE_USE_LINEAR) + tiling = I915_TILING_NONE; + image = intel_allocate_image(format, loaderPrivate); if (image == NULL) return NULL; diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 0580d6f4e78..eb6515e763d 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -530,6 +530,9 @@ intel_create_image(__DRIscreen *screen, tiling = I915_TILING_NONE; } + if (use & __DRI_IMAGE_USE_LINEAR) + tiling = I915_TILING_NONE; + image = intel_allocate_image(format, loaderPrivate); if (image == NULL) return NULL; |