summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-10-15 13:04:48 -0700
committerIan Romanick <idr@us.ibm.com>2007-10-15 13:04:48 -0700
commit3c1283307998f6c1ac7735631b9433ba2a0644fe (patch)
treeb36225d5b060536e673238c62b9724fc3701b93f
parent9ecb4b8f50aff8eaf528c109c587dc52a8241c93 (diff)
Log error message if too much data is written to command list.
-rw-r--r--src/xg47_cmdlist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xg47_cmdlist.c b/src/xg47_cmdlist.c
index 833ea72..6bbd667 100644
--- a/src/xg47_cmdlist.c
+++ b/src/xg47_cmdlist.c
@@ -376,6 +376,12 @@ void xg47_EndCmdList(struct xg47_CmdList *pCmdList)
return;
}
+ if (data_count > pCmdList->current.request_size) {
+ ErrorF("Too much data written written to command buffer! %u vs. %u\n",
+ data_count, pCmdList->current.request_size);
+ }
+
+
beginHWAddr = pCmdList->command.hw_addr
+ ((intptr_t) pCmdList->current.begin
- (intptr_t) pCmdList->command.ptr);