dri: Inline dri2InvalidateDrawable into its one caller
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16377>
This commit is contained in:
parent
742a873209
commit
abb0ea31ca
|
@ -80,7 +80,7 @@ dri2_invalidate_drawable(__DRIdrawable *dPriv)
|
|||
{
|
||||
struct dri_drawable *drawable = dri_drawable(dPriv);
|
||||
|
||||
dri2InvalidateDrawable(dPriv);
|
||||
dPriv->dri2.stamp++;
|
||||
drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp;
|
||||
drawable->texture_mask = 0;
|
||||
|
||||
|
|
|
@ -860,12 +860,6 @@ const __DRI2flushControlExtension dri2FlushControlExtension = {
|
|||
.base = { __DRI2_FLUSH_CONTROL, 1 }
|
||||
};
|
||||
|
||||
void
|
||||
dri2InvalidateDrawable(__DRIdrawable *drawable)
|
||||
{
|
||||
drawable->dri2.stamp++;
|
||||
}
|
||||
|
||||
/*
|
||||
* Note: the first match is returned, which is important for formats like
|
||||
* __DRI_IMAGE_FORMAT_R8 which maps to both MESA_FORMAT_{R,L}_UNORM8
|
||||
|
|
|
@ -311,9 +311,6 @@ driGLFormatToSizedInternalGLFormat(mesa_format format);
|
|||
extern mesa_format
|
||||
driImageFormatToGLFormat(uint32_t image_format);
|
||||
|
||||
extern void
|
||||
dri2InvalidateDrawable(__DRIdrawable *drawable);
|
||||
|
||||
extern const __DRIimageDriverExtension driImageDriverExtension;
|
||||
|
||||
#endif /* _DRI_UTIL_H_ */
|
||||
|
|
Loading…
Reference in New Issue