}
static XGL_RESULT nulldrv_queue_create(struct nulldrv_dev *dev,
- enum nulldrv_gpu_engine_type engine,
+ uint32_t node_index,
struct nulldrv_queue **queue_ret)
{
struct nulldrv_queue *queue;
static XGL_RESULT nulldrv_desc_pool_create(struct nulldrv_dev *dev,
struct nulldrv_desc_pool **pool_ret)
{
- const uint32_t surface_count = 1;
- const uint32_t sampler_count = 1;
struct nulldrv_desc_pool *pool;
pool = malloc(sizeof(*pool));
if (!mem)
return XGL_ERROR_OUT_OF_MEMORY;
- mem->bo = _aligned_malloc(info->allocationSize, 4096);
+ mem->bo = malloc(info->allocationSize);
if (!mem->bo) {
return XGL_ERROR_OUT_OF_MEMORY;
}
{
struct nulldrv_img *img = nulldrv_img(info->image);
struct nulldrv_img_view *view;
- uint32_t mip_levels, array_size;
- XGL_CHANNEL_MAPPING state_swizzles;
-
- mip_levels = info->subresourceRange.mipLevels;
-
- array_size = info->subresourceRange.arraySize;
view = (struct nulldrv_img_view *) nulldrv_base_create(dev, sizeof(*view),
XGL_DBG_OBJECT_IMAGE_VIEW);
view->img = img;
view->min_lod = info->minLod;
- state_swizzles = info->channels;
-
view->cmd_len = 8;
*view_ret = view;
const XGL_SHADER_CREATE_INFO *info,
struct nulldrv_shader **sh_ret)
{
- const struct icd_bil_header *bil =
- (const struct icd_bil_header *) info->pCode;
struct nulldrv_shader *sh;
sh = (struct nulldrv_shader *) nulldrv_base_create(dev, sizeof(*sh),
const XGL_CMD_BUFFER_CREATE_INFO *info,
struct nulldrv_cmd **cmd_ret)
{
- int pipeline_select;
struct nulldrv_cmd *cmd;
- pipeline_select = 0;
-
cmd = (struct nulldrv_cmd *) nulldrv_base_create(dev, sizeof(*cmd),
XGL_DBG_OBJECT_CMD_BUFFER);
if (!cmd)
void* pData)
{
NULLDRV_LOG_FUNC;
- const struct nulldrv_img *img = nulldrv_img(image);
XGL_RESULT ret = XGL_SUCCESS;
switch (infoType) {
struct nulldrv_base base;
};
-struct nulldrv_base *nulldrv_base_create(struct nulldrv_dev *dev,
- size_t obj_size,
- XGL_DBG_OBJECT_TYPE type1);
-
enum nulldrv_ext_type {
NULLDRV_EXT_WSI_X11,
NULLDRV_EXT_WSI_WINDOWS,
struct nulldrv_queue *queues[1];
};
-struct nulldrv_layout {
- enum nulldrv_layout_aux_type aux;
-};
-
struct nulldrv_desc_pool {
uint32_t surface_desc_size;
uint32_t sampler_desc_size;