[Mesa-dev] [PATCH 04/33] intel/blorp: Don't assume R8_UINT in convert_to_single_slice
Jason Ekstrand
jason at jlekstrand.net
Wed Aug 31 21:22:23 UTC 2016
We're going to use it for more than just stencil textures
---
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 e59b81e..181dfeea 100644
--- a/src/intel/blorp/blorp_blit.c
+++ b/src/intel/blorp/blorp_blit.c
@@ -1279,7 +1279,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.5.0.400.gff86faf
More information about the mesa-dev
mailing list