mesa/st: Fix pipe_framebuffer_state::height for PIPE_TEXTURE_1D_ARRAY.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Apr 2014 14:56:46 +0000 (15:56 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 23 Apr 2014 18:12:23 +0000 (19:12 +0100)
commitfd92346c53ed32709c7b56ce58fb9c9bf43ce9a8
treec7932eb3d700744bcfbcf2aafb775d03400a51cf
parent7a8667f2b34cfd1a3b01f1dbd519d03c58cec526
mesa/st: Fix pipe_framebuffer_state::height for PIPE_TEXTURE_1D_ARRAY.

This prevents buffer overflow w/ llvmpipe when running piglit

  bin/gl-3.2-layered-rendering-clear-color-all-types 1d_array single_level -fbo -auto

v2: Compute the framebuffer size as the minimum size, as pointed out by
Brian;  compacted code;  ran piglit quick test list (with no
regressions.)

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_atom_framebuffer.c