} else if (!t) {
/* workaround for old CS mechanism */
OUT_BATCH(r200->radeon.radeonScreen->texOffset[RADEON_LOCAL_TEX_HEAP]);
- }
+ } else if (t->image_override)
+ OUT_BATCH(atom->cmd[10]);
END_BATCH();
}
#include "swrast_setup/swrast_setup.h"
#include "dri_util.h"
-#include "drirenderbuffer.h"
#include "vblank.h"
#include "radeon_common.h"
/* Get ready for drawing next frame. Update the renderbuffers'
* flippedOffset/Pitch fields so we draw into the right place.
*/
- driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer,
- rmesa->sarea->pfCurrentPage);
+ // driFlipRenderbuffers(rmesa->glCtx->WinSysDrawBuffer,
+ // rmesa->sarea->pfCurrentPage);
rmesa->state.color.rrb = rrb;
if (t && t->mt && !t->image_override) {
OUT_BATCH_RELOC(t->tile_bits, t->mt->bo, 0,
RADEON_GEM_DOMAIN_VRAM, 0, 0);
- } else {
+ } else if (!t) {
/* workaround for old CS mechanism */
OUT_BATCH(r100->radeon.radeonScreen->texOffset[RADEON_LOCAL_TEX_HEAP]);
// OUT_BATCH(r100->radeon.radeonScreen);
- }
+ } else if (t->image_override)
+ OUT_BATCH(atom->cmd[4]);
OUT_BATCH_TABLE((atom->cmd+4), 5);
END_BATCH();