mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-07 14:48:17 +02:00
r200: port over state emit fix from r100
This commit is contained in:
parent
ade3660942
commit
695ca1e2be
1 changed files with 4 additions and 2 deletions
|
|
@ -542,14 +542,16 @@ static void tex_emit(GLcontext *ctx, struct radeon_state_atom *atom)
|
|||
int i = atom->idx;
|
||||
radeonTexObj *t = r200->state.texture.unit[i].texobj;
|
||||
|
||||
if (t && t->mt && !t->image_override)
|
||||
dwords += 2;
|
||||
BEGIN_BATCH_NO_AUTOSTATE(dwords);
|
||||
OUT_BATCH_TABLE(atom->cmd, 10);
|
||||
if (t && !t->image_override) {
|
||||
OUT_BATCH_RELOC(t->tile_bits, t->mt->bo, 0,
|
||||
RADEON_GEM_DOMAIN_VRAM, 0, 0);
|
||||
} else if (!t) {
|
||||
|
||||
OUT_BATCH(atom->cmd[10]);
|
||||
/* workaround for old CS mechanism */
|
||||
OUT_BATCH(r200->radeon.radeonScreen->texOffset[RADEON_LOCAL_TEX_HEAP]);
|
||||
}
|
||||
|
||||
END_BATCH();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue