summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_bo.c
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-09-14 13:24:47 +0200
committerBoris Brezillon <[email protected]>2019-09-18 10:28:55 +0200
commit34efaafc93ca5c28c96396333eeba0f492ce6b94 (patch)
tree5af44ccddd4f9a6339c529b5546c32f571f59ca4 /src/gallium/drivers/panfrost/pan_bo.c
parent29d0e5c1776cf430f0fd7d262df55670a5ff8d05 (diff)
panfrost: s/PAN_ALLOCATE_/PAN_BO_/
Change the prefix for BO allocation flags to make it consistent with the rest of the BO API. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_bo.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_bo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/panfrost/pan_bo.c b/src/gallium/drivers/panfrost/pan_bo.c
index 9b0e8d943b4..7f14b3e3638 100644
--- a/src/gallium/drivers/panfrost/pan_bo.c
+++ b/src/gallium/drivers/panfrost/pan_bo.c
@@ -228,16 +228,16 @@ panfrost_bo_create(struct panfrost_screen *screen, size_t size,
size = MAX2(size, 4096);
/* GROWABLE BOs cannot be mmapped */
- if (flags & PAN_ALLOCATE_GROWABLE)
- assert(flags & PAN_ALLOCATE_INVISIBLE);
+ if (flags & PAN_BO_GROWABLE)
+ assert(flags & PAN_BO_INVISIBLE);
unsigned translated_flags = 0;
if (screen->kernel_version->version_major > 1 ||
screen->kernel_version->version_minor >= 1) {
- if (flags & PAN_ALLOCATE_GROWABLE)
+ if (flags & PAN_BO_GROWABLE)
translated_flags |= PANFROST_BO_HEAP;
- if (!(flags & PAN_ALLOCATE_EXECUTE))
+ if (!(flags & PAN_BO_EXECUTE))
translated_flags |= PANFROST_BO_NOEXEC;
}
@@ -276,9 +276,9 @@ panfrost_bo_create(struct panfrost_screen *screen, size_t size,
* never map since we don't care about their contents; they're purely
* for GPU-internal use. But we do trace them anyway. */
- if (!(flags & (PAN_ALLOCATE_INVISIBLE | PAN_ALLOCATE_DELAY_MMAP)))
+ if (!(flags & (PAN_BO_INVISIBLE | PAN_BO_DELAY_MMAP)))
panfrost_bo_mmap(screen, bo);
- else if (flags & PAN_ALLOCATE_INVISIBLE) {
+ else if (flags & PAN_BO_INVISIBLE) {
if (pan_debug & PAN_DBG_TRACE)
pandecode_inject_mmap(bo->gpu, NULL, bo->size, NULL);
}