intel/blorp: Don't assume R8_UINT in convert_to_single_slice
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 28 Aug 2016 05:06:11 +0000 (22:06 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Sep 2016 02:42:57 +0000 (19:42 -0700)
We're going to use it for more than just stencil textures

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp_blit.c

index c6fba669ceef30f7f27b71a4fb9464b95c941346..c6285d4193d6a874f4a8e60a37f18006bacc71cd 100644 (file)
@@ -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 =