summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/radeon
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/radeon')
-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)