summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_resource.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-05-13 15:10:34 +0800
committerChia-I Wu <[email protected]>2013-05-14 16:01:25 +0800
commit768296dd05fce98b7ad5219c647ded087b287742 (patch)
tree5ac9360a4ee302a69f63d25e84bdc55825a6c7cb /src/gallium/drivers/ilo/ilo_resource.h
parent528ac68f7a5225be5d624b6eca91be11122dfa91 (diff)
ilo: rename ilo_resource to ilo_texture
In preparation for the introduction of ilo_buffer.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_resource.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_resource.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.h b/src/gallium/drivers/ilo/ilo_resource.h
index 87f80d5c575..cf54dc83bcd 100644
--- a/src/gallium/drivers/ilo/ilo_resource.h
+++ b/src/gallium/drivers/ilo/ilo_resource.h
@@ -43,7 +43,7 @@ struct winsys_handle;
* - ilo_texture
* - ilo_global_binding
*/
-struct ilo_resource {
+struct ilo_texture {
struct pipe_resource base;
struct winsys_handle *handle;
@@ -79,21 +79,21 @@ struct ilo_resource {
} *slice_offsets[PIPE_MAX_TEXTURE_LEVELS];
};
-static inline struct ilo_resource *
-ilo_resource(struct pipe_resource *res)
+static inline struct ilo_texture *
+ilo_texture(struct pipe_resource *res)
{
- return (struct ilo_resource *) res;
+ return (struct ilo_texture *) res;
}
void
ilo_init_resource_functions(struct ilo_screen *is);
bool
-ilo_resource_alloc_bo(struct ilo_resource *res);
+ilo_texture_alloc_bo(struct ilo_texture *tex);
unsigned
-ilo_resource_get_slice_offset(const struct ilo_resource *res,
- int level, int slice, bool tile_aligned,
- unsigned *x_offset, unsigned *y_offset);
+ilo_texture_get_slice_offset(const struct ilo_texture *tex,
+ int level, int slice, bool tile_aligned,
+ unsigned *x_offset, unsigned *y_offset);
#endif /* ILO_RESOURCE_H */