diff options
author | Inki Dae <inki.dae@samsung.com> | 2012-12-27 05:54:23 -0500 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2013-01-04 01:54:34 -0500 |
commit | 1dcfe2382af35ebd685668d96b4fccd953e75ffc (patch) | |
tree | 93aa9ecc3351001e1c5999330b0dac87466d56d2 /drivers | |
parent | 13a32eb08de6fd87044a524b2c644ccfaa6808a3 (diff) |
drm/exynos: fix gem buffer allocation type checking
This patch fixes gem buffer allocation type checking.
EXYNOS_BO_CONTIG has 0 so the checking should be fixed
to 'if (!(flags & EXYNOS_BO_NONCONTIG))'
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_buf.c b/drivers/gpu/drm/exynos/exynos_drm_buf.c index b7937a616e46..57affae9568b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_buf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_buf.c | |||
@@ -38,7 +38,7 @@ static int lowlevel_buffer_allocate(struct drm_device *dev, | |||
38 | * region will be allocated else physically contiguous | 38 | * region will be allocated else physically contiguous |
39 | * as possible. | 39 | * as possible. |
40 | */ | 40 | */ |
41 | if (flags & EXYNOS_BO_CONTIG) | 41 | if (!(flags & EXYNOS_BO_NONCONTIG)) |
42 | dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, &buf->dma_attrs); | 42 | dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, &buf->dma_attrs); |
43 | 43 | ||
44 | /* | 44 | /* |