summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/pipebuffer/pb_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_cache.c')
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_cache.c b/src/gallium/auxiliary/pipebuffer/pb_cache.c
index 515761997d0..a92cd2d5e25 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_cache.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_cache.c
@@ -133,7 +133,7 @@ pb_cache_is_buffer_compat(struct pb_cache_entry *entry,
if (usage & mgr->bypass_usage)
return 0;
- if (!pb_check_alignment(alignment, 1 << buf->alignment_log2))
+ if (!pb_check_alignment(alignment, 1ull << buf->alignment_log2))
return 0;
return mgr->can_reclaim(mgr->winsys, buf) ? 1 : -1;