dri1: Add a macro to validate two dri drawables in one go.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Tue, 20 Jan 2009 10:07:10 +0000 (11:07 +0100)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Tue, 20 Jan 2009 10:07:10 +0000 (11:07 +0100)
commit11351f0c8a88ae84ec397c7f9abb4a83c64b2cfc
tree49fec1bacdfdbb5bd21c9a78c4cc70c12040d1fd
parenta5b5bc9f95f381ac61e29e2b2f2001c4135e54ef
dri1: Add a macro to validate two dri drawables in one go.

Dri drivers often may validate first a write drawable and then a read
drawable ("readable"). However, the hardware lock may be unlocked when
validating the readable, causing the write drawable status to be stale.

Drivers should use this macro instead when validating two drawables.
src/mesa/drivers/dri/common/dri_util.h