i915g: Cleanup i915_texture.c
This commit is contained in:
parent
4224bda684
commit
00b0728094
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue