mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
pipebuffer: Fix alignment assertion.
This commit is contained in:
parent
665d6d6c1e
commit
815de0a5df
1 changed files with 2 additions and 2 deletions
|
|
@ -154,8 +154,8 @@ mm_bufmgr_create_buffer(struct pb_manager *mgr,
|
|||
struct mm_buffer *mm_buf;
|
||||
|
||||
/* We don't handle alignments larger then the one initially setup */
|
||||
assert(desc->alignment % (1 << mm->align2) == 0);
|
||||
if(desc->alignment % (1 << mm->align2))
|
||||
assert(pb_check_alignment(desc->alignment, 1 << mm->align2));
|
||||
if(!pb_check_alignment(desc->alignment, 1 << mm->align2))
|
||||
return NULL;
|
||||
|
||||
pipe_mutex_lock(mm->mutex);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue