projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98f344c
)
r300g: remove unneeded code in winsys
author
Marek Olšák
<maraeo@gmail.com>
Fri, 11 Feb 2011 00:32:44 +0000
(
01:32
+0100)
committer
Marek Olšák
<maraeo@gmail.com>
Fri, 11 Feb 2011 00:32:44 +0000
(
01:32
+0100)
We don't need the read/write flags.
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 1a7804fc6aca75433dd1a9c5e1af8b7648c7a812..f6a013ef6885317bf61feda3ab2302fca75f53b2 100644
(file)
--- a/
src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/
src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@
-115,12
+115,6
@@
static unsigned get_pb_usage_from_transfer_flags(enum pipe_transfer_usage usage)
{
unsigned res = 0;
- if (usage & PIPE_TRANSFER_READ)
- res |= PB_USAGE_CPU_READ;
-
- if (usage & PIPE_TRANSFER_WRITE)
- res |= PB_USAGE_CPU_WRITE;
-
if (usage & PIPE_TRANSFER_DONTBLOCK)
res |= PB_USAGE_DONTBLOCK;