From 7f2fecd11463da9d90a83ad65544271b35cd0d83 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 27 Aug 2016 22:06:11 -0700 Subject: [PATCH] intel/blorp: Don't assume R8_UINT in convert_to_single_slice We're going to use it for more than just stencil textures Signed-off-by: Jason Ekstrand Reviewed-by: Topi Pohjolainen --- src/intel/blorp/blorp_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index c6fba669cee..c6285d4193d 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -1276,7 +1276,7 @@ surf_convert_to_single_slice(const struct isl_device *isl_dev, struct isl_surf_init_info init_info = { 0, }; init_info.dim = ISL_SURF_DIM_2D; - init_info.format = ISL_FORMAT_R8_UINT; + init_info.format = info->surf.format; init_info.width = minify(info->surf.logical_level0_px.width, info->view.base_level); init_info.height = -- 2.30.2