mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 04:30:25 +01:00
mesa: handle SwapBytes in compressed texture get code.
This case just wasn't handled, so add support for it.
Cc: "11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 5b6c7da460)
This commit is contained in:
parent
d9534e4785
commit
dcb220f2f7
1 changed files with 7 additions and 0 deletions
|
|
@ -361,6 +361,13 @@ get_tex_rgba_compressed(struct gl_context *ctx, GLuint dimensions,
|
|||
tempSlice, RGBA32_FLOAT, srcStride,
|
||||
width, height,
|
||||
needsRebase ? rebaseSwizzle : NULL);
|
||||
|
||||
/* Handle byte swapping if required */
|
||||
if (ctx->Pack.SwapBytes) {
|
||||
_mesa_swap_bytes_2d_image(format, type, &ctx->Pack,
|
||||
width, height, dest, dest);
|
||||
}
|
||||
|
||||
tempSlice += 4 * width * height;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue