[Mesa-dev] [PATCH] st/mesa: fix blit-based GetTexImage for non-finalized textures

Nicolai Hähnle nhaehnle at gmail.com
Mon May 2 16:17:39 UTC 2016


Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 01.05.2016 08:35, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> This fixes getteximage-depth piglit failures on radeonsi.
>
> Cc: 11.1 11.2 <mesa-stable at lists.freedesktop.org>
> ---
>   src/mesa/state_tracker/st_cb_texture.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
> index aa073b0..f181266 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;
>      }
>
>


More information about the mesa-dev mailing list