mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
refactor context creation
- createContextOsProperties is not needed anymore - replace invalid context property value 0x200D as invalid context property value should not be used, as it can be use in future as valid property Change-Id: I569433b0f37bbce083f0d64ecf1dc80ff83bfb46
This commit is contained in:
committed by
sys_ocldev
parent
125fce8ef4
commit
d8199a4ebe
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -52,10 +52,6 @@ void OCLRT::Image::getOsSpecificImageInfo(const cl_image_info ¶mName, size_t
|
||||
}
|
||||
}
|
||||
|
||||
cl_int OCLRT::Context::createContextOsProperties(cl_context_properties &propertyType, cl_context_properties &propertyValue) {
|
||||
return CL_INVALID_PROPERTY;
|
||||
}
|
||||
|
||||
void *OCLRT::Context::getOsContextInfo(cl_context_info ¶mName, size_t *srcParamSize) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -81,10 +81,6 @@ void OCLRT::Image::getOsSpecificImageInfo(const cl_mem_info ¶mName, size_t *
|
||||
}
|
||||
}
|
||||
|
||||
cl_int OCLRT::Context::createContextOsProperties(cl_context_properties &propertyType, cl_context_properties &propertyValue) {
|
||||
return CL_INVALID_PROPERTY;
|
||||
}
|
||||
|
||||
void *OCLRT::Context::getOsContextInfo(cl_context_info ¶mName, size_t *srcParamSize) {
|
||||
switch (paramName) {
|
||||
case CL_CONTEXT_D3D10_PREFER_SHARED_RESOURCES_KHR:
|
||||
|
||||
Reference in New Issue
Block a user