sna: Silence a few unused function warnings
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
536033b4ed
commit
c553dcae2d
|
|
@ -900,19 +900,6 @@ sna_dri_frame_event_info_free(struct sna_dri_frame_event *info)
|
|||
free(info);
|
||||
}
|
||||
|
||||
static void
|
||||
sna_dri_exchange_attachment(DRI2BufferPtr front, DRI2BufferPtr back)
|
||||
{
|
||||
int tmp;
|
||||
|
||||
DBG(("%s(%d <--> %d)\n",
|
||||
__FUNCTION__, front->attachment, back->attachment));
|
||||
|
||||
tmp = front->attachment;
|
||||
front->attachment = back->attachment;
|
||||
back->attachment = tmp;
|
||||
}
|
||||
|
||||
/*
|
||||
* Our internal swap routine takes care of actually exchanging, blitting, or
|
||||
* flipping buffers as necessary.
|
||||
|
|
@ -1714,6 +1701,19 @@ blit_fallback:
|
|||
}
|
||||
|
||||
#if DRI2INFOREC_VERSION >= 7
|
||||
static void
|
||||
sna_dri_exchange_attachment(DRI2BufferPtr front, DRI2BufferPtr back)
|
||||
{
|
||||
int tmp;
|
||||
|
||||
DBG(("%s(%d <--> %d)\n",
|
||||
__FUNCTION__, front->attachment, back->attachment));
|
||||
|
||||
tmp = front->attachment;
|
||||
front->attachment = back->attachment;
|
||||
back->attachment = tmp;
|
||||
}
|
||||
|
||||
static Bool
|
||||
sna_dri_async_swap(ClientPtr client, DrawablePtr draw,
|
||||
DRI2BufferPtr front, DRI2BufferPtr back,
|
||||
|
|
|
|||
|
|
@ -265,12 +265,6 @@ done:
|
|||
free(tile);
|
||||
}
|
||||
|
||||
static inline int split(int x, int y)
|
||||
{
|
||||
int n = x / y + 1;
|
||||
return (x + n - 1) / n;
|
||||
}
|
||||
|
||||
Bool
|
||||
sna_tiling_composite(uint32_t op,
|
||||
PicturePtr src,
|
||||
|
|
|
|||
|
|
@ -1540,14 +1540,6 @@ inplace_row(struct active_list *active, uint8_t *row, int width)
|
|||
}
|
||||
}
|
||||
|
||||
static inline uint8_t clip255(int x)
|
||||
{
|
||||
if (x > 255)
|
||||
return 255;
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
inline static void
|
||||
inplace_subrow(struct active_list *active, int8_t *row,
|
||||
int width, int *min, int *max)
|
||||
|
|
|
|||
Loading…
Reference in New Issue