intel: verify if hardware has LLC support
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Wed, 1 Feb 2012 20:06:53 +0000 (18:06 -0200)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Sat, 4 Feb 2012 20:21:22 +0000 (18:21 -0200)
commit7def293204977c41ea35198af147f743a31b1889
tree1ec5e56208160a16bd590a2633e70ecbb1b5219b
parentfa2a76a21c8c513de506f2c5ec938c829cc65fdf
intel: verify if hardware has LLC support

Rely on libdrm HAS_LLC parameter to verify if hardware supports it. In
case the libdrm version does not supports this check, fallback to older
way of detecting it which assumed that GPUs newer than GEN6 have it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_screen.h