diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-23 08:37:46 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-23 08:43:02 +0100 |
commit | 70868c7aa881b15b7478f7ee4543fde0268a4ba6 (patch) | |
tree | e016c7b152a2e9c4caefdbf952abfd6b11fab598 /src/sna/sna.h | |
parent | aa5351dbbe0a50080efee35a3d494b3a20b7c9f6 (diff) |
sna/dri2: Recreate buffer in reuse rather than force recreate
By marking the buffer->attachment as invalid we forced the recreation of
the buffer on the next DRI2GetBuffers. The only small problem with that
was that the client didn't always immediately call DRI2GetBuffers after
the invalidation - and if they did a DRI2CopyRegion with its stale
buffers the unfound attachment would generate a BadValue and kill the
client. So instead of messing around with the attachment, explicitly
recreate the buffer if we attempt to reuse a buffer of the wrong size.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
0 files changed, 0 insertions, 0 deletions