i915g: Cleanup i915_texture.c

This commit is contained in:
Jakob Bornecrantz 2009-08-30 13:57:37 +01:00
parent 4224bda684
commit 00b0728094
1 changed files with 18 additions and 18 deletions

View File

@ -165,11 +165,11 @@ i915_scanout_layout(struct i915_texture *tex)
if (pt->last_level > 0 || pt->block.size != 4)
return 0;
i915_miptree_set_level_info( tex, 0, 1,
i915_miptree_set_level_info(tex, 0, 1,
tex->base.width[0],
tex->base.height[0],
1 );
i915_miptree_set_image_offset( tex, 0, 0, 0, 0 );
1);
i915_miptree_set_image_offset(tex, 0, 0, 0, 0);
#if 0 /* TODO use this code when backend is smarter */
if (tex->base.width[0] >= 240) {
@ -195,7 +195,7 @@ i915_scanout_layout(struct i915_texture *tex)
}
static void
i945_miptree_layout_2d( struct i915_texture *tex )
i945_miptree_layout_2d(struct i915_texture *tex)
{
struct pipe_texture *pt = &tex->base;
const int align_x = 2, align_y = 4;
@ -735,9 +735,9 @@ i915_init_screen_texture_functions(struct i915_screen *is)
is->base.tex_surface_destroy = i915_tex_surface_destroy;
}
boolean i915_get_texture_buffer( struct pipe_texture *texture,
boolean i915_get_texture_buffer(struct pipe_texture *texture,
struct pipe_buffer **buf,
unsigned *stride )
unsigned *stride)
{
struct i915_texture *tex = (struct i915_texture *)texture;