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/gallium/drivers/nv50 | |
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/gallium/drivers/nv50')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_miptree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c index 461710e1130..03c34c17ee0 100644 --- a/src/gallium/drivers/nv50/nv50_miptree.c +++ b/src/gallium/drivers/nv50/nv50_miptree.c @@ -326,6 +326,9 @@ nv50_miptree_create(struct pipe_screen *pscreen, pipe_reference_init(&pt->reference, 1); pt->screen = pscreen; + if (pt->bind & PIPE_BIND_LINEAR) + pt->flags |= NOUVEAU_RESOURCE_FLAG_LINEAR; + bo_config.nv50.memtype = nv50_mt_choose_storage_type(mt, TRUE); if (!nv50_miptree_init_ms_mode(mt)) { |