mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
r600: fix mipmaps
redbook mipmap works
This commit is contained in:
parent
246729162c
commit
0fdac3529c
2 changed files with 6 additions and 1 deletions
|
|
@ -610,6 +610,11 @@ static void setup_hardware_state(context_t *rmesa, struct gl_texture_object *tex
|
|||
SETfield(t->SQ_TEX_RESOURCE1, firstImage->Height - 1,
|
||||
TEX_HEIGHT_shift, TEX_HEIGHT_mask);
|
||||
|
||||
if ((t->mt->lastLevel - t->mt->firstLevel) > 0) {
|
||||
t->SQ_TEX_RESOURCE3 = t->mt->levels[0].size / 256;
|
||||
SETfield(t->SQ_TEX_RESOURCE4, t->mt->firstLevel, BASE_LEVEL_shift, BASE_LEVEL_mask);
|
||||
SETfield(t->SQ_TEX_RESOURCE5, t->mt->lastLevel, LAST_LEVEL_shift, LAST_LEVEL_mask);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ GLboolean r700SendTextureState(context_t *context)
|
|||
RADEON_GEM_DOMAIN_GTT|RADEON_GEM_DOMAIN_VRAM, 0, 0, &offset_mod);
|
||||
R600_OUT_BATCH_RELOC(r700->textures[i]->SQ_TEX_RESOURCE3,
|
||||
bo,
|
||||
0,
|
||||
r700->textures[i]->SQ_TEX_RESOURCE3,
|
||||
RADEON_GEM_DOMAIN_GTT|RADEON_GEM_DOMAIN_VRAM, 0, 0, &offset_mod);
|
||||
R600_OUT_BATCH(r700->textures[i]->SQ_TEX_RESOURCE4);
|
||||
R600_OUT_BATCH(r700->textures[i]->SQ_TEX_RESOURCE5);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue