summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-02-13 00:31:04 +0100
committerMarek Olšák <[email protected]>2011-02-13 00:31:04 +0100
commit8ab1fcc66a58ca87fb19fea2b0e14e62562deccc (patch)
treeaf06d44d01d74364642793eeb7ec539be319e3e8 /src/gallium/winsys
parent1fd6bbc88103cd49623f8235bb20f5f04dfd78c6 (diff)
r300g: fixup the handle_compare function
Accidentally negated in 685c3262b945a7f0e9f1f3a9409a12fdda08c828.
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_bo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 26930438767..df275726ceb 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@ -314,7 +314,7 @@ static void radeon_bomgr_destroy(struct pb_manager *_mgr)
FREE(mgr);
}
-#define PTR_TO_UINT(x) ((unsigned)((intptr_t)(x) & 0xffffffff))
+#define PTR_TO_UINT(x) ((unsigned)((intptr_t)(x)))
static unsigned handle_hash(void *key)
{
@@ -323,7 +323,7 @@ static unsigned handle_hash(void *key)
static int handle_compare(void *key1, void *key2)
{
- return PTR_TO_UINT(key1) == PTR_TO_UINT(key2);
+ return PTR_TO_UINT(key1) != PTR_TO_UINT(key2);
}
struct pb_manager *radeon_bomgr_create(struct radeon_drm_winsys *rws)