mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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:
parent
a50ff5dffc
commit
05cf948989
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue