pipebuffer: s/PB_ALL_USAGE_FLAGS/PB_USAGE_ALL/
authorBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 15:07:23 +0000 (08:07 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 15:07:24 +0000 (08:07 -0700)
To fix build failure.  I guess my meson configuration has assertions
disabled for some reason.

Trivial fix.

src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c

index 7101fdc269b18c47c2c7082f9aebd98df87dba65..3f501c298ce2813b920d813120e655daf0c1f6e2 100644 (file)
@@ -303,7 +303,7 @@ pb_debug_buffer_validate(struct pb_buffer *_buf,
 {
    struct pb_debug_buffer *buf = pb_debug_buffer(_buf);
    
-   assert((flags & ~PB_ALL_USAGE_FLAGS) == 0);
+   assert((flags & ~PB_USAGE_ALL) == 0);
 
    mtx_lock(&buf->mutex);
    if(buf->map_count) {