projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5628683
)
st/mesa: fix blit-based partial TexSubImage for 1D arrays
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 7 Aug 2014 22:34:31 +0000
(
00:34
+0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Sat, 9 Aug 2014 21:41:15 +0000
(23:41 +0200)
This fixes piglit spec/EXT_texture_array/render-1darray.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_cb_texture.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_texture.c
b/src/mesa/state_tracker/st_cb_texture.c
index aa6b05f0b6018287c55f368aa9aceb21fa130d33..c4b2107ba6e5c70c72a62d78bb7efb51c8ebab74 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_texture.c
+++ b/
src/mesa/state_tracker/st_cb_texture.c
@@
-719,6
+719,8
@@
st_TexSubImage(struct gl_context *ctx, GLuint dims,
/* From now on, we need the gallium representation of dimensions. */
if (gl_target == GL_TEXTURE_1D_ARRAY) {
+ zoffset = yoffset;
+ yoffset = 0;
depth = height;
height = 1;
}