sna: Constify GCFunc to quieten the compiler.
We keep a pointer to the old funcs when wrapping, this now needs to be const. sna_accel.c: In function 'sna_gc_move_to_cpu': sna_accel.c:4008:17: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] sgc->old_funcs = gc->funcs; Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
57445e57d4
commit
76e430e92c
|
|
@ -208,7 +208,7 @@ struct sna_gc {
|
|||
long changes;
|
||||
long serial;
|
||||
|
||||
GCFuncs *old_funcs;
|
||||
const GCFuncs *old_funcs;
|
||||
void *priv;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -4068,7 +4068,7 @@ static void sna_gc_move_to_gpu(GCPtr gc)
|
|||
assert(gc->funcs == (GCFuncs *)&sna_gc_funcs__cpu);
|
||||
|
||||
gc->ops = (GCOps *)&sna_gc_ops;
|
||||
gc->funcs = sna_gc(gc)->old_funcs;
|
||||
gc->funcs = (GCFuncs *)sna_gc(gc)->old_funcs;
|
||||
assert(gc->funcs);
|
||||
gc->pCompositeClip = sna_gc(gc)->priv;
|
||||
assert(gc->pCompositeClip);
|
||||
|
|
|
|||
Loading…
Reference in New Issue