mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 20:48:13 +02:00
st/mesa: fix overwriting gl_format with pipe_format since 9d380f48
fixes assert later on in texcompress2/r600g
Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 19789e403c)
This commit is contained in:
parent
ebc884d3dd
commit
ee416c6ffe
1 changed files with 2 additions and 2 deletions
|
|
@ -842,7 +842,7 @@ decompress_with_blit(struct gl_context * ctx, GLenum target, GLint level,
|
|||
else {
|
||||
/* format translation via floats */
|
||||
GLuint row;
|
||||
enum pipe_format format = util_format_linear(dst_texture->format);
|
||||
enum pipe_format pformat = util_format_linear(dst_texture->format);
|
||||
for (row = 0; row < height; row++) {
|
||||
const GLbitfield transferOps = 0x0; /* bypassed for glGetTexImage() */
|
||||
GLfloat rgba[4 * MAX_WIDTH];
|
||||
|
|
@ -854,7 +854,7 @@ decompress_with_blit(struct gl_context * ctx, GLenum target, GLint level,
|
|||
|
||||
/* get float[4] rgba row from surface */
|
||||
pipe_get_tile_rgba_format(pipe, tex_xfer, 0, row, width, 1,
|
||||
format, rgba);
|
||||
pformat, rgba);
|
||||
|
||||
_mesa_pack_rgba_span_float(ctx, width, (GLfloat (*)[4]) rgba, format,
|
||||
type, dest, &ctx->Pack, transferOps);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue