Commit 5f2701fd authored by Luca Barbieri's avatar Luca Barbieri

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.
parent 0db20fa4
......@@ -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;
......
#ifndef __NOUVEAU_SCREEN_H__
#define __NOUVEAU_SCREEN_H__
#define PIPE_USAGE_STAGING 5
struct nouveau_screen {
struct pipe_screen base;
struct nouveau_device *device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment