1
/**************************************************************************
3
Copyright 2000, 2001 ATI Technologies Inc., Ontario, Canada, and
4
VA Linux Systems Inc., Fremont, California.
5
Copyright (C) The Weather Channel, Inc. 2002. All Rights Reserved.
7
The Weather Channel (TM) funded Tungsten Graphics to develop the
8
initial release of the Radeon 8500 driver under the XFree86 license.
9
This notice must be preserved.
13
Permission is hereby granted, free of charge, to any person obtaining
14
a copy of this software and associated documentation files (the
15
"Software"), to deal in the Software without restriction, including
16
without limitation the rights to use, copy, modify, merge, publish,
17
distribute, sublicense, and/or sell copies of the Software, and to
18
permit persons to whom the Software is furnished to do so, subject to
19
the following conditions:
21
The above copyright notice and this permission notice (including the
22
next paragraph) shall be included in all copies or substantial
23
portions of the Software.
25
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
28
IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
29
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
**************************************************************************/
37
* Gareth Hughes <gareth@valinux.com>
38
* Keith Whitwell <keith@tungstengraphics.com>
39
* Kevin E. Martin <martin@valinux.com>
45
#include "main/colormac.h"
46
#include "radeon_screen.h"
47
#include "radeon_common.h"
49
extern void radeonGetLock(radeonContextPtr rmesa, GLuint flags);
51
void radeon_lock_hardware(radeonContextPtr rmesa
58
void radeon_unlock_hardware(radeonContextPtr rmesa);
60
/* Lock the hardware and validate our state.
63
#define LOCK_HARDWARE( rmesa ) radeon_lock_hardware(rmesa)
65
#define LOCK_HARDWARE( rmesa ) radeon_lock_hardware(rmesa, __FUNCTION__, __FILE__, __LINE__)
67
#define UNLOCK_HARDWARE( rmesa ) radeon_unlock_hardware(rmesa)