i965: Update URB partitioning code for Haswell's GT3 variant.

Haswell's GT3 variant offers 32kB of URB space for push constants, while
GT1 and GT2 match Ivybridge, providing 16kB.  Update the code to reserve
the full 32kB on GT3.

v2: Specify push constant size correctly.  I thought GT3 reinterpreted
    the value as multiples of 2kB, but it doesn't.  You simply have to
    program an even number.

NOTE: This is a candidate for stable branches.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
i965: Add chipset limits for the Haswell GT3 variant.

NOTE: This is a candidate for stable branches.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
i965: make GT3 machines work as GT3 instead of GT2

We were not allowed to say the "GT3" name, but we really needed to
have the PCI IDs because too many people had such machines, so we had
to make the GT3 machines work as GT2.

Let's just say that GT2_PLUS was a short for GT2_PLUS_1 :)

NOTE: This is a candidate for stable branches.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
android: Link libcutils, liblog into all target modules

These libraries are used pervasively. Several makefiles added them to
LOCAL_SHARED_LIBRARIES.

This patch removes duplication in the makefiles by adding the libraries to
all target (that is, non-host) modules in Android.common.mk.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
mesa: Import Android logging utils and define LOG_TAG

Add a new header, main/log.h, that includes <cutils/log.h> for Android and
defines LOG_TAG = "MESA".

Also, update the Intel driver for this change.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
dri: Read Android system properties for driconf options

On Android, it's difficult to impossible to set environment variables for
activities (that is, Dalvik applications) outside of the initrc. This
difficulty prevents us from easily setting dri options post-boot.  This
patch somewhat fixes the problem by adding a system property for each
driconf option.  This fix doesn't enable us to set driconf options for
individual activities, but at least this enables us to easily set driconf
options system-wide post-boot.

For each driconf option "$name", add the system property "dri.$name".  On
Android, Mesa will now search for driconf options among the system
properties as well the the usual places: environment variables and drirc.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
intel: Read Androi system properties for INTEL_DEBUG options

On Android, it's difficult to impossible to set environment variables for
activities (that is, Dalvik applications) outside of the initrc. This
difficulty prevents us from setting INTEL_DEBUG options post-boot.  This
patch somewhat fixes the problem by adding a system property for each
INTEL_DEBUG option.  This fix doesn't enable us to set INTEL_DEBUG options
for individual activities, but at least this enables us to set INTEL_DEBUG
options system-wide post-boot.

For each INTEL_DEBUG option "$name", add the system property
"intel_debug.$name". Also add the property "intel_debug.all", which if set
behaves the same as INTEL_DEBUG=all.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>