case __DRI2_RENDERER_HAS_TEXTURE_3D:
value[0] = 1;
return 0;
+ case __DRI2_RENDERER_HAS_CONTEXT_PRIORITY:
+ value[0] = 0;
+ if (brw_hw_context_set_priority(screen->bufmgr,
+ 0, BRW_CONTEXT_HIGH_PRIORITY) == 0)
+ value[0] |= __DRI2_RENDERER_HAS_CONTEXT_PRIORITY_HIGH;
+ if (brw_hw_context_set_priority(screen->bufmgr,
+ 0, BRW_CONTEXT_LOW_PRIORITY) == 0)
+ value[0] |= __DRI2_RENDERER_HAS_CONTEXT_PRIORITY_LOW;
+ /* reset to default last, just in case */
+ if (brw_hw_context_set_priority(screen->bufmgr,
+ 0, BRW_CONTEXT_MEDIUM_PRIORITY) == 0)
+ value[0] |= __DRI2_RENDERER_HAS_CONTEXT_PRIORITY_MEDIUM;
+ return 0;
default:
return driQueryRendererIntegerCommon(dri_screen, param, value);
}