The resource may have been written to as images previously.
KHR-GL45.shader_image_load_store.advanced-sync-imageAccess2
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5835>
#include "lp_state.h"
#include "lp_debug.h"
#include "frontend/sw_winsys.h"
+#include "lp_flush.h"
static void *
debug_printf("Illegal setting of sampler_view %d created in another "
"context\n", i);
}
+
+ if (views[i])
+ llvmpipe_flush_resource(pipe, views[i]->texture, 0, true, false, false, "sampler_view");
pipe_sampler_view_reference(&llvmpipe->sampler_views[shader][start + i],
views[i]);
}