Module: Mesa Branch: master Commit: 525b4f7548462bfc2e82f2d1f04f61ce6854a3c5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=525b4f7548462bfc2e82f2d1f04f61ce6854a3c5
Author: Chris Wilson <ch...@chris-wilson.co.uk> Date: Sat Jan 20 00:19:47 2018 +0000 i965: Accept CONTEXT_ATTRIB_PRIORITY for brwCreateContext The forward port of commit 6d87500fe12e ("dri: Change __DriverApiRec::CreateContext to take a struct for attribs") failed to adapt the set of allowed attributes for the earlier introduction of context priorities (commit 1617fca6d12e "i965: Pass the EGL/DRI context priority through to the kernel"). Fixes: 6d87500fe12e ("dri: Change __DriverApiRec::CreateContext to take a struct for attribs") Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Adam Jackson <a...@redhat.com> Cc: Nicolai Hähnle <nicolai.haeh...@amd.com> Cc: Emil Velikov <emil.veli...@collabora.com> Cc: Kenneth Graunke <kenn...@whitecape.org> Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/drivers/dri/i965/brw_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 296335040d..b830e71247 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -860,7 +860,9 @@ brwCreateContext(gl_api api, return false; } - if (ctx_config->attribute_mask & ~__DRIVER_CONTEXT_ATTRIB_RESET_STRATEGY) { + if (ctx_config->attribute_mask & + ~(__DRIVER_CONTEXT_ATTRIB_RESET_STRATEGY | + __DRIVER_CONTEXT_ATTRIB_PRIORITY)) { *dri_ctx_error = __DRI_CTX_ERROR_UNKNOWN_ATTRIBUTE; return false; } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit