From: Rafael Antognolli Date: Wed, 13 Feb 2019 21:07:51 +0000 (-0800) Subject: iris: Store internal_format when getting resource from handle. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=455c959689ea709a8572cd34f13139887748fff8;p=mesa.git iris: Store internal_format when getting resource from handle. --- 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;