st/egl_g3d: Use a sequence number to decide if validation is required.
authorChia-I Wu <olvaffe@gmail.com>
Tue, 12 Jan 2010 10:08:02 +0000 (18:08 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 14 Jan 2010 09:25:19 +0000 (17:25 +0800)
commit6cb89b23eeac50cfb0c5fb8d77e19f869b524eac
tree1ce2fd6938d95521cc64e35cfb629d98da4b9260
parent6a2936b87683d39beb81ccba831ae7de47063bc6
st/egl_g3d: Use a sequence number to decide if validation is required.

It is not safe to assume that the native surface has not changed since
the last validation by checking the geometry alone.  Add a sequence
number to "validate" callback for that purpose.  This is inspired by
Luca Barbieri's work.
src/gallium/state_trackers/egl_g3d/common/egl_g3d.c
src/gallium/state_trackers/egl_g3d/common/egl_g3d.h
src/gallium/state_trackers/egl_g3d/common/native.h
src/gallium/state_trackers/egl_g3d/kms/native_kms.c
src/gallium/state_trackers/egl_g3d/kms/native_kms.h
src/gallium/state_trackers/egl_g3d/x11/native_dri2.c
src/gallium/state_trackers/egl_g3d/x11/native_ximage.c