summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-08-18 17:17:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-08-18 22:36:59 +0100
commitd6a4ead7a38666b9acdb098012a178c4c4950eca (patch)
tree08d6739686d1e032d8586ac081561df0cddf0cd7 /Documentation
parented13033f0287051577bc1678cde63a42fa419f3c (diff)
drm/i915/cmdparser: Improve hash function
The existing code's hashfunction is very suboptimal (most 3D commands use the same bucket degrading the hash to a long list). The code even acknowledge that the issue was known and the fix simple: /* * If we attempt to generate a perfect hash, we should be able to look at bits * 31:29 of a command from a batch buffer and use the full mask for that * client. The existing INSTR_CLIENT_MASK/SHIFT defines can be used for this. */ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-35-chris@chris-wilson.co.uk
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions