Browse Source

r300g: fixup the handle_compare function

Accidentally negated in 685c3262b9.
tags/android-x86-2.2-r2
Marek Olšák 14 years ago
parent
commit
8ab1fcc66a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/gallium/winsys/radeon/drm/radeon_drm_bo.c

+ 2
- 2
src/gallium/winsys/radeon/drm/radeon_drm_bo.c View File

@@ -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)

Loading…
Cancel
Save