Browse Source

r300g: Fix two trivial texture size issues.

Next thing to fix: progs/tests/mipgen.
tags/mesa_7_6_rc1
Corbin Simpson 16 years ago
parent
commit
7a10472f09
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/gallium/drivers/r300/r300_texture.c

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

size = stride * base->nblocksy[i] * base->depth[i]; size = stride * base->nblocksy[i] * base->depth[i];


tex->offset[i] = align(tex->size, 32); tex->offset[i] = align(tex->size, 32);
tex->size = tex->offset[i] + size;
tex->size += tex->offset[i] + size;


debug_printf("r300: Texture miptree: Level %d " debug_printf("r300: Texture miptree: Level %d "
"(%dx%dx%d px, pitch %d bytes)\n", "(%dx%dx%d px, pitch %d bytes)\n",
r300_setup_texture_state(tex, template->width[0], template->height[0], r300_setup_texture_state(tex, template->width[0], template->height[0],
template->width[0], template->last_level); template->width[0], template->last_level);


tex->buffer = screen->buffer_create(screen, 64,
tex->buffer = screen->buffer_create(screen, 1024,
PIPE_BUFFER_USAGE_PIXEL, PIPE_BUFFER_USAGE_PIXEL,
tex->size); tex->size);



Loading…
Cancel
Save