i965: Extract scalar region checking logic
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 23 Dec 2014 03:29:22 +0000 (19:29 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Jan 2015 23:24:40 +0000 (15:24 -0800)
commit169d7e5cb1cce73d39e40717d5f49ac30b626d1b
tree64654288b10ae81aa4230fa41b86cccf0a808902
parent9394f5838364e3265b8f7ee87f3265848317e955
i965: Extract scalar region checking logic

There are currently 2 users of this functionality. I have 2 more users coming
up, and having a simple function makes the results much cleaner. The existing
interface semantics was proposed by Matt.

v2 (Ken): Rename to region_matches()/has_scalar_region().

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_reg.h