mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-01 22:18:27 +02:00
r200: fixup some CS emission sizes
This commit is contained in:
parent
393c699e21
commit
ade3660942
3 changed files with 3 additions and 2 deletions
|
|
@ -259,7 +259,7 @@ void r200EmitAOS(r200ContextPtr rmesa, GLuint nr, GLuint offset)
|
|||
fprintf(stderr, "%s: nr=%d, ofs=0x%08x\n", __FUNCTION__, nr,
|
||||
offset);
|
||||
|
||||
BEGIN_BATCH(sz+2);
|
||||
BEGIN_BATCH(sz+2+ (nr*2));
|
||||
OUT_BATCH_PACKET3(R200_CP_CMD_3D_LOAD_VBPNTR, sz - 1);
|
||||
OUT_BATCH(nr);
|
||||
|
||||
|
|
|
|||
|
|
@ -555,6 +555,7 @@ void r200DestroyContext( __DRIcontextPrivate *driContextPriv )
|
|||
r200ReleaseArrays( rmesa->radeon.glCtx, ~0 );
|
||||
|
||||
if (rmesa->radeon.dma.current) {
|
||||
radeonReleaseDmaRegion( &rmesa->radeon );
|
||||
rcommonFlushCmdBuf( &rmesa->radeon, __FUNCTION__ );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -417,7 +417,7 @@ static void ctx_emit(GLcontext *ctx, struct radeon_state_atom *atom)
|
|||
GLframebuffer *fb = r200->radeon.dri.drawable->driverPrivate;
|
||||
|
||||
/* output the first 7 bytes of context */
|
||||
BEGIN_BATCH_NO_AUTOSTATE(dwords);
|
||||
BEGIN_BATCH_NO_AUTOSTATE(dwords+2+2);
|
||||
OUT_BATCH_TABLE(atom->cmd, 5);
|
||||
|
||||
rrb = r200->radeon.state.depth.rrb;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue