[Mesa-dev] [PATCH v3 30/34] i965: Initialize sha1 hash of dri config options
Jordan Justen
jordan.l.justen at intel.com
Sun Oct 22 20:01:38 UTC 2017
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.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 c8de0746387..949ec4a2a3d 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -1033,6 +1033,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 26e71e62b54..834b9ae3d5a 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