Quoting Tvrtko Ursulin (2018-09-05 15:25:44) > +static bool > +kernel_has_per_context_sseu_support(int fd) > +{ > + struct drm_i915_gem_context_param_sseu sseu = { }; > + struct drm_i915_gem_context_param arg = > + { .param = I915_CONTEXT_PARAM_SSEU, > + .value = to_user_pointer(&sseu) }; > + > + return __gem_context_get_param(fd, &arg) == 0; This is meant to just work with struct drm_i915_gem_context_param arg = { .param = I915_CONTEXT_PARAM_SSEU }; return __gem_context_get_param(fd, &arg) == 0; -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx