v3dv: add a heuristic to decide when to enable double-buffer mode
This adds a heuristic to decide automatically when double-buffer is beneficial. This heuristic executes when V3D_DEBUG=db is used (so it only acts if double-buffer mode is explicitly requested via V3D_DEBUG).