gl: Implement basic DMA layer using AMD_pinned_memory

This commit is contained in:
kd-11 2024-10-15 03:34:23 +03:00 committed by kd-11
parent 3e516df214
commit 7fdfbe3c52
8 changed files with 177 additions and 3 deletions

View file

@ -6,7 +6,7 @@ namespace gl
void buffer::allocate(GLsizeiptr size, const void* data_, memory_type type, GLenum usage)
{
if (const auto& caps = get_driver_caps();
caps.ARB_buffer_storage_supported)
m_target != target::userptr && caps.ARB_buffer_storage_supported)
{
GLenum flags = 0;
if (type == memory_type::host_visible)