aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2016-08-18 17:17:14 +0100
committerChris Wilson <[email protected]>2016-08-18 22:36:59 +0100
commitd6a4ead7a38666b9acdb098012a178c4c4950eca (patch)
tree08d6739686d1e032d8586ac081561df0cddf0cd7 /lib/mpi/mpi-bit.c
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 <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions