[Mesa-dev] [PATCH v2 27/32] i965: Initialize sha1 hash of dri config options
Jordan Justen
jordan.l.justen at intel.com
Thu Oct 19 05:32:15 UTC 2017
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/drivers/dri/i965/brw_context.c | 4 ++++
src/mesa/drivers/dri/i965/brw_context.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 609d815064..6a88d8bb48 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -1014,6 +1014,10 @@ brwCreateContext(gl_api api,
vbo_use_buffer_objects(ctx);
vbo_always_unmap_buffers(ctx);
+ driComputeOptionsSha1(&brw->screen->optionCache,
+ brw->dri_config_options_sha1);
+ brw->ctx.Const.dri_config_options_sha1 = brw->dri_config_options_sha1;
+
return true;
}
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 679b848c50..f2bba2cfc1 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -1211,6 +1211,7 @@ struct brw_context
bool draw_aux_buffer_disabled[MAX_DRAW_BUFFERS];
__DRIcontext *driContext;
+ unsigned char dri_config_options_sha1[20];
struct intel_screen *screen;
};
--
2.15.0.rc0
More information about the mesa-dev
mailing list