tests: Update xgldevice class with more xgl functions

This commit is contained in:
Courtney Goeltzenleuchter 2014-08-20 15:26:23 -06:00
parent 3a6e63d11f
commit 3523894f59
2 changed files with 6 additions and 3 deletions

View File

@ -75,10 +75,11 @@ void XglDevice::init_formats()
}
}
void XglDevice::get_device_queue()
void XglDevice::get_device_queue(XGL_QUEUE_TYPE queue_type, XGL_UINT queue_idx)
{
XGL_RESULT err;
err = xglGetDeviceQueue(this->device(), XGL_QUEUE_TYPE_GRAPHICS, 0, &this->m_queue);
err = xglGetDeviceQueue(this->device(), queue_type, queue_idx, &this->m_queue);
ASSERT_XGL_SUCCESS(err) << "xglGetDeviceQueue failed";
}

View File

@ -11,7 +11,9 @@ public:
XGL_DEVICE device() {return this->m_xgl_device_object;}
void init_formats();
void init_device();
void get_device_queue();
void get_device_queue(XGL_QUEUE_TYPE queue_type,
XGL_UINT queue_idx);
void get_device_queue() {get_device_queue();}
private:
XGL_DEVICE m_xgl_device_object;