mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
pan/decode: Disable magic divisor debugging
Memory corruption (for both legitimate and illegitimate reasons) causes this to hang pantrace. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
e8dca7e1e1
commit
d07c846546
1 changed files with 2 additions and 0 deletions
|
|
@ -937,6 +937,7 @@ pandecode_padded_vertices(unsigned shift, unsigned k)
|
|||
static void
|
||||
pandecode_magic_divisor(uint32_t magic, unsigned shift, unsigned orig_divisor, unsigned extra)
|
||||
{
|
||||
#if 0
|
||||
/* Compute the modular inverse of `magic` with respect to 2^(32 -
|
||||
* shift) the most lame way possible... just repeatedly add.
|
||||
* Asymptoptically slow but nobody cares in practice, unless you have
|
||||
|
|
@ -972,6 +973,7 @@ pandecode_magic_divisor(uint32_t magic, unsigned shift, unsigned orig_divisor, u
|
|||
unsigned padded_num_vertices = inverse / orig_divisor;
|
||||
|
||||
pandecode_msg("padded_num_vertices = %d\n", padded_num_vertices);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue