Browse Source

Merge commit 'origin/master' into gallium-resources

Conflicts:
	src/gallium/drivers/r300/r300_texture.c
gallium-resources
Keith Whitwell 15 years ago
parent
commit
eb56e64986
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/gallium/drivers/r300/r300_texture.c

+ 3
- 0
src/gallium/drivers/r300/r300_texture.c View File

@@ -695,6 +695,9 @@ static unsigned r300_texture_get_nblocksy(struct r300_texture* tex,
tile_height = r300_texture_get_tile_size(tex, TILE_HEIGHT,
tex->mip_macrotile[level]);
height = align(height, tile_height);

/* This is needed for the kernel checker, unfortunately. */
height = util_next_power_of_two(height);
}

return util_format_get_nblocksy(tex->b.b.format, height);

Loading…
Cancel
Save