mesa: Support D3D11/D3D12 memory imports
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Acked-by: Marek Olák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17446>
This commit is contained in:
parent
0ff4f5a7e9
commit
78ba74cfda
|
@ -1044,7 +1044,10 @@ _mesa_ImportMemoryWin32HandleEXT(GLuint memory,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handleType != GL_HANDLE_TYPE_OPAQUE_WIN32_EXT) {
|
if (handleType != GL_HANDLE_TYPE_OPAQUE_WIN32_EXT &&
|
||||||
|
handleType != GL_HANDLE_TYPE_D3D11_IMAGE_EXT &&
|
||||||
|
handleType != GL_HANDLE_TYPE_D3D12_RESOURCE_EXT &&
|
||||||
|
handleType != GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT) {
|
||||||
_mesa_error(ctx, GL_INVALID_ENUM, "%s(handleType=%u)", func, handleType);
|
_mesa_error(ctx, GL_INVALID_ENUM, "%s(handleType=%u)", func, handleType);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue