~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/r300/radeon_lock.h

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**************************************************************************
2
 
 
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.
6
 
 
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.
10
 
 
11
 
All Rights Reserved.
12
 
 
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:
20
 
 
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.
24
 
 
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.
32
 
 
33
 
**************************************************************************/
34
 
 
35
 
/*
36
 
 * Authors:
37
 
 *   Gareth Hughes <gareth@valinux.com>
38
 
 *   Keith Whitwell <keith@tungstengraphics.com>
39
 
 *   Kevin E. Martin <martin@valinux.com>
40
 
 */
41
 
 
42
 
#ifndef COMMON_LOCK_H
43
 
#define COMMON_LOCK_H
44
 
 
45
 
#include "main/colormac.h"
46
 
#include "radeon_screen.h"
47
 
#include "radeon_common.h"
48
 
 
49
 
extern void radeonGetLock(radeonContextPtr rmesa, GLuint flags);
50
 
 
51
 
void radeon_lock_hardware(radeonContextPtr rmesa
52
 
#ifndef NDEBUG
53
 
                ,const char* function
54
 
                ,const char* file
55
 
                ,const int line
56
 
#endif
57
 
                );
58
 
void radeon_unlock_hardware(radeonContextPtr rmesa);
59
 
 
60
 
/* Lock the hardware and validate our state.
61
 
 */
62
 
#ifdef NDEBUG
63
 
#define LOCK_HARDWARE( rmesa )  radeon_lock_hardware(rmesa)
64
 
#else
65
 
#define LOCK_HARDWARE( rmesa )  radeon_lock_hardware(rmesa, __FUNCTION__, __FILE__, __LINE__)
66
 
#endif
67
 
#define UNLOCK_HARDWARE( rmesa )  radeon_unlock_hardware(rmesa)
68
 
 
69
 
#endif