From 7f5204a0dbfc2c3ab240842f06d3afb2e7b9ed2c Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sat, 25 Feb 2017 17:36:28 -0800 Subject: [PATCH] i965: Initialize sha1 hash of dri config options Signed-off-by: Jordan Justen Reviewed-by: Timothy Arceri Reviewed-by: Jason Ekstrand Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index eed42468b11..f141227bda7 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -816,6 +816,10 @@ brw_process_driconf_options(struct brw_context *brw) brw->dual_color_blend_by_location = driQueryOptionb(options, "dual_color_blend_by_location"); + + ctx->Const.dri_config_options_sha1 = ralloc_array(brw, unsigned char, 20); + driComputeOptionsSha1(&brw->screen->optionCache, + ctx->Const.dri_config_options_sha1); } GLboolean -- 2.30.2