u_prim: convert u_trim_pipe_prim to table driven.
authorDave Airlie <airlied@redhat.com>
Fri, 3 Jun 2011 00:36:48 +0000 (10:36 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Jun 2011 05:26:59 +0000 (15:26 +1000)
commit970726dd6f9d5361cf7a4002d65ba24ac8baec20
treeb57ff8be74c1e8c380a3a498527036c1aef09d72
parentde0adb691feb2ae7f64dd74ed6bc5a9e0f493631
u_prim: convert u_trim_pipe_prim to table driven.

This makes this function not be an always miss for the branch predictor.

Noticed using cachegrind, makes a minor difference to gears numbers on r600g.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/util/u_prim.h