From: Jason Ekstrand Date: Sun, 28 Aug 2016 05:06:11 +0000 (-0700) Subject: intel/blorp: Don't assume R8_UINT in convert_to_single_slice X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f2fecd11463da9d90a83ad65544271b35cd0d83;p=mesa.git 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 --- 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 =