summaryrefslogtreecommitdiffstats
path: root/src/intel/blorp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-08-27 22:06:11 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-09-12 19:42:57 -0700
commit7f2fecd11463da9d90a83ad65544271b35cd0d83 (patch)
tree7f7290ad3bfb078651f1f2ee147f098bef7b4cf5 /src/intel/blorp
parent2fc9c7e3d9b2bcd65c9e192bc11d3c87835f85dc (diff)
downloadexternal_mesa3d-7f2fecd11463da9d90a83ad65544271b35cd0d83.zip
external_mesa3d-7f2fecd11463da9d90a83ad65544271b35cd0d83.tar.gz
external_mesa3d-7f2fecd11463da9d90a83ad65544271b35cd0d83.tar.bz2
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 <jason@jlekstrand.net> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/intel/blorp')
-rw-r--r--src/intel/blorp/blorp_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index c6fba66..c6285d4 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 =