r300: emit texture in GTT or VRAM
authorDave Airlie <airlied@redhat.com>
Thu, 5 Mar 2009 06:45:21 +0000 (16:45 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 9 Mar 2009 03:44:03 +0000 (13:44 +1000)
src/mesa/drivers/dri/r300/r300_cmdbuf.c

index 3626b877eb98abe04b26c8bdceed9afd63e922d4..2c6618fc608d640d4466a49e178af133e10dbba0 100644 (file)
@@ -189,13 +189,13 @@ static void emit_tex_offsets(GLcontext *ctx, struct radeon_state_atom * atom)
                    OUT_BATCH_REGSEQ(R300_TX_OFFSET_0 + (i * 4), 1);
                    if (t && !t->image_override) {
                            OUT_BATCH_RELOC(t->tile_bits, t->mt->bo, 0,
-                                           RADEON_GEM_DOMAIN_VRAM, 0, 0);
+                                           RADEON_GEM_DOMAIN_GTT|RADEON_GEM_DOMAIN_VRAM, 0, 0);
                    } else if (!t) {
                            OUT_BATCH(r300->radeon.radeonScreen->texOffset[0]);
                    } else { /* override cases */
                            if (t->bo) {
                                    OUT_BATCH_RELOC(t->tile_bits, t->bo, 0,
-                                                   RADEON_GEM_DOMAIN_VRAM, 0, 0);
+                                                   RADEON_GEM_DOMAIN_GTT|RADEON_GEM_DOMAIN_VRAM, 0, 0);
                            } else if (!r300->radeon.radeonScreen->kernel_mm) {
                                    OUT_BATCH(t->override_offset);
                            }