mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
i965: Support the mesa_no_error driconf option.
This allows us to override contexts to use no_error functionality even if the applications themselves do not. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
20533e0da7
commit
665fd10396
2 changed files with 4 additions and 0 deletions
|
|
@ -745,6 +745,9 @@ brw_process_driconf_options(struct brw_context *brw)
|
|||
brw->has_separate_stencil = false;
|
||||
}
|
||||
|
||||
if (driQueryOptionb(options, "mesa_no_error"))
|
||||
ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR;
|
||||
|
||||
if (driQueryOptionb(options, "always_flush_batch")) {
|
||||
fprintf(stderr, "flushing batchbuffer before/after each draw call\n");
|
||||
brw->always_flush_batch = true;
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ DRI_CONF_BEGIN
|
|||
DRI_CONF_ENUM(1, "Enable reuse of all sizes of buffer objects")
|
||||
DRI_CONF_DESC_END
|
||||
DRI_CONF_OPT_END
|
||||
DRI_CONF_MESA_NO_ERROR("false")
|
||||
DRI_CONF_SECTION_END
|
||||
|
||||
DRI_CONF_SECTION_QUALITY
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue