radeon: Fix crash when rendering to incomplete texture and other formats
authorNicolai Hähnle <nhaehnle@gmail.com>
Sun, 12 Jul 2009 09:18:43 +0000 (11:18 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Sun, 12 Jul 2009 10:50:36 +0000 (12:50 +0200)
commitb484c71036e0d0b30ac7685ba50a9008d09f5047
tree90cd13c1c106750ccf6e13bdb48b0980cca91d84
parenta10244453c24d62cd87f8c4d85cbe103b62db311
radeon: Fix crash when rendering to incomplete texture and other formats

It is possible to bind texture images of an incomplete mipmapped texture.
Software fallbacks in this case incorrectly tried to mmap the entire texture.

Additionally, add span functions for 1555 and 4444 formats.

This fixes crashes in piglit's fbo-readpixels test; unfortunately, the test
itself still fails - this needs to be investigated.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/radeon/radeon_span.c