aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-08-28 14:07:02 +0200
committermarha <marha@users.sourceforge.net>2012-09-04 14:23:04 +0200
commit9dec848b23cf905ded387820f2893425cc00d545 (patch)
tree4933836d801d8569a31cd5689e5f8eceeb4f78ff /mesalib/src/mesa
parent9891a8cd45663a5431bbae63ccc41c6570a60d5b (diff)
downloadvcxsrv-9dec848b23cf905ded387820f2893425cc00d545.tar.gz
vcxsrv-9dec848b23cf905ded387820f2893425cc00d545.tar.bz2
vcxsrv-9dec848b23cf905ded387820f2893425cc00d545.zip
fontconfig mesa xserver git update 28 Aug 2012
Diffstat (limited to 'mesalib/src/mesa')
-rw-r--r--mesalib/src/mesa/state_tracker/st_cb_texture.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_cb_texture.c b/mesalib/src/mesa/state_tracker/st_cb_texture.c
index 3de96adf3..ed3bbc725 100644
--- a/mesalib/src/mesa/state_tracker/st_cb_texture.c
+++ b/mesalib/src/mesa/state_tracker/st_cb_texture.c
@@ -989,6 +989,16 @@ st_CopyTexSubImage(struct gl_context *ctx, GLuint dims,
goto fallback;
}
+ if (texImage->TexObject->Target == GL_TEXTURE_1D_ARRAY) {
+ /* 1D arrays might be thought of as 2D images but the actual layout
+ * might not be that way. At some points, we convert OpenGL's 1D
+ * array 'height' into gallium 'layers' and that prevents the blit
+ * utility code from doing the right thing. Simpy use the memcpy-based
+ * fallback.
+ */
+ goto fallback;
+ }
+
if (matching_base_formats &&
src_format == dest_format &&
!do_flip) {