mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
Since we memcpy texture data synchronously to the card, idle the engine before
we start copying. I haven't seen it go wrong before, but I'm pretty sure this fix is correct.
This commit is contained in:
parent
60b639b9a6
commit
414b742c97
1 changed files with 4 additions and 0 deletions
|
|
@ -380,6 +380,7 @@ static void sisTexImage1D( GLcontext *ctx, GLenum target, GLint level,
|
|||
sisAllocTexImage(smesa, t, level, texImage);
|
||||
|
||||
/* Upload the texture */
|
||||
WaitEngIdle(smesa);
|
||||
memcpy(t->image[level].Data, texImage->Data, t->image[level].size);
|
||||
|
||||
if (smesa->PrevTexFormat[ctx->Texture.CurrentUnit] != t->format)
|
||||
|
|
@ -422,6 +423,7 @@ static void sisTexSubImage1D( GLcontext *ctx,
|
|||
sisAllocTexImage(smesa, t, level, texImage);
|
||||
|
||||
/* Upload the texture */
|
||||
WaitEngIdle(smesa);
|
||||
texelBytes = texImage->TexFormat->TexelBytes;
|
||||
|
||||
copySize = width * texelBytes;
|
||||
|
|
@ -465,6 +467,7 @@ static void sisTexImage2D( GLcontext *ctx, GLenum target, GLint level,
|
|||
sisAllocTexImage(smesa, t, level, texImage);
|
||||
|
||||
/* Upload the texture */
|
||||
WaitEngIdle(smesa);
|
||||
memcpy(t->image[level].Data, texImage->Data, t->image[level].size);
|
||||
|
||||
if (smesa->PrevTexFormat[ctx->Texture.CurrentUnit] != t->format)
|
||||
|
|
@ -508,6 +511,7 @@ static void sisTexSubImage2D( GLcontext *ctx,
|
|||
sisAllocTexImage(smesa, t, level, texImage);
|
||||
|
||||
/* Upload the texture */
|
||||
WaitEngIdle(smesa);
|
||||
texelBytes = texImage->TexFormat->TexelBytes;
|
||||
|
||||
copySize = width * texelBytes;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue