From 90576ac96303941ffefe50e56aad15ba09459aa8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 15 Apr 2016 16:53:31 -0700 Subject: isl: Take a devinfo in lower_storage_image_format instead of an isl_device We want to call this function from the shader compiler and having a full isl_device available at that point isn't practical. Reviewed-by: Chad Versace --- src/intel/isl/isl_surface_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/intel/isl/isl_surface_state.c') diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index cac59fab78e..dd885313aed 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -308,7 +308,8 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state, } if (info->view->usage & ISL_SURF_USAGE_STORAGE_BIT) { - s.SurfaceFormat = isl_lower_storage_image_format(dev, info->view->format); + s.SurfaceFormat = + isl_lower_storage_image_format(dev->info, info->view->format); } else { s.SurfaceFormat = info->view->format; } -- cgit v1.2.3