diff options
author | Kristian Høgsberg <[email protected]> | 2011-10-28 16:22:03 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2011-11-02 11:16:02 -0400 |
commit | e9beaf65fdaf82a7845cbe176f353ddb6b8466c7 (patch) | |
tree | 7f970e545f8140bcf7efedfff550d647eab5b92d /src/gallium/state_trackers/dri | |
parent | e8ed01f6930bd4e11ee453164597403a7284a1f8 (diff) |
dri: Remove unnecessary timestamp pointer indirection
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_drawable.c | 6 | ||||
-rw-r--r-- | src/gallium/state_trackers/dri/drm/dri2.c | 2 | ||||
l--------- | src/gallium/state_trackers/dri/sw/dri_drawable.c | 1 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.c b/src/gallium/state_trackers/dri/common/dri_drawable.c index 485616fde6c..d8db69e7f04 100644 --- a/src/gallium/state_trackers/dri/common/dri_drawable.c +++ b/src/gallium/state_trackers/dri/common/dri_drawable.c @@ -62,9 +62,9 @@ dri_st_framebuffer_validate(struct st_framebuffer_iface *stfbi, new_mask = (statt_mask & ~drawable->texture_mask); /* - * dPriv->pStamp is the server stamp. It should be accessed with a lock, at - * least for DRI1. dPriv->lastStamp is the client stamp. It has the value - * of the server stamp when last checked. + * dPriv->dri2.stamp is the server stamp. dPriv->lastStamp is the + * client stamp. It has the value of the server stamp when last + * checked. */ new_stamp = (drawable->texture_stamp != drawable->dPriv->lastStamp); diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index d3db0ccda51..a62a084c13f 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -65,7 +65,7 @@ dri2_invalidate_drawable(__DRIdrawable *dPriv) struct dri_drawable *drawable = dri_drawable(dPriv); dri2InvalidateDrawable(dPriv); - drawable->dPriv->lastStamp = *drawable->dPriv->pStamp; + drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp; p_atomic_inc(&drawable->base.stamp); } diff --git a/src/gallium/state_trackers/dri/sw/dri_drawable.c b/src/gallium/state_trackers/dri/sw/dri_drawable.c deleted file mode 120000 index 0fc19be6ea6..00000000000 --- a/src/gallium/state_trackers/dri/sw/dri_drawable.c +++ /dev/null @@ -1 +0,0 @@ -../common/dri_drawable.c
\ No newline at end of file |