st/mesa: fix blit-based GetTexImage for non-finalized textures

This fixes getteximage-depth piglit failures on radeonsi.

Cc: 11.1 11.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
(cherry picked from commit 3d956b4bc0)
This commit is contained in:
Marek Olšák 2016-05-01 15:29:52 +02:00 committed by Emil Velikov
parent a50ff5dffc
commit 05cf948989

View file

@ -2136,7 +2136,8 @@ st_GetTexSubImage(struct gl_context * ctx,
goto fallback;
}
if (!stImage->pt || !src) {
/* Handle non-finalized textures. */
if (!stImage->pt || stImage->pt != stObj->pt || !src) {
goto fallback;
}