mesa: add MAX_PIXEL_BYTES define
authorBrian Paul <brianp@vmware.com>
Tue, 6 Dec 2011 03:40:48 +0000 (20:40 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 8 Dec 2011 15:56:31 +0000 (08:56 -0700)
commitdb247dd7b37e22bf9545d8cb8360e06d68e50912
treee185b37d999a8c2a8b9fe59f962f3525d5b428e5
parenteb3e1d8888ea37c7500ab964e8523a52a401bade
mesa: add MAX_PIXEL_BYTES define

In a few places we need to allocate space for some number of generic
pixels.  Use this new define instead of a magic number like 16 or
4 * sizeof(GLuint).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/formats.c
src/mesa/main/formats.h