summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/radeon/drm
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-02-11 01:32:44 +0100
committerMarek Olšák <[email protected]>2011-02-11 01:32:44 +0100
commit862ebb411b911f28bc93316e9e68c42f69f4dff3 (patch)
tree2de5d091deed8576eb73ec826ee698197bc5f1bb /src/gallium/winsys/radeon/drm
parent98f344c5043c570ac1ae395ba0a75f3e3ad06dc8 (diff)
r300g: remove unneeded code in winsys
We don't need the read/write flags.
Diffstat (limited to 'src/gallium/winsys/radeon/drm')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_bo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 1a7804fc6ac..f6a013ef688 100644
--- 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;