diff options
author | Eric Anholt <eric@anholt.net> | 2013-06-04 10:35:26 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-06-17 15:43:23 -0700 |
commit | eb2021507556633cd6ba64cda26653e3c43e80df (patch) | |
tree | d22d78a8e4f907b145ec5cdd44e3d45b1009a38a /src/mesa/drivers/dri/intel/intel_tex_copy.c | |
parent | 746b57ef0e5625ec4081fdf856e99b29f71e4cf3 (diff) | |
download | external_mesa3d-eb2021507556633cd6ba64cda26653e3c43e80df.zip external_mesa3d-eb2021507556633cd6ba64cda26653e3c43e80df.tar.gz external_mesa3d-eb2021507556633cd6ba64cda26653e3c43e80df.tar.bz2 |
intel: Allow blorp CopyTexSubImage to nonzero destination slices.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex_copy.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_copy.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index 9413b14..d018cec 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -102,14 +102,12 @@ intelCopyTexSubImage(struct gl_context *ctx, GLuint dims, { struct intel_context *intel = intel_context(ctx); - if (slice == 0) { #ifndef I915 - /* Try BLORP first. It can handle almost everything. */ - if (brw_blorp_copytexsubimage(intel, rb, texImage, x, y, - xoffset, yoffset, width, height)) - return; + /* Try BLORP first. It can handle almost everything. */ + if (brw_blorp_copytexsubimage(intel, rb, texImage, slice, x, y, + xoffset, yoffset, width, height)) + return; #endif - } /* Next, try the BLT engine. */ if (intel_copy_texsubimage(intel, |