summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_resource.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-03-01 12:26:20 +1000
committerBen Skeggs <bskeggs@redhat.com>2011-03-01 14:44:43 +1000
commit79079141fa7cbf395d1ffc77364ac301d9824211 (patch)
treef891d7925be9edf943827cf3d702dcdb94378419 /src/gallium/drivers/nv50/nv50_resource.c
parent5c1c4f8593073c0bad9bada9234657dda1b25ff0 (diff)
downloadexternal_mesa3d-79079141fa7cbf395d1ffc77364ac301d9824211.zip
external_mesa3d-79079141fa7cbf395d1ffc77364ac301d9824211.tar.gz
external_mesa3d-79079141fa7cbf395d1ffc77364ac301d9824211.tar.bz2
nv50: move onto common linear buffer manager
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_resource.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_resource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv50/nv50_resource.c b/src/gallium/drivers/nv50/nv50_resource.c
index ae1a2bf..2a2fb0e 100644
--- a/src/gallium/drivers/nv50/nv50_resource.c
+++ b/src/gallium/drivers/nv50/nv50_resource.c
@@ -8,7 +8,7 @@ nv50_resource_is_referenced(struct pipe_context *pipe,
struct pipe_resource *resource,
unsigned face, int layer)
{
- struct nv50_resource *res = nv50_resource(resource);
+ struct nv04_resource *res = nv04_resource(resource);
unsigned flags = 0;
unsigned bo_flags = nouveau_bo_pending(res->bo);
@@ -26,7 +26,7 @@ nv50_resource_create(struct pipe_screen *screen,
{
switch (templ->target) {
case PIPE_BUFFER:
- return nv50_buffer_create(screen, templ);
+ return nouveau_buffer_create(screen, templ);
default:
return nv50_miptree_create(screen, templ);
}
@@ -64,5 +64,5 @@ nv50_screen_init_resource_functions(struct pipe_screen *pscreen)
pscreen->resource_from_handle = nv50_resource_from_handle;
pscreen->resource_get_handle = u_resource_get_handle_vtbl;
pscreen->resource_destroy = u_resource_destroy_vtbl;
- pscreen->user_buffer_create = nv50_user_buffer_create;
+ pscreen->user_buffer_create = nouveau_user_buffer_create;
}