gallium: fix logic in pb_check_usage()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Jul 2008 17:46:16 +0000 (11:46 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Jul 2008 17:46:16 +0000 (11:46 -0600)
src/gallium/auxiliary/pipebuffer/pb_buffer.h

index 83ea0be74b83f974acb05e0588337460a827bac1..8505d333bda3414b5f4136b0d7c5cb1ca6b2ee8c 100644 (file)
@@ -221,7 +221,7 @@ pb_check_alignment(size_t requested, size_t provided)
 static INLINE boolean
 pb_check_usage(unsigned requested, unsigned provided)
 {
-   return (requested & provided) == provided ? TRUE : FALSE;
+   return (requested & provided) == requested ? TRUE : FALSE;
 }