[Mesa-dev] [PATCH 1/3] i965: Add #defines for Broadwell HiZ workarounds in CACHE_MODE_1.
Kristian Høgsberg
krh at bitplanet.net
Mon Nov 3 20:45:26 PST 2014
On Wed, Oct 22, 2014 at 8:58 AM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> This patch adds macros needed for the HiZ PMA stall optimization.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>
> ---
> src/mesa/drivers/dri/i965/intel_reg.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_reg.h b/src/mesa/drivers/dri/i965/intel_reg.h
> index 45b82ad..5ac0180 100644
> --- a/src/mesa/drivers/dri/i965/intel_reg.h
> +++ b/src/mesa/drivers/dri/i965/intel_reg.h
> @@ -138,3 +138,9 @@
> #define GEN7_3DPRIM_INSTANCE_COUNT 0x2438
> #define GEN7_3DPRIM_START_INSTANCE 0x243C
> #define GEN7_3DPRIM_BASE_VERTEX 0x2440
> +
> +#define GEN7_CACHE_MODE_1 0x7004
> +# define GEN8_HIZ_NP_PMA_FIX_ENABLE (1 << 11)
> +# define GEN8_HIZ_NP_EARLY_Z_FAILS_DISABLE (1 << 13)
> +# define GEN8_HIZ_PMA_MASK_BITS \
> + ((GEN8_HIZ_NP_PMA_FIX_ENABLE | GEN8_HIZ_NP_EARLY_Z_FAILS_DISABLE) << 16)
> --
> 2.1.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list