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>
This commit is contained in:
Marek Olšák
2016-05-01 15:29:52 +02:00
parent 77af6bcc26
commit 3d956b4bc0
+2 -1
View File
@@ -2137,7 +2137,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;
}