st/mesa: use the texture view's format for render-to-texture
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 18 Mar 2016 22:16:39 +0000 (17:16 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 21 Mar 2016 16:28:38 +0000 (11:28 -0500)
commita8b315b8271e867db30650dedb52e53d8dd9667c
treebc18cf386954836cee2f4e9af062cb3b9604a271
parentdcf8a4d2817c74f44c5a0d16012d656705202ec3
st/mesa: use the texture view's format for render-to-texture

Aside from the bug below, it fixes a simplistic test I've written locally,
and I see no regression in Piglit for radeonsi.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94595
Cc: "11.0 11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_fbo.c