[Intel-gfx] [igt-dev] [PATH i-g-t 2/2] tests: add slice power programming test
Chris Wilson
chris at chris-wilson.co.uk
Wed Sep 5 22:57:40 UTC 2018
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
More information about the Intel-gfx
mailing list