aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-22 15:34:26 (GMT)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-22 15:34:26 (GMT)
commitd07c846546ea1d75fad8f295ad11ae1a14311732 (patch)
tree60e912b9ceb59180507d24e2c40abbe6e34d7911
parente8dca7e1e161cdb2c648d5711a0a9bca963e9ad3 (diff)
downloadexternal_mesa3d-d07c846546ea1d75fad8f295ad11ae1a14311732.zip
external_mesa3d-d07c846546ea1d75fad8f295ad11ae1a14311732.tar.gz
external_mesa3d-d07c846546ea1d75fad8f295ad11ae1a14311732.tar.bz2
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>
-rw-r--r--src/panfrost/pandecode/decode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index 36ea4ca..fb48087 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -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