st/mesa: fix compressed mipmap generation for small image sizes
authorBrian Paul <brianp@vmware.com>
Thu, 6 May 2010 20:24:45 +0000 (14:24 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 6 May 2010 20:26:58 +0000 (14:26 -0600)
commitc37d8259bb26a97689d66b49456a7a13fac26a63
tree0a24b5337daed8147909f259ef7a428e342cdad2
parent4b59d2ba22fe73a912e4a8764ff6d4d440efc7d3
st/mesa: fix compressed mipmap generation for small image sizes

When the mipmap level is smaller than the compression block width, height
we need to fill in / replicate pixels so that we don't get garbage values.

Fixes piglit gen-compressed-teximage test.
src/mesa/state_tracker/st_gen_mipmap.c