rgtc: don't try to access off the end of the block.
authorDave Airlie <airlied@redhat.com>
Wed, 2 Mar 2011 03:14:34 +0000 (13:14 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Mar 2011 03:14:34 +0000 (13:14 +1000)
commit521394a204bd8073846acc7f9861081d29fa24c9
tree97fc09bd99bb8ab104e9ccd0b1ef460ca6476a61
parent5f714c2aaf8d25e5d5ba2e4c29cb3046f7639d24
rgtc: don't try to access off the end of the block.

if the values are all in the last dword, the high bits can be 0,

This fixes a valgrind warning I saw when playing with mipmaps.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/texcompress_rgtc.c