diff options
author | Marek Olšák <[email protected]> | 2012-12-20 15:15:15 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-01-04 14:06:28 +0100 |
commit | ed86809ac9fe47c07be13ff0b998137f5f687635 (patch) | |
tree | c933882ac3943f984b54cc50dfda1a1ca0beff7e /src/mesa/state_tracker/st_texture.h | |
parent | 85cb4f299d8a0a0ebc8fe14d0ccd327375eda99e (diff) |
st/mesa: fix CopyTexSubImage fallback for 1D array textures
- We should use a 3D transfer of size Width x 1 x NumLayers.
- We should use layer_stride instead of stride.
(even though they are likely to be equal with 1D array textures)
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r-- | src/mesa/state_tracker/st_texture.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h index 62e975bb457..8a701009a51 100644 --- a/src/mesa/state_tracker/st_texture.h +++ b/src/mesa/state_tracker/st_texture.h @@ -176,12 +176,10 @@ st_texture_match_image(const struct pipe_resource *pt, * well. */ extern GLubyte * -st_texture_image_map(struct st_context *st, - struct st_texture_image *stImage, - GLuint zoffset, +st_texture_image_map(struct st_context *st, struct st_texture_image *stImage, enum pipe_transfer_usage usage, - unsigned x, unsigned y, - unsigned w, unsigned h); + GLuint x, GLuint y, GLuint z, + GLuint w, GLuint h, GLuint d); extern void st_texture_image_unmap(struct st_context *st, |