Bladeren bron

r300g: Fix two trivial texture size issues.

Next thing to fix: progs/tests/mipgen.
tags/mesa_7_6_rc1
Corbin Simpson 16 jaren geleden
bovenliggende
commit
7a10472f09
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      src/gallium/drivers/r300/r300_texture.c

+ 2
- 2
src/gallium/drivers/r300/r300_texture.c Bestand weergeven

@@ -87,7 +87,7 @@ static void r300_setup_miptree(struct r300_texture* tex)
size = stride * base->nblocksy[i] * base->depth[i];

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 "
"(%dx%dx%d px, pitch %d bytes)\n",
@@ -120,7 +120,7 @@ static struct pipe_texture*
r300_setup_texture_state(tex, template->width[0], template->height[0],
template->width[0], template->last_level);

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


Laden…
Annuleren
Opslaan