summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 11:46:16 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 11:46:16 -0600
commit93ff702b4f1c6016e249c4d326e71cdc4932f57c (patch)
treebbb852def2ab6d10c84c6e5fa71f934648bae5f0 /src/gallium/auxiliary
parent520dbdea22442493771763a3a895f9e9039c2a5c (diff)
gallium: fix logic in pb_check_usage()
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer.h b/src/gallium/auxiliary/pipebuffer/pb_buffer.h
index 83ea0be74b..8505d333bd 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_buffer.h
+++ b/src/gallium/auxiliary/pipebuffer/pb_buffer.h
@@ -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;
}