diff options
author | Eric Anholt <eric@anholt.net> | 2012-10-31 16:57:51 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2012-11-19 15:07:22 -0800 |
commit | c1fabea1c5a40c60176201f55253bd463fd146f5 (patch) | |
tree | 092208214dc7f3ae905d39bd314394d93b34949b /src/mesa/drivers/dri/intel/intel_tex_copy.c | |
parent | 923c4b3f4a70737f7f36894dc0b4648f04fd8c19 (diff) |
i965: Add some checks for array textures in unsupported paths.
I noticed these in the next patch where these paths were using the Face
of a teximage but didn't have array handling.
Reviewed-by: Chad Versace <chad.versace@linux.intel.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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index f4366330f88..c744633c578 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -70,6 +70,11 @@ intel_copy_texsubimage(struct intel_context *intel, assert(region); } + if (intelImage->base.Base.TexObject->Target == GL_TEXTURE_1D_ARRAY || + intelImage->base.Base.TexObject->Target == GL_TEXTURE_2D_ARRAY) { + perf_debug("no support for array textures\n"); + } + copy_supported = intelImage->base.Base.TexFormat == intel_rb_format(irb); /* Converting ARGB8888 to XRGB8888 is trivial: ignore the alpha bits */ |