mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
kopper: reuse dri2 invalidate
this should be fine Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30450>
This commit is contained in:
parent
0c4813dd0b
commit
0741e824cf
1 changed files with 3 additions and 11 deletions
|
|
@ -61,21 +61,12 @@ static struct dri_drawable *
|
|||
kopper_create_drawable(struct dri_screen *screen, const struct gl_config *visual,
|
||||
bool isPixmap, void *loaderPrivate);
|
||||
|
||||
static inline void
|
||||
kopper_invalidate_drawable(__DRIdrawable *dPriv)
|
||||
{
|
||||
struct dri_drawable *drawable = dri_drawable(dPriv);
|
||||
|
||||
drawable->lastStamp++;
|
||||
|
||||
p_atomic_inc(&drawable->base.stamp);
|
||||
}
|
||||
|
||||
static const __DRI2flushExtension driVkFlushExtension = {
|
||||
.base = { __DRI2_FLUSH, 4 },
|
||||
|
||||
.flush = dri_flush_drawable,
|
||||
.invalidate = kopper_invalidate_drawable,
|
||||
.invalidate = dri_invalidate_drawable,
|
||||
.flush_with_flags = dri_flush,
|
||||
};
|
||||
|
||||
|
|
@ -620,7 +611,8 @@ kopper_copy_to_front(struct pipe_context *pipe,
|
|||
{
|
||||
kopper_present_texture(pipe, drawable, ptex, nrects, boxes);
|
||||
|
||||
kopper_invalidate_drawable(opaque_dri_drawable(drawable));
|
||||
drawable->lastStamp++;
|
||||
p_atomic_inc(&drawable->base.stamp);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue