{
struct threaded_context *tc = threaded_context(_pipe);
+ if (param == PIPE_CONTEXT_PARAM_PIN_THREADS_TO_L3_CACHE) {
+ /* Pin the gallium thread as requested. */
+ util_pin_thread_to_L3(tc->queue.threads[0], value,
+ util_cpu_caps.cores_per_L3);
+
+ /* Execute this immediately (without enqueuing).
+ * It's required to be thread-safe.
+ */
+ struct pipe_context *pipe = tc->pipe;
+ if (pipe->set_context_param)
+ pipe->set_context_param(pipe, param, value);
+ return;
+ }
+
if (tc->pipe->set_context_param) {
struct tc_context_param *payload =
tc_add_struct_typed_call(tc, TC_CALL_set_context_param,
payload->param = param;
payload->value = value;
}
-
- if (param == PIPE_CONTEXT_PARAM_PIN_THREADS_TO_L3_CACHE) {
- /* Pin the gallium thread as requested. */
- util_pin_thread_to_L3(tc->queue.threads[0], value,
- util_cpu_caps.cores_per_L3);
- }
}