commit | 451a0ddb190e5185372fed9ec57d24a822442ecc | [log] [tgz] |
---|---|---|
author | Marek Olšák <maraeo@gmail.com> | Sun Jul 25 10:07:12 2010 +0200 |
committer | Marek Olšák <maraeo@gmail.com> | Sun Jul 25 10:33:09 2010 +0200 |
tree | 31d3195810798fb0e1640973fbef9dfbc7e0fffd | |
parent | 49330fc5ac13e25cb201e62995329cffaf5046f0 [diff] |
r300g: make sure a texture is large enough for the CBZB clear The number of macrotiles in the Y direction must be even, otherwise memory corruption may happen (e.g. broken fonts). Basically, if we get a buffer in resource_from_handle, we can determine from the buffer size whether it's safe to use the CBZB clear or not.