summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl/vl_csc.c
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2011-07-02 10:37:17 +0200
committerThomas Hellstrom <[email protected]>2011-07-04 09:56:45 +0200
commita221807dc5d69598afd1d0e0a4e715fb82a9f30d (patch)
treea38fb10bbe13a9b4fa004fb71f9cf38aab6faa36 /src/gallium/auxiliary/vl/vl_csc.c
parent39fecd3229b33786bb31fd97fd8f0486a68cc653 (diff)
st/glx: Fix endless loop in drawable validation
This fixes a regression introduced with commit "st-api: Rework how drawables are invalidated v3" where the glx state tracker manager would invalidate a drawable each time it checks the drawable dimensions, even during a validate call, which resulted in an endless loop, since the state tracker would immediately detect the new invalidation and rerun the validate... This change marks the drawable invalid only if the drawable dimensions actually changed during the validate, which will result in at most a single unnecessary validate by the context running a validate during which the dimensions changed. To avoid unnecessary validates altogether, we need to implement yet another st-api change: Returning the current time stamp from the validate function, as suggested by Chia-I Wu. The glx state tracker manager could then return the stamp resulting from the last drawable dimension check. Signed-off-by: Thomas Hellstrom <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_csc.c')
0 files changed, 0 insertions, 0 deletions