projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fd6bbc
)
r300g: fixup the handle_compare function
author
Marek Olšák
<maraeo@gmail.com>
Sat, 12 Feb 2011 23:31:04 +0000
(
00:31
+0100)
committer
Marek Olšák
<maraeo@gmail.com>
Sat, 12 Feb 2011 23:31:04 +0000
(
00:31
+0100)
Accidentally negated in
685c3262b945a7f0e9f1f3a9409a12fdda08c828
.
src/gallium/winsys/radeon/drm/radeon_drm_bo.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 26930438767b4ac8fd54c5fe4c872445c1756adc..df275726cebe8b3382b969c866d43bc4b27a6bce 100644
(file)
--- 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)