OSDN Git Service

i965/vec4: Extract depctrl hazards
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 21 Nov 2014 18:47:37 +0000 (10:47 -0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Fri, 21 Nov 2014 20:08:46 +0000 (12:08 -0800)
commit156f565f9eb36dad3cd959952724bc54f9ff21ea
treea9badd28283eab7de92681bdf4f00a3a731eb08a
parent40c0d79d295657f30cb86b002003800844851703
i965/vec4: Extract depctrl hazards

Move this to a separate function so that we can begin to add other little
caveats without making too big a mess.

NOTE: There is some desire to improve this function eventually, but we need to
fix a bug first.

v2:
Use const for the inst for the hazard check (Matt)
Invert safe logic to get rid of the double negative (Matt)
Add PRM reference for predicates (Matt)
Add note about empirical evidence for math (Matt)

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp