mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
gallium: Flush render cache at the beginning of fallback_copy_texsubimage().
It may get stale bits otherwise.
This commit is contained in:
parent
d758479b9f
commit
02250c855f
1 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,7 @@
|
|||
#include "state_tracker/st_cb_fbo.h"
|
||||
#include "state_tracker/st_cb_texture.h"
|
||||
#include "state_tracker/st_format.h"
|
||||
#include "state_tracker/st_public.h"
|
||||
#include "state_tracker/st_texture.h"
|
||||
#include "state_tracker/st_gen_mipmap.h"
|
||||
|
||||
|
|
@ -1033,6 +1034,8 @@ fallback_copy_texsubimage(GLcontext *ctx,
|
|||
GLfloat *data;
|
||||
GLint row, yStep;
|
||||
|
||||
st_flush(ctx->st, PIPE_FLUSH_RENDER_CACHE, NULL);
|
||||
|
||||
/* determine bottom-to-top vs. top-to-bottom order */
|
||||
if (st_fb_orientation(ctx->ReadBuffer) == Y_0_TOP) {
|
||||
destY = height - 1 - destY;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue