radeon: put back state emission lastcmd

This commit is contained in:
Dave Airlie 2009-02-10 04:57:37 +10:00
parent d2fa89140e
commit b1df5ed6db

View file

@ -516,14 +516,11 @@ void radeonInitState( r100ContextPtr rmesa )
rmesa->hw.max_state_size = 0;
// rmesa->hw.ATOM.lastcmd = (GLuint *)CALLOC(SZ * sizeof(int)); \
#define ALLOC_STATE_IDX( ATOM, CHK, SZ, NM, FLAG, IDX ) \
do { \
rmesa->hw.ATOM.cmd_size = SZ; \
rmesa->hw.ATOM.cmd = (GLuint *)CALLOC(SZ * sizeof(int)); \
rmesa->hw.ATOM.lastcmd = (GLuint *)CALLOC(SZ * sizeof(int)); \
rmesa->hw.ATOM.name = NM; \
rmesa->hw.ATOM.is_tcl = FLAG; \
rmesa->hw.ATOM.check = check_##CHK; \