summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-04-03 03:52:38 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-04-03 03:52:38 +0200
commit5f2701fddaef9c18d85c049311c2819c49cc1ae0 (patch)
tree10dc605dde5dba9c8b47b693e61e26dca7f18eb9
parent0db20fa49e008f35911007fa7ed9be1d678a2161 (diff)
nouveau: don't use the staging usage
Maybe it could make sense, but for now dynamic is enough. None of these avoid uncached reads from GART on AGP cards.
-rw-r--r--src/gallium/drivers/nouveau/nouveau_screen.c4
-rw-r--r--src/gallium/drivers/nouveau/nouveau_screen.h2
2 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c
index b11faa4567..a0bbc3e38d 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.c
+++ b/src/gallium/drivers/nouveau/nouveau_screen.c
@@ -44,10 +44,6 @@ nouveau_screen_bo_new(struct pipe_screen *pscreen, unsigned alignment,
uint32_t flags = NOUVEAU_BO_MAP, tile_mode = 0, tile_flags = 0;
int ret;
- /* TODO: this is somewhat wrong */
- if (usage == PIPE_USAGE_STAGING)
- flags |= NOUVEAU_BO_GART;
- else
if (bind & PIPE_BIND_VERTEX_BUFFER) {
if (pscreen->get_param(pscreen, NOUVEAU_CAP_HW_VTXBUF))
flags |= NOUVEAU_BO_GART;
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.h b/src/gallium/drivers/nouveau/nouveau_screen.h
index 37caf51909..c0ec6e4895 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.h
+++ b/src/gallium/drivers/nouveau/nouveau_screen.h
@@ -1,8 +1,6 @@
#ifndef __NOUVEAU_SCREEN_H__
#define __NOUVEAU_SCREEN_H__
-#define PIPE_USAGE_STAGING 5
-
struct nouveau_screen {
struct pipe_screen base;
struct nouveau_device *device;