GPU/Commands: Difference between revisions
m 244 theory |
gpu cmdbuf size alignment |
||
Line 9: | Line 9: | ||
Invalid GPU command parameters including NaN floats can cause the GPU to hang, which then causes the GSP module to hang as well. | Invalid GPU command parameters including NaN floats can cause the GPU to hang, which then causes the GSP module to hang as well. | ||
The size of GPU command buffers must be 0x10-byte aligned; the lower 3 bits of the size are cleared. A common pitfall is having the finalization command (write to register 0x0010) not executed because it was the last 8 bytes of a non-0x10 byte aligned command buffer, and having the GPU hang as a result. | |||
=== Command Header === | === Command Header === |