st: Add cubeMapFace parameter to st_finalize_texture.
authorMichal Srb <msrb@suse.com>
Tue, 28 Mar 2017 20:39:28 +0000 (23:39 +0300)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 1 Apr 2017 07:03:23 +0000 (09:03 +0200)
commit52f9ccefcb75a9d42307890d7714b1cd92e864cb
treec87a5480a345ccf6af0f654a75ed18ca4cf359ab
parentd6fccb4c096dc06e5a4576afaf4e0d47f371999e
st: Add cubeMapFace parameter to st_finalize_texture.

st_finalize_texture always accesses image at face 0, but it may not be
set if we are working with cubemap that had other face set.

This fixes crash in piglit
same-attachment-glFramebufferTexture2D-GL_DEPTH_STENCIL_ATTACHMENT.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/state_trackers/dri/dri2.c
src/mesa/state_tracker/st_atom_image.c
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_cb_texture.h
src/mesa/state_tracker/st_gen_mipmap.c