st/mesa: only minify height if target != 1D array in st_finalize_texture
authorMarek Olšák <marek.olsak@amd.com>
Mon, 21 Mar 2016 11:18:40 +0000 (12:18 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 27 Mar 2016 22:44:45 +0000 (00:44 +0200)
commit21c479256a4f195bce89bc313ab9367deef20bb1
tree030639875ca5620e5bcc14a798a8d9302f2aad75
parent50d653c2bbe7e6a7c0893b13ad6e57b68f55f8e4
st/mesa: only minify height if target != 1D array in st_finalize_texture

The st_texture_object documentation says:
  "the number of 1D array layers will be in height0"

We can't minify that.

Spotted by luck. No app is known to hit this issue.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_cb_texture.c