diff options
author | Ilia Mirkin <[email protected]> | 2015-11-08 04:46:38 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-11-11 14:37:55 -0500 |
commit | 912babba7bf1abd3caa49f6372d581ae1afe7e84 (patch) | |
tree | e2a6a6a084d8d8638ca925694920ee7a0ed027d5 /src/mesa/math | |
parent | 80890eb0d322483fb13558afddc4feae5210f996 (diff) |
mesa/copyimage: allow width/height to not be multiples of block
For compressed textures, the image size is not necessarily a multiple of
the block size (e.g. the last mip levels). Section 18.3.2 (Copying
Between Images) of the OpenGL 4.5 Core Profile spec says:
An INVALID_VALUE error is generated if the dimensions of either
subregion exceeds the boundaries of the corresponding image
object, or if the image format is compressed and the dimensions of
the subregion fail to meet the alignment constraints of the
format.
and Section 8.7 (Compressed Texture Images) says:
An INVALID_OPERATION error is generated if any of the following
conditions occurs:
* width is not a multiple of four, and width + xoffset is not
equal to the value of TEXTURE_WIDTH.
* height is not a multiple of four, and height + yoffset is not
equal to the value of TEXTURE_HEIGHT.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92860
Signed-off-by: Ilia Mirkin <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Cc: [email protected]
Diffstat (limited to 'src/mesa/math')
0 files changed, 0 insertions, 0 deletions