i965/vec4: Port regions_overlap() to the vec4 IR.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 2 Sep 2016 02:38:36 +0000 (19:38 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:55 +0000 (14:50 -0700)
commit56bcb2230f4c396d3febc8d718dc838c0274e62a
tree430b2313b18b0aa15746fbd6e4d9289e5b3c381b
parentc057278c065747c1f53579504bf109cafb7cb390
i965/vec4: Port regions_overlap() to the vec4 IR.

This is copy-pasted almost line by line from the FS back-end.  The
only reason it cannot be implemented in terms of backend_reg is that
the backend_reg::nr field doesn't have the same meaning for uniforms
on both back-ends.  It could be easily deduplicated by using a
template function.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_ir_vec4.h