r300g: remove unused RADEON_PB_USAGE_CACHE
authorMarek Olšák <maraeo@gmail.com>
Sun, 3 Apr 2011 19:18:03 +0000 (21:18 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 3 Apr 2011 19:18:03 +0000 (21:18 +0200)
src/gallium/winsys/radeon/drm/radeon_drm_bo.c
src/gallium/winsys/radeon/drm/radeon_drm_bo.h

index 4fd822014187f61f6d34c5e8c0ae754df005d6bb..d90903a91a52e18e42f537a480d31a7b9c7a9c4a 100644 (file)
@@ -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;
 
index 3f9a63f5f11a50cd0dd78f0851e1397d5a1e1569..e0247f2dfc3f1c0635efc82653ff8f4b03fae09a 100644 (file)
@@ -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)