[Mesa-dev] [PATCH] mesa/st: unmap transfer only if not null

Marek Olšák maraeo at gmail.com
Mon Apr 14 09:35:19 PDT 2014


Hi, the tests have already been fixed in the master branch. You seem
to use Mesa code that is quite old. This patch won't apply.

Marek

On Mon, Apr 14, 2014 at 6:17 PM, Sebastian Wick
<sebastian at sebastianwick.net> wrote:
> Fixes crash for r600g in piglit tests
> fbo-generatemipmap-3d RGB9_E5
> fbo-generatemipmap-array RGB9_E5
>
> Signed-off-by: Sebastian Wick <sebastian at sebastianwick.net>
> ---
>  src/mesa/state_tracker/st_texture.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c
> index 8d559df..0e53823 100644
> --- a/src/mesa/state_tracker/st_texture.c
> +++ b/src/mesa/state_tracker/st_texture.c
> @@ -271,7 +271,8 @@ st_texture_image_unmap(struct st_context *st,
>
>     DBG("%s\n", __FUNCTION__);
>
> -   pipe_transfer_unmap(pipe, stImage->transfer);
> +   if (stImage->transfer)
> +      pipe_transfer_unmap(pipe, stImage->transfer);
>     stImage->transfer = NULL;
>  }
>
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list