mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
st/mesa: flush bitmap cache before CopyImageSubData
Found by inspection. Cc: 11.2 12.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
e7fff3cfe1
commit
f9ddd52317
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "state_tracker/st_context.h"
|
||||
#include "state_tracker/st_cb_bitmap.h"
|
||||
#include "state_tracker/st_cb_copyimage.h"
|
||||
#include "state_tracker/st_cb_fbo.h"
|
||||
#include "state_tracker/st_texture.h"
|
||||
|
|
@ -547,6 +548,8 @@ st_CopyImageSubData(struct gl_context *ctx,
|
|||
struct pipe_box box;
|
||||
int src_level, dst_level;
|
||||
|
||||
st_flush_bitmap_cache(st);
|
||||
|
||||
if (src_image) {
|
||||
struct st_texture_image *src = st_texture_image(src_image);
|
||||
src_res = src->pt;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue