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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user