mesa: Extract computation of compressed pixel store params
authorChris Forbes <chrisf@ijw.co.nz>
Mon, 2 Jun 2014 03:47:47 +0000 (15:47 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Mon, 9 Jun 2014 19:42:44 +0000 (07:42 +1200)
commit8d29569c254c4697fdf6bffd52510ba114461ad6
tree547e16f19aae96e38397dd1bbf70099f0b475961
parentd6e60cb504b5c05f4d7f5a71f5a81c25e53d3785
mesa: Extract computation of compressed pixel store params

This logic is reusable across CompressedTex*Image* and
GetCompressedTexImage; the strides calculated will also be needed
in the PBO validation functions to ensure that the referenced range of
bytes is valid.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/texstore.c
src/mesa/main/texstore.h