diff options
author | Marek Olšák <[email protected]> | 2016-05-01 15:29:52 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-05-02 22:49:25 +0200 |
commit | 3d956b4bc0b346a6dff23bfe56c6b5ae1ec1ddaa (patch) | |
tree | 64b640e291cdd09f08e5d6dfb39b4a515261efac | |
parent | 77af6bcc26a7be938e05b784da2abf8740466618 (diff) |
st/mesa: fix blit-based GetTexImage for non-finalized textures
This fixes getteximage-depth piglit failures on radeonsi.
Cc: 11.1 11.2 <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index aa073b0c781..f1812665065 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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; } |