summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvc0/nvc0_resource.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-12-19 21:48:39 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-12-19 21:48:39 +0100
commitca5deb0c355cc4a120b754a228ff5f51007fbcea (patch)
treeefaafc76c48bf9b7e21cce95257191e8d607afbb /src/gallium/drivers/nvc0/nvc0_resource.c
parent0f68236a2487dbeb0396b996debcda595b0b54a1 (diff)
nvc0: adapt to array textures interface change
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_resource.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_resource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_resource.c b/src/gallium/drivers/nvc0/nvc0_resource.c
index 181d917f22..7e42cedd16 100644
--- a/src/gallium/drivers/nvc0/nvc0_resource.c
+++ b/src/gallium/drivers/nvc0/nvc0_resource.c
@@ -6,7 +6,7 @@
static unsigned
nvc0_resource_is_referenced(struct pipe_context *pipe,
struct pipe_resource *resource,
- unsigned face, unsigned level)
+ unsigned face, int layer)
{
struct nvc0_resource *res = nvc0_resource(resource);
unsigned flags = 0;
@@ -56,6 +56,8 @@ nvc0_init_resource_functions(struct pipe_context *pcontext)
pcontext->transfer_destroy = u_transfer_destroy_vtbl;
pcontext->transfer_inline_write = u_transfer_inline_write_vtbl;
pcontext->is_resource_referenced = nvc0_resource_is_referenced;
+ pcontext->create_surface = nvc0_miptree_surface_new;
+ pcontext->surface_destroy = nvc0_miptree_surface_del;
}
void
@@ -66,6 +68,4 @@ nvc0_screen_init_resource_functions(struct pipe_screen *pscreen)
pscreen->resource_get_handle = u_resource_get_handle_vtbl;
pscreen->resource_destroy = u_resource_destroy_vtbl;
pscreen->user_buffer_create = nvc0_user_buffer_create;
- pscreen->get_tex_surface = nvc0_miptree_surface_new;
- pscreen->tex_surface_destroy = nvc0_miptree_surface_del;
}