llvmpipe: limit max texture size to 2Kx2K for now
authorBrian Paul <brianp@vmware.com>
Fri, 2 Apr 2010 15:17:47 +0000 (09:17 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 2 Apr 2010 15:20:05 +0000 (09:20 -0600)
commitbc50336b6ab40b6f4df7dbe19abe8b1d89938472
treee1852407eaa2a48274021d4e89b35c3636fc5318
parent82e289d355089952a217b14081bac8ffff04ab2e
llvmpipe: limit max texture size to 2Kx2K for now

MAXWIDTH/HEIGHT were 2048 but the max texture size was 4096.
This caused a crash if a 4Kx4K texture was created and rendered to.
See comment about max framebuffer size in lp_scene.h.

Also added assertions to catch this inconsistancy in the future.
src/gallium/drivers/llvmpipe/lp_scene.c
src/gallium/drivers/llvmpipe/lp_state_surface.c
src/gallium/drivers/llvmpipe/lp_texture.h