diff options
author | Younes Manton <[email protected]> | 2008-12-05 02:26:07 -0500 |
---|---|---|
committer | Younes Manton <[email protected]> | 2009-01-10 13:52:05 -0500 |
commit | 34c0281879b589dc42d134a10349eac66c7b2f0d (patch) | |
tree | 3df11e418a0a72c5e3fbe3032820af85f71f51f3 /src/gallium/drivers/nv40/nv40_screen.c | |
parent | fbf418d9dc0aa2965ca7673ae20f6e47c4a53c8a (diff) |
nouveau: Put dynamic textures in GART for CPU access and don't swizzle.
Also flag shadows as dynamic since they're for CPU access as well.
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_screen.c')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv40/nv40_screen.c b/src/gallium/drivers/nv40/nv40_screen.c index 995148e03f0..9657a19c50f 100644 --- a/src/gallium/drivers/nv40/nv40_screen.c +++ b/src/gallium/drivers/nv40/nv40_screen.c @@ -148,7 +148,8 @@ nv40_surface_map(struct pipe_screen *screen, struct pipe_surface *surface, if (!mt->shadow_tex) { unsigned old_tex_usage = surface->texture->tex_usage; - surface->texture->tex_usage = NOUVEAU_TEXTURE_USAGE_LINEAR; + surface->texture->tex_usage = NOUVEAU_TEXTURE_USAGE_LINEAR | + PIPE_TEXTURE_USAGE_DYNAMIC; mt->shadow_tex = screen->texture_create(screen, surface->texture); surface->texture->tex_usage = old_tex_usage; |