[Mesa-dev] [PATCH] gallium/u_transfer_helper: do not call resource_create(..) directly

Kenneth Graunke kenneth at whitecape.org
Fri Mar 8 08:21:42 UTC 2019


On Friday, March 1, 2019 7:55:18 AM PST Christian Gmeiner wrote:
> Use u_transfer_helper_resource_create(..) instead which uses the
> resource_create(..) function specified in u_transfer_vtbl.
> 
> Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
> ---
>  src/gallium/auxiliary/util/u_transfer_helper.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/auxiliary/util/u_transfer_helper.c b/src/gallium/auxiliary/util/u_transfer_helper.c
> index 14c4d56392d..a5c3c026e71 100644
> --- a/src/gallium/auxiliary/util/u_transfer_helper.c
> +++ b/src/gallium/auxiliary/util/u_transfer_helper.c
> @@ -182,7 +182,7 @@ transfer_map_msaa(struct pipe_context *pctx,
>           .depth0 = 1,
>           .array_size = 1,
>     };
> -   trans->ss = pscreen->resource_create(pscreen, &tmpl);
> +   trans->ss = u_transfer_helper_resource_create(pscreen, &tmpl);
>     if (!trans->ss) {
>        free(trans);
>        return NULL;
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190308/e2d74626/attachment.sig>


More information about the mesa-dev mailing list