diff options
author | Brian Paul <[email protected]> | 2010-04-16 10:01:32 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-04-16 10:01:32 -0600 |
commit | d293c43c9a9658caa5224f710b95a848a912faa1 (patch) | |
tree | 2dbf20351e075a98513ed7204348055ab0d47798 /src/gallium/drivers/llvmpipe/lp_texture.h | |
parent | cbe11450110c970e86d7795648171154da35eaa4 (diff) |
llvmpipe: rename vars, update comments for texture->resource changes
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_texture.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.h b/src/gallium/drivers/llvmpipe/lp_texture.h index 89202092453..134666db6f6 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.h +++ b/src/gallium/drivers/llvmpipe/lp_texture.h @@ -156,17 +156,17 @@ void llvmpipe_init_screen_resource_funcs(struct pipe_screen *screen); void llvmpipe_init_context_resource_funcs(struct pipe_context *pipe); static INLINE unsigned -llvmpipe_resource_stride(struct pipe_resource *texture, +llvmpipe_resource_stride(struct pipe_resource *resource, unsigned level) { - struct llvmpipe_resource *lpt = llvmpipe_resource(texture); + struct llvmpipe_resource *lpr = llvmpipe_resource(resource); assert(level < LP_MAX_TEXTURE_2D_LEVELS); - return lpt->stride[level]; + return lpr->stride[level]; } void * -llvmpipe_resource_map(struct pipe_resource *texture, +llvmpipe_resource_map(struct pipe_resource *resource, unsigned face, unsigned level, unsigned zslice, @@ -174,7 +174,7 @@ llvmpipe_resource_map(struct pipe_resource *texture, enum lp_texture_layout layout); void -llvmpipe_resource_unmap(struct pipe_resource *texture, +llvmpipe_resource_unmap(struct pipe_resource *resource, unsigned face, unsigned level, unsigned zslice); @@ -185,7 +185,7 @@ llvmpipe_resource_data(struct pipe_resource *resource); void * -llvmpipe_get_texture_image_address(struct llvmpipe_resource *lpt, +llvmpipe_get_texture_image_address(struct llvmpipe_resource *lpr, unsigned face, unsigned level, enum lp_texture_layout layout); @@ -197,13 +197,13 @@ llvmpipe_get_texture_image(struct llvmpipe_resource *resource, ubyte * -llvmpipe_get_texture_tile_linear(struct llvmpipe_resource *lpt, +llvmpipe_get_texture_tile_linear(struct llvmpipe_resource *lpr, unsigned face, unsigned level, enum lp_texture_usage usage, unsigned x, unsigned y); ubyte * -llvmpipe_get_texture_tile(struct llvmpipe_resource *lpt, +llvmpipe_get_texture_tile(struct llvmpipe_resource *lpr, unsigned face, unsigned level, enum lp_texture_usage usage, unsigned x, unsigned y); |