diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-12 18:08:02 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-01-14 17:25:19 +0800 |
commit | 6cb89b23eeac50cfb0c5fb8d77e19f869b524eac (patch) | |
tree | 1ce2fd6938d95521cc64e35cfb629d98da4b9260 /src/gallium/state_trackers/egl_g3d/common/egl_g3d.h | |
parent | 6a2936b87683d39beb81ccba831ae7de47063bc6 (diff) |
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.
Diffstat (limited to 'src/gallium/state_trackers/egl_g3d/common/egl_g3d.h')
-rw-r--r-- | src/gallium/state_trackers/egl_g3d/common/egl_g3d.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/egl_g3d/common/egl_g3d.h b/src/gallium/state_trackers/egl_g3d/common/egl_g3d.h index 33894b614f..4c8b8dfe9e 100644 --- a/src/gallium/state_trackers/egl_g3d/common/egl_g3d.h +++ b/src/gallium/state_trackers/egl_g3d/common/egl_g3d.h @@ -73,6 +73,7 @@ struct egl_g3d_surface { struct native_surface *native; enum native_attachment render_att; struct pipe_surface *render_surface; + unsigned int sequence_number; }; struct egl_g3d_config { |