From 455c959689ea709a8572cd34f13139887748fff8 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Wed, 13 Feb 2019 13:07:51 -0800 Subject: [PATCH] iris: Store internal_format when getting resource from handle. --- src/gallium/drivers/iris/iris_resource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index ca8832c5b34..7302f2ec604 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -469,6 +469,7 @@ iris_resource_from_handle(struct pipe_screen *pscreen, const struct iris_format_info fmt = iris_format_for_usage(devinfo, templ->format, isl_usage); + res->internal_format = templ->format; if (templ->target == PIPE_BUFFER) { res->surf.tiling = ISL_TILING_LINEAR; -- 2.30.2