Mesa (master): r300g: remove unused RADEON_PB_USAGE_CACHE

Marek Olšák mareko at kemper.freedesktop.org
Sun Apr 3 13:52:41 PDT 2011


Module: Mesa
Branch: master
Commit: 9d881cbd5a4cd3252fdc8e1f81a6d48d67fc5e5c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d881cbd5a4cd3252fdc8e1f81a6d48d67fc5e5c

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Apr  3 21:18:03 2011 +0200

r300g: remove unused RADEON_PB_USAGE_CACHE

---

 src/gallium/winsys/radeon/drm/radeon_drm_bo.c |    5 -----
 src/gallium/winsys/radeon/drm/radeon_drm_bo.h |    1 -
 2 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 4fd8220..d90903a 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@ -87,8 +87,6 @@ static struct radeon_bo *get_radeon_bo(struct pb_buffer *_buf)
     return bo;
 }
 
-
-
 static void radeon_bo_wait(struct r300_winsys_bo *_buf)
 {
     struct radeon_bo *bo = get_radeon_bo(pb_buffer(_buf));
@@ -444,9 +442,6 @@ static unsigned get_pb_usage_from_create_flags(unsigned bind, unsigned usage,
 {
     unsigned res = 0;
 
-    if (bind & (PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER))
-        res |= RADEON_PB_USAGE_CACHE;
-
     if (domain & R300_DOMAIN_GTT)
         res |= RADEON_PB_USAGE_DOMAIN_GTT;
 
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.h b/src/gallium/winsys/radeon/drm/radeon_drm_bo.h
index 3f9a63f..e0247f2 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.h
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.h
@@ -36,7 +36,6 @@
 #include "pipebuffer/pb_bufmgr.h"
 #include "os/os_thread.h"
 
-#define RADEON_PB_USAGE_CACHE       (1 << 28)
 #define RADEON_PB_USAGE_DOMAIN_GTT  (1 << 29)
 #define RADEON_PB_USAGE_DOMAIN_VRAM (1 << 30)
 



More information about the mesa-commit mailing list