summaryrefslogtreecommitdiffstats
path: root/src/intel/blorp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-08-27 21:57:51 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-09-12 19:42:57 -0700
commit2fc9c7e3d9b2bcd65c9e192bc11d3c87835f85dc (patch)
tree1f064d488bbe244eb91000e0094ba704f5548b5d /src/intel/blorp
parent2dba5489ae82161ebbf1d6db3e63b27b45c17eae (diff)
downloadexternal_mesa3d-2fc9c7e3d9b2bcd65c9e192bc11d3c87835f85dc.zip
external_mesa3d-2fc9c7e3d9b2bcd65c9e192bc11d3c87835f85dc.tar.gz
external_mesa3d-2fc9c7e3d9b2bcd65c9e192bc11d3c87835f85dc.tar.bz2
intel/blorp: Take a destination swizzle in blorp_blit
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.h2
-rw-r--r--src/intel/blorp/blorp_blit.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h
index 173d4fa..d562b17 100644
--- a/src/intel/blorp/blorp.h
+++ b/src/intel/blorp/blorp.h
@@ -101,7 +101,7 @@ blorp_blit(struct blorp_batch *batch,
enum isl_format src_format, struct isl_swizzle src_swizzle,
const struct blorp_surf *dst_surf,
unsigned dst_level, unsigned dst_layer,
- enum isl_format dst_format,
+ enum isl_format dst_format, struct isl_swizzle dst_swizzle,
float src_x0, float src_y0,
float src_x1, float src_y1,
float dst_x0, float dst_y0,
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index 5bdf05c..c6fba66 100644
--- a/src/intel/blorp/blorp_blit.c
+++ b/src/intel/blorp/blorp_blit.c
@@ -1363,7 +1363,7 @@ blorp_blit(struct blorp_batch *batch,
enum isl_format src_format, struct isl_swizzle src_swizzle,
const struct blorp_surf *dst_surf,
unsigned dst_level, unsigned dst_layer,
- enum isl_format dst_format,
+ enum isl_format dst_format, struct isl_swizzle dst_swizzle,
float src_x0, float src_y0,
float src_x1, float src_y1,
float dst_x0, float dst_y0,
@@ -1618,6 +1618,7 @@ blorp_blit(struct blorp_batch *batch,
brw_blorp_get_blit_kernel(batch->blorp, &params, &wm_prog_key);
params.src.view.swizzle = src_swizzle;
+ params.dst.view.swizzle = dst_swizzle;
batch->blorp->exec(batch, &params);
}