mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Create a wrapper for drm_i915_gem_context_param_sseu
Related-To: NEO-6852 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cbd73d2d9c
commit
e7e1e64cca
@@ -186,7 +186,7 @@ int drmSetContextParam(drm_i915_gem_context_param *param) {
|
||||
break;
|
||||
#endif
|
||||
case I915_CONTEXT_PARAM_SSEU:
|
||||
if (param->size == sizeof(struct drm_i915_gem_context_param_sseu) && param->value != 0 && param->ctx_id == 0) {
|
||||
if (param->size == sizeof(NEO::GemContextParamSseu) && param->value != 0 && param->ctx_id == 0) {
|
||||
ret = failOnSetParamSseu;
|
||||
} else {
|
||||
ret = -1;
|
||||
@@ -203,7 +203,7 @@ int drmGetContextParam(drm_i915_gem_context_param *param) {
|
||||
|
||||
switch (param->param) {
|
||||
case I915_CONTEXT_PARAM_SSEU:
|
||||
if (param->size == sizeof(struct drm_i915_gem_context_param_sseu) && param->value != 0 && param->ctx_id == 0) {
|
||||
if (param->size == sizeof(NEO::GemContextParamSseu) && param->value != 0 && param->ctx_id == 0) {
|
||||
ret = failOnGetParamSseu;
|
||||
} else {
|
||||
ret = -1;
|
||||
|
||||
Reference in New Issue
Block a user