From 7f5204a0dbfc2c3ab240842f06d3afb2e7b9ed2c Mon Sep 17 00:00:00 2001 From: Jordan Justen <jordan.l.justen@intel.com> Date: Sat, 25 Feb 2017 17:36:28 -0800 Subject: i965: Initialize sha1 hash of dri config options Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> --- src/mesa/drivers/dri/i965/brw_context.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/drivers/dri') 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 -- cgit v1.2.3