From 7def293204977c41ea35198af147f743a31b1889 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 1 Feb 2012 18:06:53 -0200 Subject: 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 Signed-off-by: Eugeni Dodonov --- src/mesa/drivers/dri/intel/intel_context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers/dri/intel/intel_context.c') diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 81ba6a195ea..377bcbc0664 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -628,6 +628,7 @@ intelInitContext(struct intel_context *intel, intel->has_separate_stencil = intel->intelScreen->hw_has_separate_stencil; intel->must_use_separate_stencil = intel->intelScreen->hw_must_use_separate_stencil; intel->has_hiz = intel->intelScreen->hw_has_hiz; + intel->has_llc = intel->intelScreen->hw_has_llc; memset(&ctx->TextureFormatSupported, 0, sizeof(ctx->TextureFormatSupported)); -- cgit v1.2.3