diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-12-08 20:25:01 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-12-08 13:06:37 -0800 |
commit | c1503861cf75654d4f7b22e6f7f6487c47a0a395 (patch) | |
tree | aa5b07208e3e9e1d58f095f22586a6e4d58872ee /exa/exa_priv.h | |
parent | fd867387335b6175d76bbe93118bbe5e1e45ce88 (diff) |
EXA: ExaDoPrepareAccess return value fixes.
Only return TRUE if the GPU copy is being accessed, and preserve the return
value on repeated / nested calls for the same pixmap.
exaPrepareAccessReg_mixed could get inconsistent return values e.g. when the
same pixmap is both the destination and source of an operation, potentially
resulting in a crash.
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Acked-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'exa/exa_priv.h')
-rw-r--r-- | exa/exa_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/exa/exa_priv.h b/exa/exa_priv.h index 69c0d241d..085235524 100644 --- a/exa/exa_priv.h +++ b/exa/exa_priv.h @@ -194,6 +194,7 @@ typedef struct { struct { PixmapPtr pixmap; int count; + Bool retval; } access[EXA_NUM_PREPARE_INDICES]; /* Holds information on fallbacks that cannot be relayed otherwise. */ |