From 71930a4b9674037f494b622fb0002904b2e35a2a Mon Sep 17 00:00:00 2001 From: Comma Device Date: Tue, 24 Nov 2020 06:05:59 +0000 Subject: [PATCH] mask out the priority --- selfdrive/modeld/thneed/thneed.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/modeld/thneed/thneed.cc b/selfdrive/modeld/thneed/thneed.cc index 76f13d279..e08370a70 100644 --- a/selfdrive/modeld/thneed/thneed.cc +++ b/selfdrive/modeld/thneed/thneed.cc @@ -41,6 +41,7 @@ int ioctl(int filedes, unsigned long request, void *argp) { if (request == IOCTL_KGSL_DRAWCTXT_CREATE) { struct kgsl_drawctxt_create *create = (struct kgsl_drawctxt_create *)argp; + create->flags &= ~KGSL_CONTEXT_PRIORITY_MASK; create->flags |= 1 << KGSL_CONTEXT_PRIORITY_SHIFT; // priority from 1-15, 1 is max priority printf("creating context with flags 0x%x\n", create->flags); }