From: Ilia Mirkin Date: Fri, 22 Dec 2017 05:27:50 +0000 (-0500) Subject: freedreno: set missing internal_format when importing texture X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dbdb070705ea063430ed4ff1fbdbc87d86165ea;p=mesa.git freedreno: set missing internal_format when importing texture Fixes running piglits without -fbo. Probably lots of other stuff too. Signed-off-by: Ilia Mirkin Reviewed-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index cb13f671c48..daa162c166f 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -832,6 +832,7 @@ fd_resource_from_handle(struct pipe_screen *pscreen, if (!rsc->bo) goto fail; + rsc->internal_format = tmpl->format; rsc->cpp = util_format_get_blocksize(tmpl->format); slice->pitch = handle->stride / rsc->cpp; slice->offset = handle->offset;